diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-09-15 16:11:14 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-09-15 16:11:14 +0200 |
commit | 6921533ab3cb09b629b77ef5a531d59cbba5c4d9 (patch) | |
tree | 5bc74dfaa913c8db9d909af336e139f1630d4ce3 /yaml/cas-deployment.yaml |
init repo
Diffstat (limited to 'yaml/cas-deployment.yaml')
-rw-r--r-- | yaml/cas-deployment.yaml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/yaml/cas-deployment.yaml b/yaml/cas-deployment.yaml new file mode 100644 index 0000000..fc0289a --- /dev/null +++ b/yaml/cas-deployment.yaml @@ -0,0 +1,52 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cas-deployment +spec: + replicas: 1 + selector: + matchLabels: + app: cas + template: + metadata: + labels: + app: cas + spec: + containers: + - name: cas + image: ghcr.io/cas-4/backend:latest + imagePullPolicy: Always + env: + - name: RUST_LOG + valueFrom: + configMapKeyRef: + name: cas-config + key: RUST_LOG + - name: DATABASE_URL + valueFrom: + configMapKeyRef: + name: cas-config + key: DATABASE_URL + - name: JWT_SECRET + valueFrom: + secretKeyRef: + name: cas-secret + key: JWT_SECRET + - name: EXPO_ACCESS_TOKEN + valueFrom: + secretKeyRef: + name: cas-secret + key: EXPO_ACCESS_TOKEN + - name: UNREALSPEECH_TOKEN + valueFrom: + secretKeyRef: + name: cas-secret + key: UNREALSPEECH_TOKEN + - name: ALLOWED_HOST + valueFrom: + configMapKeyRef: + name: cas-config + key: ALLOWED_HOST + ports: + - containerPort: 8000 + restartPolicy: Always |