Skip to content

How to use API access token from inside a pod? #13158

Closed Locked Answered by agilgur5
abravalheri asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a reason you need API access if you're using a Pod in the same cluster? You can talk to k8s directly from the Pod, no need to go through the API (in most cases at least). The token is the credentials of a Service Account; if you're already in the cluster, you can use the SA directly.

To answer the question though, the token is a standard k8s Secret; you can mount it as a volume or use it as an env var like any other k8s Secret

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by abravalheri
Comment options

You must be logged in to vote
2 replies
@agilgur5
Comment options

@abravalheri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/api Argo Server API type/support User support issue - likely not a bug
2 participants