infrastructure/k8s/roles/agola/templates/configstore-deployment.yml.j2

44 lines
985 B
Text
Raw Normal View History

2022-09-11 16:49:31 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: agola-configstore
spec:
replicas: 1
selector:
matchLabels:
app: agola
component: configstore
template:
metadata:
labels:
app: agola
component: configstore
spec:
serviceAccount: agola
containers:
- name: agola
image: {{ agola_image }}
command:
- /bin/agola
- serve
- "--config"
- /mnt/agola/config/config.yml
- "--components"
- configstore
- --embedded-etcd
env:
ports:
- containerPort: 4002
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: {}