kubectl logs 查看日志报错
来源:7-7 小试牛刀
慕仰2057297
2018-05-14
老师您好:
以下是我遇到的问题。
1、启动deployment
root@kuberneters-master:~/services# kubectl apply -f nginx-deployment.yaml deployment "nginx-deployment" created root@kuberneters-master:~/services# kubectl get -f nginx-deployment.yaml NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE nginx-deployment 4 4 4 4 6s root@kuberneters-master:~/services# kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE nginx-deployment-65dbdf6899-9bkzh 1/1 Running 0 16s 172.20.10.18 192.168.1.212 nginx-deployment-65dbdf6899-ckz4f 1/1 Running 0 16s 172.20.10.19 192.168.1.212 nginx-deployment-65dbdf6899-cxsws 1/1 Running 0 16s 172.20.193.132 192.168.1.211 nginx-deployment-65dbdf6899-s27xc 1/1 Running 0 16s 172.20.193.133 192.168.1.211
2、查看日志
root@kuberneters-master:~/services# kubectl logs nginx-deployment-65dbdf6899-cxsws Error from server: Get http://192.168.1.211:10250/containerLogs/default/nginx-deployment-65dbdf6899-cxsws/nginx: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
3、节点报错
May 14 11:26:10 kuberneters-node01 kubelet[12999]: I0514 11:26:10.227457 12999 logs.go:41] http: TLS handshake error from 192.168.1.210:57248: tls: first record does not look like a TLS handshake
请问老师这是什么问题呢?
写回答
1回答
-
刘果国
2018-05-14
https问题,看日志要安装证书版本的才可以哦。
072018-05-16
相似问题