diff --git a/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl b/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl index 8a5d2c36..18122418 100644 --- a/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl +++ b/charts/etcd/templates/etc/_kubernetes-etcd.yaml.tpl @@ -123,6 +123,7 @@ spec: value: https://$(POD_IP):{{ .Values.network.service_peer.target_port }} - name: MANIFEST_PATH value: /manifests/{{ .Values.service.name }}.yaml +{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env.etcd | indent 8 }} {{ dict "envAll" $envAll "component" "etcd" "container" "etcd" "type" "readiness" "probeTemplate" (include "etcdreadinessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 6 }} {{ dict "envAll" $envAll "component" "etcd" "container" "etcd" "type" "liveness" "probeTemplate" (include "etcdlivenessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 6 }} volumeMounts: diff --git a/charts/etcd/values.yaml b/charts/etcd/values.yaml index eedffc71..9cdf2de9 100644 --- a/charts/etcd/values.yaml +++ b/charts/etcd/values.yaml @@ -188,6 +188,13 @@ pod: # requires override for a specific use case e.g. calico-etcd or kubernetes-etcd example-etcd: etcd: localhost/docker-default + env: + etcd: + # can be used for tuning, e.g. https://etcd.io/docs/v3.4.0/tuning/ + # or other flags, e.g. https://etcd.io/docs/v3.4.0/op-guide/configuration/ + # ETCD_HEARTBEAT_INTERVAL: 100 + # ETCD_ELECTION_TIMEOUT: 1000 + # ETCD_SNAPSHOT_COUNT: 10000 jobs: etcd_backup: