kubernetes failed to create pods

Although creating rc through yaml shows success every time, 
kubectl get pods does not show any pods.

Solution: remove

SecurityContextDeny, ServiceAccount in /etc/kubernetes/apiserver KUBE_ADMISSION_CONTROL, and restart the kube-apiserver.service service:

vim / etc / kubernetes / apiserver

KUBE_ADMISSION_CONTROL="--admission_control=NamespaceLifecycle,NamespaceExists,LimitRanger,ResourceQuota"

Says it's an authentication issue.

Restart service kube-apiserver   restart

However, the container has been starting up and needs to be checked later!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325431687&siteId=291194637