From 72c31d8cca4330ee8e0992e2824a629611ec5cbf Mon Sep 17 00:00:00 2001 From: Hello-Linux Date: Fri, 27 Jul 2018 17:27:42 +0800 Subject: [PATCH] =?UTF-8?q?kube-apiserver=E5=A2=9E=E5=8A=A0batch/v2alpha?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/kube-master/templates/kube-apiserver-v1.8.service.j2 | 1 + roles/kube-master/templates/kube-apiserver.service.j2 | 1 + 2 files changed, 2 insertions(+) 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 f71a5ce..9eed330 100644 --- a/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 +++ b/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 @@ -42,6 +42,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \ --proxy-client-cert-file={{ ca_dir }}/aggregator-proxy.pem \ --proxy-client-key-file={{ ca_dir }}/aggregator-proxy-key.pem \ --enable-aggregator-routing=true \ + --runtime-config=batch/v2alpha1=true \ --v=2 Restart=on-failure RestartSec=5 diff --git a/roles/kube-master/templates/kube-apiserver.service.j2 b/roles/kube-master/templates/kube-apiserver.service.j2 index 51d84a5..a6819e4 100644 --- a/roles/kube-master/templates/kube-apiserver.service.j2 +++ b/roles/kube-master/templates/kube-apiserver.service.j2 @@ -42,6 +42,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \ --proxy-client-cert-file={{ ca_dir }}/aggregator-proxy.pem \ --proxy-client-key-file={{ ca_dir }}/aggregator-proxy-key.pem \ --enable-aggregator-routing=true \ + --runtime-config=batch/v2alpha1=true \ --v=2 Restart=on-failure RestartSec=5