From dc6c7037412e6d2afbdee1a9ddc663db1847e16f Mon Sep 17 00:00:00 2001 From: Dann Bohn Date: Wed, 31 Jan 2018 15:49:52 -0500 Subject: [PATCH] --etcd-quorum-read is depricated in kube >= 1.9 --- .../master/templates/manifests/kube-apiserver.manifest.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index 39974846d..d94ddf0c4 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -30,7 +30,9 @@ spec: - apiserver - --advertise-address={{ ip | default(ansible_default_ipv4.address) }} - --etcd-servers={{ etcd_access_addresses }} +{% if kube_version | version_compare('v1.9', '<') %} - --etcd-quorum-read=true +{% endif %} - --etcd-cafile={{ etcd_cert_dir }}/ca.pem - --etcd-certfile={{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem - --etcd-keyfile={{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem