canonical / cluster-api-control-plane-provider-microk8s

This project offers a cluster API control plane controller that manages the control plane of a MicroK8s cluster. It is expected to be used along with the respective MicroK8s specific machine bootstrap provider.
https://microk8s.io
7 stars 5 forks source link

Build kubeconfig from CA stored in secret #9

Closed ktsakalozos closed 2 years ago

ktsakalozos commented 2 years ago

The control plane provider will generate the kubeconfig file (stored as a secret for clusterctl to fetch) using a CA stored as a secret by the bootstrap provider.

A user can provide his own set of CA and kubeconfig files by creating thwo secrets named "-ca" and "-kubeconfig".