K8S原始文件
k8s的证书:/etc/kubernetes/pki
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| -rw-r--r-- 1 root root 1322 7月 12 2021 apiserver.crt -rw-r--r-- 1 root root 1094 7月 12 2021 apiserver-etcd-client.crt -rw-r--r-- 1 root root 1679 7月 12 2021 apiserver-etcd-client.key -rw-r--r-- 1 root root 1679 7月 12 2021 apiserver.key -rw-r--r-- 1 root root 1103 7月 12 2021 apiserver-kubelet-client.crt -rw-r--r-- 1 root root 1675 7月 12 2021 apiserver-kubelet-client.key -rw-r--r-- 1 root root 1029 7月 12 2021 ca.crt -rw-r--r-- 1 root root 1679 7月 12 2021 ca.key drwxr-xr-x 2 root root 4096 7月 12 2021 etcd -rw-r--r-- 1 root root 1038 7月 12 2021 front-proxy-ca.crt -rw-r--r-- 1 root root 1679 7月 12 2021 front-proxy-ca.key -rw-r--r-- 1 root root 1058 7月 12 2021 front-proxy-client.crt -rw-r--r-- 1 root root 1679 7月 12 2021 front-proxy-client.key -rw-r--r-- 1 root root 1675 7月 12 2021 sa.key -rw-r--r-- 1 root root 451 7月 12 2021 sa.pub
|
连接配置文件:/etc/kubernetes
1 2 3 4
| -rw-r--r-- 1 root root 5467 7月 12 2021 admin.conf -rw-r--r-- 1 root root 5507 7月 12 2021 controller-manager.conf -rw-r--r-- 1 root root 1927 7月 12 2021 kubelet.conf -rw-r--r-- 1 root root 5451 7月 12 2021 scheduler.conf
|
这几个conf就是其他几个组件访问 kube-apiserver 所需的配置文件,直接加载相应的文件,使用里面的信息与 kube-apiserver 建立安全连接。
etcd,api-server,scheduler,controller-manager等master的组件是怎么启动的?
在/etc/kubernetes/manifests目录下
1 2 3 4
| -rw------- 1 root root 1882 7月 12 2021 etcd.yaml -rw------- 1 root root 2909 7月 12 2021 kube-apiserver.yaml -rw------- 1 root root 2831 7月 12 2021 kube-controller-manager.yaml -rw------- 1 root root 1332 7月 12 2021 kube-scheduler.yaml
|
kubelet 启动时,它会自动检查这个目 录,加载所有的 Pod YAML 文件,然后在这台机器上启动它们。