6

我正在尝试在 Ubuntu 上的 Microk8s 上启用 FlexVolume 驱动程序

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

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

4

1 回答 1

6

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
于 2019-01-12T10:53:04.590 回答