Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

KubeConfig.from_service_account() fails running within a Pod #74

Closed
eliafengar opened this issue Sep 27, 2016 · 2 comments
Closed

KubeConfig.from_service_account() fails running within a Pod #74

eliafengar opened this issue Sep 27, 2016 · 2 comments

Comments

@eliafengar
Copy link

[Errno 13] Permission denied: '/var/run/secrets/kubernetes.io/serviceaccount/token'

@eliafengar
Copy link
Author

I tried access the API server using URL and I managed to access using the non secure 8080 port, when accessing the secure 443 port, I get unauthorized.

@eliafengar eliafengar reopened this Oct 3, 2016
@eliafengar
Copy link
Author

Permission denied due to the fact the container in the pod was running without "securityContext": {"priviledged": true}
The odd thing is why do I need to run privileged in order to access the Kube API

After passing the permission issue, I get "Invalid Padding" error, something related to the token reading, I checked and the token is divided successfullt into 4 meaning the issue is not at the token
seems like the issue is around the python code that reads the file and adds new line after the token

are there any plans to fix it?

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

No branches or pull requests

1 participant