2020-05-28 14:12:37 +02: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-06-05 07:50:04 +02:00
|
|
|
args: []
|
2020-05-28 14:12:37 +02:00
|
|
|
ports:
|
2020-07-08 13:56:37 +02:00
|
|
|
- name: grpc
|
|
|
|
containerPort: 50001
|
|
|
|
- name: http
|
|
|
|
containerPort: 50002
|
|
|
|
- name: ui
|
|
|
|
containerPort: 50003
|
2020-06-08 08:33:54 +02:00
|
|
|
env:
|
2020-06-05 20:21:30 +02:00
|
|
|
- name: POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2020-06-11 11:21:29 +02:00
|
|
|
- name: CHAT_URL
|
2020-05-28 14:12:37 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_GOOGLE_CHAT_URL
|
2020-06-11 11:21:29 +02:00
|
|
|
- name: TWILIO_TOKEN
|
2020-05-28 14:12:37 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_TWILIO_AUTH_TOKEN
|
2020-06-11 11:21:29 +02:00
|
|
|
- name: TWILIO_SERVICE_SID
|
2020-05-28 14:12:37 +02:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: zitadel-secrets-vars
|
|
|
|
key: ZITADEL_TWILIO_SID
|
2020-06-11 11:21:29 +02:00
|
|
|
- name: SMTP_PASSWORD
|
2020-05-28 14:12:37 +02: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 08:44:55 +02:00
|
|
|
mountPath: /console/environment.json
|
2020-05-28 14:12:37 +02:00
|
|
|
subPath: environment.json
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: githubsecret
|
|
|
|
volumes:
|
|
|
|
- name: zitadel-secret
|
|
|
|
secret:
|
|
|
|
secretName: zitadel-secret
|
|
|
|
- name: console-config
|
|
|
|
configMap:
|
|
|
|
name: console-config
|