kubernetes 1.8 etcd 配置文件在哪里?

Where are the kubernetes 1.8 etcd configuration files?

问题

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

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 将应用这些清单文件,控制平面将启动并且 运行。