gpt4 book ai didi

kubelet - Microk8s 在哪里保存 kubelet.service?

转载 作者:行者123 更新时间:2023-12-03 14:25:17 25 4
gpt4 key购买 nike

我正在尝试 enable a FlexVolume driver在 Ubuntu 上的 Microk8s 上。

为此,我似乎必须编辑 kubelet.service 文件。这应该存储在/etc/systemd/system/kubelet.service 中,但它不存在于我的安装中。

Microk8s 存储在哪里?它肯定有 kubelet 在某个地方运行吗?

最佳答案

microk8s kubelet服务位于以下位置:

/etc/systemd/system/snap.microk8s.daemon-kubelet.service

您始终可以使用服务守护程序进行检查:
systemctl status snap.microk8s.daemon-kubelet

更多信息,要检查 microk8s 正在运行什么,您可以使用:
velotio@velotio-ThinkPad-E470:~$ microk8s.inspect 
Inspecting services
Service snap.microk8s.daemon-docker is running
Service snap.microk8s.daemon-apiserver is running
Service snap.microk8s.daemon-proxy is running
Service snap.microk8s.daemon-kubelet is running
Service snap.microk8s.daemon-scheduler is running
Service snap.microk8s.daemon-controller-manager is running
Service snap.microk8s.daemon-etcd is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system info
Copy network configuration to the final report tarball
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Inspect kubernetes cluster

WARNING: IPtables FORWARD policy is DROP. Consider enabling traffic forwarding with: sudo iptables -P FORWARD ACCEPT
Building the report tarball
Report tarball is at /var/snap/microk8s/354/inspection-report-20190112_162506.tar.gz

关于kubelet - Microk8s 在哪里保存 kubelet.service?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54152280/

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