zitadel/k8s/base/deployment.yaml
Livio Amstutz 5e931a3c13
fix: console env directory (#189)
* fix: serve console env from os (not statik)

* ZITADEL_CONSOLE_ENV_PATH for (local) overwrite possibility

* name EnvOverwritePath

* fix: console env directory

* fix mount path

* fix default dir
2020-06-09 08:44:55 +02:00

86 lines
2.2 KiB
YAML

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
args: []
ports:
- name: management-rest
containerPort: 50011
- name: management-grpc
containerPort: 50010
- name: auth-rest
containerPort: 50021
- name: issuer-rest
containerPort: 50022
- name: auth-grpc
containerPort: 50020
- name: admin-rest
containerPort: 50041
- name: admin-grpc
containerPort: 50040
- name: console-http
containerPort: 50050
- name: accounts-http
containerPort: 50031
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: ZITADEL_GOOGLE_CHAT_URL
valueFrom:
secretKeyRef:
name: zitadel-secrets-vars
key: ZITADEL_GOOGLE_CHAT_URL
- name: ZITADEL_TWILIO_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: zitadel-secrets-vars
key: ZITADEL_TWILIO_AUTH_TOKEN
- name: ZITADEL_TWILIO_SID
valueFrom:
secretKeyRef:
name: zitadel-secrets-vars
key: ZITADEL_TWILIO_SID
- name: ZITADEL_EMAILAPPKEY
valueFrom:
secretKeyRef:
name: zitadel-secrets-vars
key: ZITADEL_EMAILAPPKEY
envFrom:
- configMapRef:
name: zitadel-vars
volumeMounts:
- name: zitadel-secret
mountPath: /secret
- name: console-config
mountPath: /console/environment.json
subPath: environment.json
imagePullSecrets:
- name: githubsecret
volumes:
- name: zitadel-secret
secret:
secretName: zitadel-secret
- name: console-config
configMap:
name: console-config