node节点上,配置kube-proxy步骤。
1.创建kube-proxy.service启动文件
vi /usr/lib/systemd/system/kube-proxy.service
[Unit]
Description=Kubernetes Kube-Proxy Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=network.target
Requires=network.service[Service]
EnvironmentFile=/etc/k8s/proxy
ExecStart=/usr/local/bin/kube-proxy $KUBE_PROXY_ARGS
Restart=on-failure
LimitNOFILE=65536[Install]
WantedBy=multi-user.target
2.配置启动参数
vi /etc/k8s/proxy
KUBE_PROXY_ARGS="master=http://192.168.0.200:8080 --logtostderr=true --log-dir=/var/log/k8s --v=2"