kubernetes权威指南学习遇见的问题以及意见之三:执行kubectl get pods 显示 No resources found

1.问题描述:

创建mysql.rc.yaml

执行kubectl create -f mysql.yaml  执行成功。

执行kubectl get rc    反馈正常

执行kubectl get pods .显示 : No resources found

2.解决方案

(1)#vi /etc/kubernetes/apiserver

(2)找到”KUBE_ADMISSION_CONTROL="--admission_control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"

去掉ServiceAccount,保存退出(按esc键,并输入":wq"或者":wq!")。

(3)使用命令#systemctl restart kube-apiserver  重启此服务

猜你喜欢

转载自www.cnblogs.com/lyk123/p/10721090.html