1. [root@master manifests]# ll
    2. total 16
    3. -rw------- 1 root root 2126 Mar 12 10:44 etcd.yaml
    4. -rw------- 1 root root 3186 Mar 12 10:45 kube-apiserver.yaml
    5. -rw------- 1 root root 2860 Mar 12 13:44 kube-controller-manager.yaml
    6. -rw------- 1 root root 1414 Mar 12 13:44 kube-scheduler.yaml
    7. [root@master manifests]# pwd
    8. /etc/kubernetes/manifests
    9. [root@master manifests]#
    1. [root@master ~]# cd /etc/kubernetes/manifests
    2. [root@master manifests]# ll
    3. total 16
    4. -rw------- 1 root root 2126 Mar 12 10:44 etcd.yaml
    5. -rw------- 1 root root 3186 Mar 12 10:45 kube-apiserver.yaml
    6. -rw------- 1 root root 2859 Mar 12 10:45 kube-controller-manager.yaml
    7. -rw------- 1 root root 1413 Mar 12 10:45 kube-scheduler.yaml
    8. [root@master manifests]# vim kube-controller-manager.yaml
    9. [root@master manifests]# vim kube-controller-manager.yaml
    10. [root@master manifests]# vim kube-scheduler.yaml
    11. [root@master manifests]#
    12. [root@master manifests]# kubectl get cs
    13. Warning: v1 ComponentStatus is deprecated in v1.19+
    14. NAME STATUS MESSAGE ERROR
    15. scheduler Unhealthy Get "http://127.0.0.1:10251/healthz": dial tcp 127.0.0.1:10251: connect: connection refused
    16. controller-manager Healthy ok
    17. etcd-0 Healthy {"health":"true"}
    18. [root@master manifests]# kubectl get cs
    19. Warning: v1 ComponentStatus is deprecated in v1.19+
    20. NAME STATUS MESSAGE ERROR
    21. scheduler Healthy ok
    22. controller-manager Healthy ok
    23. etcd-0 Healthy {"health":"true"}

    image.png