代码之家  ›  专栏  ›  技术社区  ›  Anders Sewerin Johansen

Microk8将Kubelet.Service保留在哪里?

  •  1
  • Anders Sewerin Johansen  · 技术社区  · 6 年前

    我正在努力 enable a FlexVolume driver 在Ubuntu的microk8s上。

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

    Microk8在哪里存放?一定是库贝莱跑了什么地方?

    1 回复  |  直到 6 年前
        1
  •  2
  •   Prafull Ladha    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