diff --git a/services/event-bingo/overlays/prod/backend-pool-env-patch.yaml b/services/event-bingo/overlays/prod/backend-pool-env-patch.yaml new file mode 100644 index 0000000..3215d79 --- /dev/null +++ b/services/event-bingo/overlays/prod/backend-pool-env-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: event-bingo-backend +spec: + template: + spec: + containers: + - name: event-bingo-backend + env: + - name: DB_POOL_SIZE + value: "3" + - name: DB_MAX_OVERFLOW + value: "1" + - name: DB_POOL_TIMEOUT_SECONDS + value: "5" diff --git a/services/event-bingo/overlays/prod/frontend-runtime-config.yaml b/services/event-bingo/overlays/prod/frontend-runtime-config.yaml new file mode 100644 index 0000000..ba66a09 --- /dev/null +++ b/services/event-bingo/overlays/prod/frontend-runtime-config.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: event-bingo-frontend-runtime +data: + runtime-config.json: | + {"bingoRealtimeEnabled":false} diff --git a/services/event-bingo/overlays/prod/frontend-runtime-mount-patch.yaml b/services/event-bingo/overlays/prod/frontend-runtime-mount-patch.yaml new file mode 100644 index 0000000..6766de4 --- /dev/null +++ b/services/event-bingo/overlays/prod/frontend-runtime-mount-patch.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: event-bingo-frontend +spec: + template: + spec: + containers: + - name: event-bingo-frontend + volumeMounts: + - name: runtime-config + mountPath: /usr/share/nginx/html/runtime + readOnly: true + volumes: + - name: runtime-config + configMap: + name: event-bingo-frontend-runtime diff --git a/services/event-bingo/overlays/prod/kustomization.yaml b/services/event-bingo/overlays/prod/kustomization.yaml index beaa4bb..1f77407 100644 --- a/services/event-bingo/overlays/prod/kustomization.yaml +++ b/services/event-bingo/overlays/prod/kustomization.yaml @@ -8,9 +8,12 @@ resources: - ingress.yaml - ghcr-pull-secret.yaml - sealed-secret.yaml +- frontend-runtime-config.yaml patches: - path: backend-seo-env-patch.yaml +- path: backend-pool-env-patch.yaml +- path: frontend-runtime-mount-patch.yaml commonLabels: environment: production