From 7ff1d71ef3cee3d81c1d56badf4ca1c8b4172816 Mon Sep 17 00:00:00 2001 From: TimeBye Date: Fri, 6 Jul 2018 08:43:56 +0800 Subject: [PATCH] [IMP]update kube-apiserver-v1.8 apiserver-count (#254) --- roles/kube-master/templates/kube-apiserver-v1.8.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 b/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 index cf34650..f71a5ce 100644 --- a/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 +++ b/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 @@ -27,7 +27,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \ --etcd-keyfile={{ ca_dir }}/kubernetes-key.pem \ --etcd-servers={{ ETCD_ENDPOINTS }} \ --enable-swagger-ui=true \ - --apiserver-count=3 \ + --apiserver-count={% if DEPLOY_MODE == "multi-master" %}{{ groups['kube-master']|length + groups['new-master']|length }}{% else %}1{% endif %} \ --allow-privileged=true \ --audit-log-maxage=30 \ --audit-log-maxbackup=3 \