2018/1/3api
[root@tvm-00 ~]# cat /etc/kubernetes/manifests/kube-controller-manager.yaml |grep '/etc/kubernetes'
/etc/kubernetes/controller-manager.conf
/etc/kubernetes/manifests/kube-controller-manager.yamlbash
/etc/kubernetes/controller-manager.confide
[root@tvm-00 ~]# mkdir ~/k8s_install/master/kube-controller-manager
[root@tvm-00 ~]# cd !$spa
[root@tvm-00 kube-controller-manager]# cp -a /etc/kubernetes/controller-manager.conf tvm-01.controller-manager.conf
[root@tvm-00 kube-controller-manager]# sed -i 's#10.10.9.67:6443#10.10.9.68:6443#' tvm-01.controller-manager.confcode
[root@tvm-00 kube-controller-manager]# scp tvm-01.controller-manager.conf 10.10.9.68:/etc/kubernetes/controller-manager.conf
[root@tvm-00 kube-controller-manager]# scp /etc/kubernetes/manifests/kube-controller-manager.yaml 10.10.9.68:/etc/kubernetes/manifests/server
[root@tvm-00 ~]# kubectl get pods --all-namespaces |grep 'kube-controller-manager-tvm'
[root@tvm-00 ~]# kubectl logs --tail=20 -n kube-system kube-controller-manager-tvm-01部署
[root@tvm-00 kube-controller-manager]# cp -a /etc/kubernetes/controller-manager.conf tvm-02.controller-manager.conf
[root@tvm-00 kube-controller-manager]# sed -i 's#10.10.9.67:6443#10.10.9.69:6443#' tvm-02.controller-manager.confget
[root@tvm-00 kube-controller-manager]# scp tvm-02.controller-manager.conf 10.10.9.69:/etc/kubernetes/controller-manager.conf
[root@tvm-00 kube-controller-manager]# scp /etc/kubernetes/manifests/kube-controller-manager.yaml 10.10.9.69:/etc/kubernetes/manifests/同步