标签:kubecon space 一个 grep crt mkdir path root pat
使用kubeadm部署k8s集群06-扩容kube-controller-manager到3节点2018/1/3
[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.yaml
/etc/kubernetes/controller-manager.conf
[root@tvm-00 ~]# mkdir ~/k8s_install/master/kube-controller-manager
[root@tvm-00 ~]# cd !$
[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.conf
[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/
[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.conf
[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/
使用kubeadm部署k8s集群06-扩容kube-controller-manager到3节点
标签:kubecon space 一个 grep crt mkdir path root pat
原文地址:http://blog.51cto.com/nosmoking/2062895