Add etcd_data_dir variable to the kubeadm config (#5263)

This commit is contained in:
YichenWong 2019-10-17 10:50:39 +08:00 committed by Kubernetes Prow Robot
parent ac60786c6f
commit aada6e7e40
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ etcd:
local: local:
imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}" imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}"
imageTag: "{{ etcd_image_tag }}" imageTag: "{{ etcd_image_tag }}"
dataDir: "/var/lib/etcd" dataDir: "{{ etcd_data_dir }}"
extraArgs: extraArgs:
metrics: {{ etcd_metrics }} metrics: {{ etcd_metrics }}
election-timeout: "{{ etcd_election_timeout }}" election-timeout: "{{ etcd_election_timeout }}"

View file

@ -42,7 +42,7 @@ etcd:
local: local:
imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}" imageRepository: "{{ etcd_image_repo | regex_replace("/etcd$","") }}"
imageTag: "{{ etcd_image_tag }}" imageTag: "{{ etcd_image_tag }}"
dataDir: "/var/lib/etcd" dataDir: "{{ etcd_data_dir }}"
extraArgs: extraArgs:
metrics: {{ etcd_metrics }} metrics: {{ etcd_metrics }}
election-timeout: "{{ etcd_election_timeout }}" election-timeout: "{{ etcd_election_timeout }}"