argo-app/templates/dbs.yaml

39 lines
715 B
YAML
Raw Normal View History

2023-09-27 19:39:02 +00:00
{{- range until (.Values.nb_db|int) }}
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: db-{{.}}
spec:
replicas: 1
selector:
matchLabels:
db: "{{.}}"
template:
metadata:
labels:
db: "{{.}}"
spec:
containers:
- name: db
image: quay.io/coreos/etcd:v3.5.9
args:
- --data-dir=/data
env:
- name: ETCD_INITIAL_CLUSTER_STATE
value: new
volumeMounts:
- name: data
mountPath: /data
volumeClaimTemplates:
- metadata:
name: data
spec:
2023-09-27 20:07:05 +00:00
storageClassName: local
accessModes:
- ReadWriteOnce
2023-09-27 19:39:02 +00:00
resources:
requests:
storage: 1Gi
{{- end }}