Enable anonymous read only access to users in Argo-workflows similar to Argocd

Viewed 1038
2 Answers

Find the name of the server pod

lausser@roosevelt:~/git/argo-workflows$ kubectl -n argo get pods
NAME                                                         READY   STATUS     RESTARTS   AGE
arschgo-argo-workflows-workflow-controller-69dcddf54-jhgfx   1/1     Running    0          42m
svclb-arschgo-argo-workflows-server-z4vhh                    1/1     Running    0          42m
arschgo-argo-workflows-server-6777499bc-2brcc                1/1     Running    0          42m
base-template-nzfs8                                          1/2     NotReady   0          19m

and then

kubectl -n argo exec pod/arschgo-argo-workflows-server-6777499bc-2brcc -- argo auth token

and it will output the token. (my namespace is "argo")

with one command

kubectl -n argo exec $(kubectl get pod -n argo -l 'app=argo-server' -o jsonpath='{.items[0].metadata.name}') -- argo auth token
Related