peridot/infrastructure/buildbuddy/003-statefulset.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

2022-10-30 03:26:46 +00:00
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: buildbuddy-app
namespace: default
spec:
replicas: 1
serviceName: buildbuddy-app
selector:
matchLabels:
app: buildbuddy-app
template:
metadata:
labels:
app: buildbuddy-app
spec:
serviceAccountName: buildbuddy
containers:
- name: buildbuddy-app
image: gcr.io/flame-public/buildbuddy-app-onprem:v2.12.1
env:
- name: ENV
value: "onprem"
- name: SERVICE_NAME
value: "app-backend"
- name: VERSION
value: "prod-1.0"
ports:
- name: http
containerPort: 8080
- name: grpc
containerPort: 1985
volumeMounts:
- mountPath: /data
name: database
- mountPath: "/config.yaml"
name: config
subPath: "config.yaml"
volumes:
- name: config
configMap:
name: buildbuddy
- name: database
persistentVolumeClaim:
claimName: buildbuddy