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 Jul 1, 2021
1 parent a47e74f commit 3772d08
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 199 deletions.
6 changes: 4 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 @@ -193,6 +193,8 @@ spec:
resources:
{{ toYaml .Values.backup.resources | indent 10 }}
env:
- name: ETCD_INITIAL_CLUSTER
value: {{ .Values.initialCluster }}
- name: STORAGE_CONTAINER
value: {{ .Values.store.storageContainer }}
{{- if eq .Values.store.storageProvider "S3" }}
Expand Down Expand Up @@ -321,7 +323,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
3 changes: 3 additions & 0 deletions charts/etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ uid: uuid-of-etcd-resource
serviceName: test
configMapName: test

initialCluster: test

replicas: 1
#priorityClassName: foo

Expand Down Expand Up @@ -30,6 +32,7 @@ etcd:
#username: username
#password: password

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

0 comments on commit 3772d08

Please sign in to comment.