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