fix: 双网卡下 apiserver endpoint 可能错误 #479

pull/626/head
gjmzj 2019-05-23 23:22:25 +08:00
parent 8294414ac0
commit 148dce5e81
2 changed files with 2 additions and 0 deletions

View File

@ -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 \

View File

@ -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 \