CC00059.CloudKubernetes——|KuberNetes&二进制部署.V12|3台Server|——|kube-node|kube-proxy配置|

一、kube-proxy配置
### --- kube-proxy注意事项

~~~     注意,如果不是高可用集群,
~~~     192.168.1.11:8443改为master01的地址,8443改为apiserver的端口,默认是6443

二、创建kube-proxy服务

### --- 创建kube-proxy服务;以下操作在Master01执行

[root@k8s-master01 ~]# cd /root/k8s-ha-install
### --- 创建ServiceAccount

[root@k8s-master01 k8s-ha-install]# kubectl -n kube-system create serviceaccount kube-proxy
ty=/etc/kubernetes/pki/ca.pem     --embed-certs=true     --server=https://192.168.1.11:6443     --kubeconfig=${K8S_DIR}/kube-proxy.kubeconfig
kubectl config set-credentials kubernetes     --token=${JWT_TOKEN}     --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig
kubectl config set-context kubernetes     --cluster=kubernetes     --user=kubernetes     --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig
kubectl config use-context kubernetes     --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig
~~~     输出结果:
serviceaccount/kube-proxy created
### --- 创建ClusterRo

你可能感兴趣的:(docker,kubernetes,java,hadoop,zookeeper)