Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Kubeconfig for WorkloadClusters with CAPD #8

Closed
PatrickLaabs opened this issue Feb 5, 2024 · 1 comment
Closed

Kubeconfig for WorkloadClusters with CAPD #8

PatrickLaabs opened this issue Feb 5, 2024 · 1 comment

Comments

@PatrickLaabs
Copy link
Owner

To fix the kubeconfig for the CAPD workload clusters:

https://cluster-api.sigs.k8s.io/clusterctl/developers.html?highlight=sed#fix-kubeconfig-when-using-docker-desktop-and-clusterctl

# Point the kubeconfig to the exposed port of the load balancer, rather than the inaccessible container IP.
sed -i -e "s/server:.*/server: https:\/\/$(docker port capi-quickstart-lb 6443/tcp | sed "s/0.0.0.0/127.0.0.1/")/g" ./capi-quickstart.kubeconfig
@PatrickLaabs
Copy link
Owner Author

Documented in code. Needs implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant