How to use API access token from inside a pod? #13158
-
Hello, I am having some trouble to understand how to trigger workflows from a script/program running inside of a pod on the same cluster. I went through the docs in https://argo-workflows.readthedocs.io/en/stable/access-token/, and I can only find examples using the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
-
Well, I suppose so? 😅 I suppose we need the access credentials in order to be able to do that...
Thank you very much! |
Beta Was this translation helpful? Give feedback.
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 k8sSecret