gpt4 book ai didi

kubernetes - kubernetes 1.8 etcd配置文件在哪里?

转载 作者:行者123 更新时间:2023-12-02 11:54:44 26 4
gpt4 key购买 nike

问题

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准备了必要的 list 文件。
[init] Waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests"

现在,Kubelet将应用这些 list 文件,并且控制面板将启动并运行。

关于kubernetes - kubernetes 1.8 etcd配置文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47769270/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com