Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl create -f apache.json fails #75

Open
pecameron opened this issue Sep 17, 2015 · 1 comment
Open

kubectl create -f apache.json fails #75

pecameron opened this issue Sep 17, 2015 · 1 comment

Comments

@pecameron
Copy link

kubectl create -f apache.json

Error from server: error when creating "apache.json": Pod "apache-pod" is forbidden: no API token found for service account default/default, retry after the token is automatically created and added to the service account

dcbw found the reason for this. "ServiceAccount" needs to be removed from
/etc/kubernetes/apiserver
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"

systemctl restart kube-apiserver

and all is well

kubectl create -f apache.json

pods/apache-pod

@navidshaikh
Copy link
Contributor

similar issue and fix at projectatomic/adb-atomic-developer-bundle#76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants