2020-05-28 12:12:37 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: zitadel
|
|
|
|
labels:
|
|
|
|
app: zitadel
|
|
|
|
spec:
|
|
|
|
replicas: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: zitadel
|
|
|
|
version: v1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: zitadel
|
|
|
|
version: v1
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: zitadel
|
|
|
|
image: docker.pkg.github.com/caos/zitadel/zitadel:latest
|
|
|
|
imagePullPolicy: IfNotPresent
|
2020-08-18 12:22:53 +00:00
|
|
|
args: ["start"]
|
2020-05-28 12:12:37 +00:00
|
|
|
ports:
|
2020-07-08 11:56:37 +00:00
|
|
|
- name: grpc
|
|
|
|
containerPort: 50001
|
|
|
|
- name: http
|
|
|
|
containerPort: 50002
|
|
|
|
- name: ui
|
|
|
|
containerPort: 50003
|
2020-08-18 12:22:53 +00:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /ready
|
|
|
|
port: http
|
|
|
|
periodSeconds: 5
|
|
|
|
failureThreshold: 2
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: http
|
|
|
|
periodSeconds: 5
|
|
|
|
failureThreshold: 2
|
2020-06-08 06:33:54 +00:00
|
|
|
env:
|
2020-06-05 18:21:30 +00:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2020-06-11 09:21:29 +00:00
|
|
|
- name: CHAT_URL
|
2020-05-28 12:12:37 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_GOOGLE_CHAT_URL
|
2020-06-11 09:21:29 +00:00
|
|
|
- name: TWILIO_TOKEN
|
2020-05-28 12:12:37 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_TWILIO_AUTH_TOKEN
|
2020-06-11 09:21:29 +00:00
|
|
|
- name: TWILIO_SERVICE_SID
|
2020-05-28 12:12:37 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_TWILIO_SID
|
2020-06-11 09:21:29 +00:00
|
|
|
- name: SMTP_PASSWORD
|
2020-05-28 12:12:37 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_EMAILAPPKEY
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: zitadel-vars
|
|
|
|
volumeMounts:
|
|
|
|
- name: zitadel-secret
|
|
|
|
mountPath: /secret
|
|
|
|
- name: console-config
|
2020-06-09 06:44:55 +00:00
|
|
|
mountPath: /console/environment.json
|
2020-05-28 12:12:37 +00:00
|
|
|
subPath: environment.json
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: githubsecret
|
|
|
|
volumes:
|
|
|
|
- name: zitadel-secret
|
|
|
|
secret:
|
|
|
|
secretName: zitadel-secret
|
|
|
|
- name: console-config
|
|
|
|
configMap:
|
|
|
|
name: console-config
|