infrastructure/k8s/roles/agola/templates/gateway-deployment.yml.j2
2022-09-11 18:49:31 +02:00

42 lines
962 B
Django/Jinja

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: agola-gateway
spec:
replicas: 2
selector:
matchLabels:
app: agola
component: gateway
template:
metadata:
labels:
app: agola
component: gateway
spec:
serviceAccount: agola
containers:
- name: agola
image: {{ agola_image }}
command:
- /bin/agola
- serve
- "--config"
- /mnt/agola/config/config.yml
- "--components"
- gateway,scheduler,notification
env:
ports:
- containerPort: 8000
volumeMounts:
- name: config-volume
mountPath: /mnt/agola/config
- name: agola-localdata
mountPath: /mnt/agola/local
volumes:
- name: config-volume
secret:
secretName: agola
- name: agola-localdata
emptyDir: {}