mirror of https://github.com/easzlab/kubeasz.git
fix: 双网卡下 apiserver endpoint 可能错误 #479
parent
8294414ac0
commit
148dce5e81
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue