主要有三个点
controller-manager、scheduler、etcd
参考:
https://www.cnblogs.com/ltaodream/p/15448953.html
在每台master节点执行
vim /etc/kubernetes/manifests/kube-scheduler.yaml
将
--bind-address=127.0.0.1
改为
--bind-address=0.0.0.0
vim /etc/kubernetes/manifests/kube-controller-manager.yaml
将
--bind-address=127.0.0.1
改为
--bind-address=0.0.0.0
vi /etc/kubernetes/manifests/etcd.yaml
将
--listen-metrics-urls=http://127.0.0.1:2381
改为
--listen-metrics-urls=http://127.0.0.1:2381,http://你主机的IP地址(也就是图上serviceMonitor中展示的访问不通的地址):2381
systemctl restart kubelet.service
模板号3070