我在想如何配置kubelet系统管理服务到特定的节点。我试图在 etckubernetesmanifests 文件夹,但我找不到任何变量可以定义节点的值。任何建议?
如果你运行
$ systemctl status kubelet
kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Thu 2020-05-21 19:47:01 UTC; 1 day 20h ago
Docs: http://kubernetes.io/docs/
Main PID: 3104 (kubelet)
Tasks: 18 (limit: 2161)
Memory: 46.1M
CGroup: /system.slice/kubelet.service
└─3104 /var/lib/minikube/binaries/v1.15.7/kubelet --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroup-driver=cgroupfs --client-ca-file=/var/lib/minikube/certs/ca.crt --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --config=/var/lib/kubelet/config.yaml --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --node-ip=192.168.99.100 --pod-manifest-path=/etc/kubernetes/manifests
你可以在这里得到所有的信息。
10-kubeadm.conf
位于以下目录中。
/etc/systemd/system/kubelet.service.d/