Unable to view the logs on the vm2 node

7/22/2021

I am using Tencent TKE, others node's Pod is fine. I edited flannel's start script, it could not get the default network card before.

[root@hk1 ~]$ kubectl get pods
NAME                               READY   STATUS    RESTARTS   AGE
demo-deploy-75d446c449-dbncd       1/1     Running   0          13m
proxy-deploy-c84b8c4f-9lm4j        1/1     Running   0          13h
proxy-deploy-c84b8c4f-q79zg        1/1     Running   0          13h
proxy-deploy-c84b8c4f-x6d77        1/1     Running   0          13h
wolf-deploy-6b6cc45cbf-m24kn       4/4     Running   4          9h
wolf-dev-cb6996744-9ht94           1/1     Running   0          15h
yakumoran-deploy-ffb66d678-wjngw   3/3     Running   36         40h

[root@hk1 ~]$ kubectl logs proxy-deploy-c84b8c4f-9lm4j
Error from server: Get "https://vm2:10250/containerLogs/default/proxy-deploy-c84b8c4f-9lm4j/proxy": dial tcp: lookup vm2 on 127.129.208.221:53: no such host

[root@hk1 ~]$ kubectl exec proxy-deploy-c84b8c4f-9lm4j /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead.
Error from server: error dialing backend: dial tcp: lookup vm2 on 127.129.208.221:53: no such host
-- TheresaQWQ
kubernetes

0 Answers