Skip to content

k8s controller to copy cluster-api kubeconfig secrets to argocd secrets

Notifications You must be signed in to change notification settings

willemm/capi-argocd-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Cluster-API to ArgoCD clusters

There is a management cluster that runs Cluster-API to create and manage K8S clusters, This cluster uses GitOps (i.e. ArgoCD) to manage all the cluster manifests, Also, this cluster deploys packages on the created clusters.

To make this possible, these newly created clusters should be automatically added to the ArgoCD config.

Fortunately, this is quite easy: Cluster-API creates a secret -kubeconfig for each cluster it creates, which contains the configuration and credentials necessary to connect to the cluster. It just needs to be translated to the format of an argocd cluster-secret.

That's what this controller does, basically.

Note: I just started this, it seems to be working, but not really tested or anything yet. Just putting it out here, but I don't plan on supporting it or anything.

About

k8s controller to copy cluster-api kubeconfig secrets to argocd secrets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published