主要有三个点
controller-manager、scheduler、etcd
参考:
https://www.cnblogs.com/ltaodream/p/15448953.html
kube-scheduler
在每台master节点执行
vim /etc/kubernetes/manifests/kube-scheduler.yaml
将
--bind-address=127.0.0.1
改为
--bind-address=0.0.0.0
kube-controller-manager
vim /etc/kubernetes/manifests/kube-controller-manager.yaml
将
--bind-address=127.0.0.1
改为
--bind-address=0.0.0.0
etcd
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
重启kubelet
systemctl restart kubelet.service
ETCD grafana
模板号3070