Skip to content

Commit 32377e6

Browse files
committed
Automatically set --initial-cluster-state for etcd
1 parent 9373444 commit 32377e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/helm/kubernetes/templates/etcd-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
- --data-dir=/var/lib/etcd
8080
- --initial-advertise-peer-urls=https://$(POD_NAME).{{ $fullName }}-etcd:{{ .Values.etcd.ports.peer }}
8181
- --initial-cluster={{ template "kubernetes.etcdInitialCluster" . }}
82-
- --initial-cluster-state=new
82+
- --initial-cluster-state={{ ternary "new" "existing" .Release.IsInstall }}
8383
- --initial-cluster-token={{ $fullName }}-etcd
8484
- --key-file=/pki/etcd/server/tls.key
8585
- --listen-client-urls=https://0.0.0.0:{{ .Values.etcd.ports.client }}

0 commit comments

Comments
 (0)