Replies: 3 comments 1 reply
-
Hi @vvijayv , thanks for starting this discussion (transferred over from issue, as this is not in k3d's scope). |
Beta Was this translation helpful? Give feedback.
-
@vvijayv did you happen to figure out how to fix this? |
Beta Was this translation helpful? Give feedback.
-
I have just managed to add one k3d cluster to an existing k3d cluster that is running argocd. In my setup the cluster As the very first step, I used The idea is to configure the cluster connection completely by hand using a secret. As step 1, the
This allows the Next up is to obtain the bearer token of the argocd service account on the
Note that above the last part of the secret name can/will differ in your case (just use autocomplete). Next step is to define the cluster secret:
Here, TOKEN is the value of the TOKEN variable above. CADATA is the CA data obtained from the .kube/config file for the k3d-abc cluster. After this, you might need to stop and start the With this approach, I can add an application on
|
Beta Was this translation helpful? Give feedback.
-
What did you do
I have 2 K3D clusters in my Mac, created using the k3d command. On one of the cluster, I have installed the ArgoCD, and left the other for running applications.
How was the cluster created?
k3d cluster create argocd --network my-network
# cluster argocd is deployed (kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
)k3d cluster create dev-cluster --network my-network
# cluster to deploy my applicationsWhat did you do afterwards?
I now run the argocd command to add dev-cluster using the below command (port-forward & argocd login steps are skipped for brevity)
$ argocd cluster add k3d-qa-cluster
I got the below error
What did you expect to happen
The Argocd should connect to the
k3d-dev-cluster
, create serviceaccount, clusterrole, clusterrolebindings add the cluster to the argocd.Screenshots or terminal output
Which OS & Architecture
MacOS, x86
Which version of
k3d
Which version of docker
Beta Was this translation helpful? Give feedback.
All reactions