From 148dce5e81ea0dcd19c176f05d7541f0b30cae9f Mon Sep 17 00:00:00 2001 From: gjmzj Date: Thu, 23 May 2019 23:22:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=8C=E7=BD=91=E5=8D=A1=E4=B8=8B=20a?= =?UTF-8?q?piserver=20endpoint=20=E5=8F=AF=E8=83=BD=E9=94=99=E8=AF=AF=20#4?= =?UTF-8?q?79?= 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 9907eda..2fa90a8 100644 --- a/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 +++ b/roles/kube-master/templates/kube-apiserver-v1.8.service.j2 @@ -6,6 +6,7 @@ After=network.target [Service] ExecStart={{ bin_dir }}/kube-apiserver \ --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota,NodeRestriction \ + --advertise-address={{ inventory_hostname }} \ --bind-address={{ inventory_hostname }} \ --insecure-bind-address=127.0.0.1 \ --authorization-mode=Node,RBAC \ diff --git a/roles/kube-master/templates/kube-apiserver.service.j2 b/roles/kube-master/templates/kube-apiserver.service.j2 index 76efb6d..674fb78 100644 --- a/roles/kube-master/templates/kube-apiserver.service.j2 +++ b/roles/kube-master/templates/kube-apiserver.service.j2 @@ -6,6 +6,7 @@ After=network.target [Service] ExecStart={{ bin_dir }}/kube-apiserver \ --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook \ + --advertise-address={{ inventory_hostname }} \ --bind-address={{ inventory_hostname }} \ --insecure-bind-address=127.0.0.1 \ --authorization-mode=Node,RBAC \