add db svc

This commit is contained in:
Mikaël Cluseau 2023-09-27 23:16:17 +02:00
parent 9476d38a2b
commit 994361aac8

View File

@ -1,5 +1,16 @@
{{- range until (.Values.nb_db|int) }} {{- range until (.Values.nb_db|int) }}
--- ---
apiVersion: v1
kind: Service
metadata:
name: db-{{.}}
spec:
type: ClusterIP
ports:
- port: 2379
selector:
db: "{{.}}"
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata: