Unable to connect to the server: x509: certificate is valid for 10.96.0.1, 10.0.1.76, not 119.28.78.191
报错原因:
Connection error: Get https://119.28.78.191:6443/api/v1/namespaces/default/pods?limit=500: x509: certificate is valid for 10.96.0.1, 10.0.1.76, not 119.28.78.191
由于我使用的是云主机,k8s证书签名的时候签的是内网ip,并不是eip,外网ip ,所以证书认证失败,跳过证书认证即可
解决办法:
kubectl get po --insecure-skip-tls-verify
% kubectl get po --insecure-skip-tls-verify
NAME READY STATUS RESTARTS AGE
busybox-cd8b7db95-rvn9p 1/1 Running 1 4d4h
demotest-helmtest-5dc8649987-jzgfb 1/1 Running 0 23h
demotest2-helmtest-55585789d5-6cpz6 1/1 Running 0 23h
helmtest-1-7f86dd445b-2htjn 1/1 Running 0 3d17h
helmtest-bcb4854b6-phtbg 1/1 Running 0 3d17h
背景:Unable to connect to the server: x509: certificate is valid for 10.96.0.1, 10.0.1.76, not 119.28.78.191报错原因:Connection error: Get https://119.28.78.191:6443/api/v1/namespaces/default/pods?limit=500: x509: certificate is valid for 10.96.0.1, 10.0.1.7
执行:kubectl get node
报错:Unable to connect to the server: x509: certificate has expired or is not yet valid
后来在官网搜索资料,找到一篇文章:https://kubesphere.com.cn/forum/d/6102-kk
从这篇文章看到一个大佬出了解决方案:https://jwangkun.github.io/OYyruQGSe/
还有这篇:https://jwangkun.github.io/S
node节点加入集群中是报错:
x509: certificate is valid for 10.96.0.1, 172.18.255.243, not 120.79.23.226
具体详细信息如下:
通过网上查找:https:/...
[root@k8s-n0 kuboard-install]# kubeadm alpha certs check-expiration
[check-expiration] Reading configuration from the cluster...
[check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
[check-expi
kubectl apply -f https://rancher.test.cn/v3/import/xlxwdf6fz6jtgrfcmscs79msn8dkmjbs87p42npgcktjkx2q7shpx5.yaml
Unable to connect to the server: x509: certificate is valid for ingress.local, not ranch...
嵌入式DB的高可用目前还是实验性的,本文不过多介绍,请参考:
https://rancher.com/docs/k3s/latest/en/installation/ha-embedded/
使用外部数据库实现高可用需要搭建一个高可用的外置数据库,目前,K3s支持S
kubernetes:pods is forbidden: User “system:serviceaccount:dev:default” cannot create resource “pods”
大鹏blog:
docker :删除/var/lib/docker/overlay2,容器启动失败
Leftcousin12:
go :gin 模板创建单个二进制文件
大鹏blog: