Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion k8s/apps/ai-service/overlays/prod/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: utterai-ai-service
minReplicas: 2
minReplicas: 1
maxReplicas: 6
metrics:
- type: Resource
Expand Down
14 changes: 14 additions & 0 deletions k8s/apps/backend/overlays/dev/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ spec:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
- name: db-seed
image: "utterai-backend:dev-placeholder"
command:
- python
- scripts/seed_ontology.py
envFrom:
- configMapRef:
name: utterai-api-config
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
containers:
- name: api
image: "utterai-backend:dev-placeholder"
Expand Down
14 changes: 14 additions & 0 deletions k8s/apps/backend/overlays/prod/deployment-blue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ spec:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
- name: db-seed
image: utterai-backend-blue:prod-placeholder
command:
- python
- scripts/seed_ontology.py
envFrom:
- configMapRef:
name: utterai-api-config
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
containers:
- name: api
image: utterai-backend-blue:prod-placeholder
Expand Down
14 changes: 14 additions & 0 deletions k8s/apps/backend/overlays/prod/deployment-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ spec:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
- name: db-seed
image: utterai-backend-green:prod-placeholder
command:
- python
- scripts/seed_ontology.py
envFrom:
- configMapRef:
name: utterai-api-config
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: backend-api-secret
key: DB_PASSWORD
containers:
- name: api
image: utterai-backend-green:prod-placeholder
Expand Down
20 changes: 20 additions & 0 deletions k8s/apps/backend/overlays/prod/patch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ spec:
volumeMounts:
- name: tmp
mountPath: "/tmp"
- name: db-seed
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: "/tmp"
containers:
- name: api
securityContext:
Expand Down Expand Up @@ -71,6 +81,16 @@ spec:
volumeMounts:
- name: tmp
mountPath: "/tmp"
- name: db-seed
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- name: tmp
mountPath: "/tmp"
containers:
- name: api
securityContext:
Expand Down
Loading