k8. The first chapter installs kubernetes v1.20 based on kubeadm -- precautions, cluster verification, kubectl command detailed explanation and k8s troubleshooting, k8s cluster management (8)

15. Notes

Note: For clusters installed by kubeadm, the certificate validity period is one year by default. The kube-apiserver, kube-scheduler, kube-controller-manager, etcd of the master node all run as containers. It can be viewed through kubectl get po -n kube-system.

The difference between startup and binary is that

The configuration files of kubelet are in /etc/sysconfig/kubelet and /var/lib/kubelet/config.yaml. After modification, the kubelet process needs to be restarted

ipvs[root@k8s-master01 ~]# ls /etc/sysconfig/kubelet
/etc/sysconfig/kubelet
[root@k8s-master01 ~]# ls /var/lib/kubelet/config.yaml 
/var/lib/kubelet/config.yaml

The configuration files of other components are in the /etc/kubernetes/manifests directory, such as kube-apiserver.yaml. After the yaml file is changed, kubelet will automatically refresh the configuration, that is, restart the pod. The file cannot be created again

[root@

Guess you like

Origin blog.csdn.net/qq_25599925/article/details/122629730