mirror of https://github.com/easzlab/kubeasz.git
bugfix: NetworkPolicy 跨节点失效问题
parent
9048ef00ba
commit
ec4a07f8ba
|
@ -4,13 +4,13 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
# kube-proxy 根据 --cluster-cidr 判断集群内部和外部流量,指定 --cluster-cidr 或 --masquerade-all 选项后
|
||||
# kube-proxy 会对访问 Service IP 的请求做 SNAT,这个特性与calico 实现 network policy冲突,因此禁用
|
||||
WorkingDirectory=/var/lib/kube-proxy
|
||||
ExecStart={{ bin_dir }}/kube-proxy \
|
||||
--bind-address={{ NODE_IP }} \
|
||||
--hostname-override={{ NODE_IP }} \
|
||||
--cluster-cidr={{ SERVICE_CIDR }} \
|
||||
--kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig \
|
||||
--masquerade-all=false \
|
||||
--logtostderr=true \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in New Issue