root@multinode-demo-m02:/# ps aux | grep kubelet
root 218 3.1 1.6 2066316 62516 ? Ssl 07:35 0:29 /var/lib/minikube/binaries/v1.30.0/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --config=/var/lib/kubelet/config.yaml --hostname-override=multinode-demo-m02 --kubeconfig=/etc/kubernetes/kubelet.conf --node-ip=192.168.49.3
root 3941 0.0 0.0 3456 720 pts/1 S+ 07:51 0:00 grep --color=auto kubelet
root@multinode-demo-m02:/#
root@multinode-demo-m02:/#
root@multinode-demo-m02:/# kubectl get pods --kubeconfig=/etc/kubernetes/kubelet.conf
NAME READY STATUS RESTARTS AGE
nginx-6c485c9fbb-hpbjj 1/1 Running 1 (23h ago) 24h
nginx-6c485c9fbb-nrw6c 1/1 Running 1 (23h ago) 24h
root@multinode-demo-m02:/#
root@multinode-demo-m02:/# kubectl get pod nginx-6c485c9fbb-hpbjj -o yaml --kubeconfig=/etc/kubernetes/kubelet.conf
k8s杂记
2024-10-10 20:48:48