apiserver报错failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503

今天上k8s集群,kubectl命令操作卡顿,执行kubectlgetnode命令返回有时很快,有时能卡好几十秒。然后检查apiserver日志,发现了以下信息v1beta1.metrics.k8s.io failed with: failing or missing response from https://10.106.18.58:443/apis/metrics.k8s.io/v1beta1: Get https://10.106.18.58...

阅读全文

apiserver报http: TLS handshake error from xxx:xxx: remote error: tls: bad certificate

检查k8s中发现coredns起不来,后面查看apiserver,里面有如下报错信息http: TLS handshake error from xxx:xxx: remote error: tls: bad certificate后面怀疑是之前添加的apiserver中端口范围影响的,然后去修改kube-apiserver.yaml文件apiVersion: v1kind: Podmetadata:  ...

阅读全文

kubelet报错nable to connect to the server: x509: certificate is valid for xxx, not xxx

我当前k8s环境是多master节点,前几天刚续费k8s证书,今天查看所有工作节点均notready,但是master节点正常,查看工作节点kubelet报错日志如下:k8s.io/kubernetes/pkg/kubelet/kubelet.go:450: Failed to list *v1.Service: Get https://192.168.1.220:16443/api/v1/services?limit=500&resourceVersion=0: x509:&...

阅读全文