[root@master-1 ~]# kubectl -n kube-system get ep kube-controller-manager -o yaml > temp.yml [root@master-1 ~]# kubectl -n kube-system delete ep kube-controller-manager endpoints "kube-controller-manager" deleted [root@master-1 ~]# kubectl -n kube-system get ep kube-controller-manager NAME ENDPOINTS AGE kube-controller-manager <none> 5s [root@master-1 ~]# kubectl -n kube-system get ep kube-controller-manager NAME ENDPOINTS AGE kube-controller-manager <none> 7s [root@master-1 ~]# kubectl -n kube-system get ep kube-controller-manager NAME ENDPOINTS AGE kube-controller-manager 10.10.100.101:10252,10.10.100.102:10252,10.10.100.103:10252 21s [root@master-1 ~]# kubectl -n ai get deploy wise-ai-kafka-program NAME READY UP-TO-DATE AVAILABLE AGE wise-ai-kafka-program 0/1 1 0 118d
然后还是不行,相关的rs信息都是正常的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[root@master-1 ~]# kubectl -n ai get rs wise-ai-kafka-program-749b95dd49 NAME DESIRED CURRENT READY AGE wise-ai-kafka-program-749b95dd49 1 1 0 2d4h [root@master-1 ~]# kubectl -n ai describe rs wise-ai-kafka-program-749b95dd49 Name: wise-ai-kafka-program-749b95dd49 Namespace: ai ... ... Annotations: deployment.kubernetes.io/desired-replicas: 1 deployment.kubernetes.io/max-replicas: 2 deployment.kubernetes.io/revision: 12 Controlled By: Deployment/wise-ai-kafka-program Replicas: 1 current / 1 desired Pods Status: 1 Running / 0 Waiting / 0 Succeeded / 0 Failed ... ... Events: <none>
[root@master-1 ~]# kubectl -n ai get po wise-ai-kafka-program-749b95dd49-wtw44 -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES wise-ai-kafka-program-749b95dd49-wtw44 1/1 Running 0 2d4h 10.244.3.218 node-1.test.tjiptv.net <none> <none>
$ systemctl status -l kubelet ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/kubelet.service.d └─10-kubeadm.conf Active: active (running) since Fri 2019-11-29 11:36:32 CST; 3 months 27 days ago Docs: https://kubernetes.io/docs/ Main PID: 1858 (kubelet) Tasks: 55 Memory: 139.8M CGroup: /system.slice/kubelet.service └─1858 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=systemd --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1 --cgroup-driver=systemd
Mar 26 20:17:18 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:18.538836 1858 operation_generator.go:831] UnmountVolume.TearDown succeeded for volume "kubernetes.io/secret/2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071-flannel-token-bknj5" (OuterVolumeSpecName: "flannel-token-bknj5") pod "2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071" (UID: "2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071"). InnerVolumeSpecName "flannel-token-bknj5". PluginName "kubernetes.io/secret", VolumeGidValue "" Mar 26 20:17:18 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:18.620666 1858 reconciler.go:301] Volume detached for volume "flannel-cfg" (UniqueName: "kubernetes.io/configmap/2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071-flannel-cfg") on node "node-1.test.tjiptv.net" DevicePath "" Mar 26 20:17:18 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:18.620706 1858 reconciler.go:301] Volume detached for volume "cni" (UniqueName: "kubernetes.io/host-path/2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071-cni") on node "node-1.test.tjiptv.net" DevicePath "" Mar 26 20:17:18 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:18.620727 1858 reconciler.go:301] Volume detached for volume "flannel-token-bknj5" (UniqueName: "kubernetes.io/secret/2b66fdc2-a25d-4ed4-b9fa-fd8ebdd8f071-flannel-token-bknj5") on node "node-1.test.tjiptv.net" DevicePath "" Mar 26 20:17:19 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:19.623551 1858 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "flannel-token-bknj5" (UniqueName: "kubernetes.io/secret/0b7f5c79-5d3b-44ff-b8c6-349240cef26d-flannel-token-bknj5") pod "kube-flannel-ds-amd64-wrtpj" (UID: "0b7f5c79-5d3b-44ff-b8c6-349240cef26d") Mar 26 20:17:19 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:19.623612 1858 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "cni" (UniqueName: "kubernetes.io/host-path/0b7f5c79-5d3b-44ff-b8c6-349240cef26d-cni") pod "kube-flannel-ds-amd64-wrtpj" (UID: "0b7f5c79-5d3b-44ff-b8c6-349240cef26d") Mar 26 20:17:19 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:19.623679 1858 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "run" (UniqueName: "kubernetes.io/host-path/0b7f5c79-5d3b-44ff-b8c6-349240cef26d-run") pod "kube-flannel-ds-amd64-wrtpj" (UID: "0b7f5c79-5d3b-44ff-b8c6-349240cef26d") Mar 26 20:17:19 node-1.test.tjiptv.net kubelet[1858]: I0326 20:17:19.623715 1858 reconciler.go:207] operationExecutor.VerifyControllerAttachedVolume started for volume "flannel-cfg" (UniqueName: "kubernetes.io/configmap/0b7f5c79-5d3b-44ff-b8c6-349240cef26d-flannel-cfg") pod "kube-flannel-ds-amd64-wrtpj" (UID: "0b7f5c79-5d3b-44ff-b8c6-349240cef26d") Mar 26 20:17:20 node-1.test.tjiptv.net kubelet[1858]: W0326 20:17:20.577613 1858 pod_container_deletor.go:75] Container "ac8e3ba8f86e49de2b01eee8fe24a96bce813972915adc807f42801b5acd42b1" not found in pod's containers Mar 26 20:17:49 node-1.test.tjiptv.net kubelet[1858]: E0326 20:17:49.115530 1858 fsHandler.go:118] failed to collect filesystem stats - rootDiskErr: could not stat "/var/lib/docker/overlay2/5cf336d040522f2e67a80035ba2fe2ee1075abae973c6a75bbe9103b62ed9370/diff" to get inode usage: stat /var/lib/docker/overlay2/5cf336d040522f2e67a80035ba2fe2ee1075abae973c6a75bbe9103b62ed9370/diff: no such file or directory, extraDiskErr: could not stat "/var/lib/docker/containers/56ea8d5a37cb276c7b1e429b3c06ce980588d48543f5c42d081d9442fadbdb4c" to get inode usage: stat /var/lib/docker/containers/56ea8d5a37cb276c7b1e429b3c06ce980588d48543f5c42d081d9442fadbdb4c: no such file or directory
[root@master-1 ~]# kubectl -n ai get deployments.apps wise-ai-kafka-program NAME READY UP-TO-DATE AVAILABLE AGE wise-ai-kafka-program 0/1 1 0 118d [root@master-1 ~]# kubectl -n ai get deployments.apps wise-ai-kafka-program NAME READY UP-TO-DATE AVAILABLE AGE wise-ai-kafka-program 1/1 1 1 118d