argo-app/templates/dbs.yaml

38 lines
703 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:
storageClass: local
2023-09-27 20:07:05 +00:00
accessModes: ReadWriteOnce
2023-09-27 19:39:02 +00:00
resources:
requests:
storage: 1Gi
{{- end }}