kubeadm init安装的etcd的配置文件在哪里?
关注Using kubeadm to Create a Cluster并注意到没有步骤手动安装etcd,因此kubeadm init应该安装它。
在下方运行以尝试查看哪些文件但无法找到线索。
for i in $(ls /proc/$(pgrep etcd)/fd) ; do readlink $i; done | grep -v socket
pipe:[432740]
pipe:[432741]
/var/lib/etcd/member/wal/0.tmp
pipe:[432742]
anon_inode:[eventpoll]
/var/lib/etcd/member/snap/db
/var/lib/etcd/member/wal/0000000000000000-0000000000000000.wal
/var/lib/etcd/member/wal
答案 0 :(得分:3)
Kubeadm初始化并在/etc/kubernetes
目录中提供足够的文件到kubelet。
[certificates] Valid certificates and keys now exist in "/etc/kubernetes/pki"
[kubeconfig] Wrote KubeConfig file to disk: "admin.conf"
[kubeconfig] Wrote KubeConfig file to disk: "kubelet.conf"
[kubeconfig] Wrote KubeConfig file to disk: "controller-manager.conf"
[kubeconfig] Wrote KubeConfig file to disk: "scheduler.conf"
[etcd] Wrote Static Pod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"
正如您所看到的,在 / etc / kubernetes / manifests / 目录中为kubelet准备了必要的清单文件。
[init] Waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests"
现在Kubelet将应用这些清单文件,控制平面将启动并运行。