标签:install 使用 net 需要 一个 gre grep get roo
使用kubeadm部署k8s集群07-扩容kube-scheduler到3节点2018/1/4
[root@tvm-00 kube-controller-manager]# cat /etc/kubernetes/manifests/kube-scheduler.yaml |grep ‘/etc/kubernetes‘
显然,我们需要 2 个配置文件:
/etc/kubernetes/scheduler.conf
/etc/kubernetes/manifests/kube-scheduler.yaml
查看文件内容发现,只有一个配置需要更改 IP 地址指向对应的 apiserver 地址:
/etc/kubernetes/scheduler.conf
[root@tvm-00 ~]# mkdir ~/k8s_install/master/kube-scheduler
[root@tvm-00 ~]# cd !$
[root@tvm-00 kube-scheduler]# cp -a /etc/kubernetes/scheduler.conf tvm-01.scheduler.conf
[root@tvm-00 kube-scheduler]# sed -i ‘s#10.10.9.67:6443#10.10.9.68:6443#‘ tvm-01.scheduler.conf
[root@tvm-00 kube-scheduler]# scp tvm-01.scheduler.conf 10.10.9.68:/etc/kubernetes/scheduler.conf
[root@tvm-00 kube-scheduler]# scp /etc/kubernetes/manifests/kube-scheduler.yaml 10.10.9.68:/etc/kubernetes/manifests/
[root@tvm-00 ~]# kubectl get pods --all-namespaces |grep ‘kube-scheduler-tvm‘
[root@tvm-00 ~]# kubectl logs --tail=20 -n kube-system kube-scheduler-tvm-01
[root@tvm-00 kube-scheduler]# cp -a /etc/kubernetes/scheduler.conf tvm-02.scheduler.conf
[root@tvm-00 kube-scheduler]# sed -i ‘s#10.10.9.67:6443#10.10.9.69:6443#‘ tvm-02.scheduler.conf
[root@tvm-00 kube-scheduler]# scp tvm-02.scheduler.conf 10.10.9.69:/etc/kubernetes/scheduler.conf
[root@tvm-00 kube-scheduler]# scp /etc/kubernetes/manifests/kube-scheduler.yaml 10.10.9.69:/etc/kubernetes/manifests/
使用kubeadm部署k8s集群07-扩容kube-scheduler到3节点
标签:install 使用 net 需要 一个 gre grep get roo
原文地址:http://blog.51cto.com/nosmoking/2062896