Skip to content

Commit

Permalink
Updated configmap mountpoints based on ETCD replicas.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdasgupta committed Aug 9, 2021
1 parent 0482777 commit 842e731
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 204 deletions.
3 changes: 3 additions & 0 deletions charts/etcd/templates/etcd-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ data:
# Initial cluster state ('new' or 'existing').
initial-cluster-state: {{ .Values.etcd.initialClusterState }}
# Initial cluster
initial-cluster: {{ .Values.etcd.initialCluster }}
{{- if .Values.sharedConfig }}
# auto-compaction-mode ("periodic" or "revision").
{{- if .Values.sharedConfig.autoCompactionMode }}
Expand Down
4 changes: 2 additions & 2 deletions charts/etcd/templates/etcd-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
- name: {{ .Values.volumeClaimTemplateName }}
mountPath: /var/etcd/data/
- name: etcd-config-file
mountPath: /var/etcd/config/
mountPath: {{ .Values.etcdConfigMountPath }}
{{- if .Values.etcd.enableTLS }}
- name: ca-etcd
mountPath: /var/etcd/ssl/ca
Expand Down Expand Up @@ -321,7 +321,7 @@ spec:
- name: {{ .Values.volumeClaimTemplateName }}
mountPath: /var/etcd/data
- name: etcd-config-file
mountPath: /var/etcd/config/
mountPath: {{ .Values.etcdConfigMountPath }}
{{- if .Values.etcd.enableTLS }}
- name: ca-etcd
mountPath: /var/etcd/ssl/ca
Expand Down
2 changes: 2 additions & 0 deletions charts/etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ labels: {}
etcd:
initialClusterToken: initial
initialClusterState: new
initialCluster: test
enableTLS: false
pullPolicy: IfNotPresent
metrics: basic
Expand All @@ -30,6 +31,7 @@ etcd:
#username: username
#password: password

etcdConfigMountPath: "/var/etcd/config/"
backup:
port: 8080
pullPolicy: IfNotPresent
Expand Down
Loading

0 comments on commit 842e731

Please sign in to comment.