Replies: 1 comment 6 replies
-
Hello, I was recently struggling with this same topic, I have some usefull insights that I would like to share. For this setup to work you need to be sure to also add the umi annotations to the service account for argocd-application-controller just like how you did for the argocd-server service account. Afterwards you need to make sure the correct federated credentials are added to the UMI
afterwards also make sure to put the annotation on the server deployment and controller statefulset.
to answer the question asked in this posted, you need to use the CA data from the cluster you are trying to join, you can find this in your kubeconfig file after you have connected with the cluster atleast once. also the path to the token is probably already mounted in the container as an env var, for me it was at hope this will help people because I spend about a week figuring out that you need to put those annotations on the application controller aswell and not only on the argocd-server deployment and I stumbled on it by accident because I broke something on the controller and went digging through the logs. Don't think it was mentioned anywhere in the docs or maybe I looked over it :) |
Beta Was this translation helpful? Give feedback.
-
Hello guy, I am trying to setup workload identity to connect to a remote AKS. I have configured a secret that will give me access to the remote cluster, however I am getting the following error:
Get "https://mycluster:443 getting credentials: exec: executable argocd-k8s-auth failed with exit code 20
The workload identity works just fine as I have already integrated it with my External Secret Operator but I am not sure what is going on with the argocd. We also don't believe it is a network related issue as we've tested the communication between argocd main cluster > AKS remote.
I wonder what should put in:
AZURE_FEDERATED_TOKEN_FILE
caData
I can see the secret created in argocd Settings/Clusters yet it shows as failed. Below the secret that I am using:
i appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions