k8s之污点报错:error: invalid taint effect: NoExecute-, unsupported taint effect
摘要:报错现象: [root@k8s-master affinit]# kubectl taint nodes k8s-node01 check=wangzy:NoExecute- error: invalid taint effect: NoExecute-, unsupported taint eff
阅读全文
posted @
2020-12-15 17:08
wangzy-Zj
阅读(859)
推荐(0)
k8s报错: mount failed: exit status 32
摘要:报错信息 原因:挂载出现错误 1、查看报错服务器提示的目录是否存在,若无则创建 2、查看服务器集群各 Node 节点是否安装了nfs客户端,若无则安装 yum -y install nfs-utils rpcbind 3、查看 nfs 服务器配置是否正常 发现只有一个挂载节点,手动添加后重启服务 e
阅读全文
posted @
2020-12-10 16:22
wangzy-Zj
阅读(8492)
推荐(0)
k8s删除pv一直处于terminating
摘要:pod显示解决办法 kubectl delete pod [pod name] --force --grace-period=0 -n [namespace] pv 显示解决办法 kubectl patch pv pvName1 pvName2 -p '{"metadata":{"finalizer
阅读全文
posted @
2020-12-10 15:51
wangzy-Zj
阅读(872)
推荐(0)
k8s报错:pod has unbound immediate PersistentVolumeClaims (repeated 2 times)
摘要:问题现象: 查看描述信息 [root@k8s-master pv]# kubectl describe pod web-nginx-0 原因: STORAGECLASS 没有指定的 PV 可以绑定 1、查看资源控制器绑定的 PV 信息 发现绑定的 storageClassName 为 nfs ,访问
阅读全文
posted @
2020-12-10 15:20
wangzy-Zj
阅读(17185)
推荐(0)
Error from server (AlreadyExists): secrets "basic-auth" already exists
摘要:创建 Secrets 时提示已经存在,将其删除即可 [root@k8s-master BaseAuth]# kubectl delete secret basic-auth secret "basic-auth" deleted [root@k8s-master BaseAuth]#
阅读全文
posted @
2020-12-03 16:19
wangzy-Zj
阅读(1469)
推荐(1)
k8s pod提示 ImagePullBackOff
摘要:报错现象: 原因: 一般为镜像源配置地址不对或者网络环境太卡导致镜像下载失败,Pods 运行不成功 解决办法: 方法一(推荐): 配置国内阿里云镜像地址并重启docker cat << EOF > /etc/docker/daemon.json { "registry-mirrors": ["htt
阅读全文
posted @
2020-12-01 15:44
wangzy-Zj
阅读(4347)
推荐(0)
k8s主节点报错:The connection to the server localhost:8080 was refused - did you specify the right host or port?
摘要:现象: [root@k8s-master01 ~]# kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port? 原因: 网络没
阅读全文
posted @
2020-11-11 11:44
wangzy-Zj
阅读(1234)
推荐(0)
[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster
摘要:原因: Kubelet 和 Kubeadm 版本不一致导致 查看kubelet 和 kubeadm 版本 [root@k8s-master01 cluster]# kubelet --version Kubernetes v1.19.3 [root@k8s-master01 cluster]# ku
阅读全文
posted @
2020-11-11 11:35
wangzy-Zj
阅读(5972)
推荐(0)
kubernetes升级到v1.8.0后报错:unknown flag: --experimental-upload-certs
摘要:现象: [root@master cluster]# kubeadm init --config=kubeadm.yml --experimental-upload-certs|tee kubeadm=init.log unknown flag: --experimental-upload-cert
阅读全文
posted @
2020-07-09 17:19
wangzy-Zj
阅读(1882)
推荐(0)
错误:软件包:kubelet-1.14.0-0.x86_64 (kubernetes) 需要:kubernetes-cni = 0.7.5
摘要:现象: 安装kubernetes 1.14.0 版本时提示缺少依赖 yum -y install kubelet-1.14.0 kubeadm-1.14.0 kubectl-1.14.0 --disableexcludes=kubernetes 解决办法: 1、安装基础软件 yum -y insta
阅读全文
posted @
2020-07-09 14:41
wangzy-Zj
阅读(7536)
推荐(1)
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
摘要:报错现象: [root@k8s-node02 ~]# kubeadm join 192.168.43.12:6443 --token abcdef.0123456789abcdef \ > --discovery-token-ca-cert-hash sha256:ee53b0ba5728c73f9
阅读全文
posted @
2020-06-17 15:44
wangzy-Zj
阅读(3523)
推荐(0)
The connection to the server 192.168.43.12:6443 was refused - did you specify the right host or port?
摘要:现象:更改主机名或者服务器重启后出现报错 [root@master pki]# kubectl get pod -n kube-system The connection to the server 192.168.43.12:6443 was refused - did you specify t
阅读全文
posted @
2020-06-15 17:28
wangzy-Zj
阅读(14215)
推荐(0)
Kubernetes 加入主节点报错
摘要:现象: [root@k8s-node01 k8s_images]# kubeadm join 192.168.**.**:6443 --token b01y9k.dmiclmvg976u1rzb \ > --discovery-token-ca-cert-hash sha256:e2bbb51848
阅读全文
posted @
2020-06-15 14:45
wangzy-Zj
阅读(8169)
推荐(1)