Documentation ¶
Index ¶
- func GenerateNewKubeConfig(ctx context.Context, cluster *v1alpha1.Cluster, ip string) (*v1.Secret, error)
- func Ingress(ctx context.Context, cluster *v1alpha1.Cluster, client client.Client) (*networkingv1.Ingress, error)
- func Server(cluster *v1alpha1.Cluster, init bool) *apps.Deployment
- func Service(cluster *v1alpha1.Cluster) *v1.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewKubeConfig ¶
func GenerateNewKubeConfig(ctx context.Context, cluster *v1alpha1.Cluster, ip string) (*v1.Secret, error)
GenerateNewKubeConfig generates the kubeconfig for the cluster: 1- use the server token to get the bootstrap data from k3s 2- generate client admin cert/key 3- use the ca cert from the bootstrap data & admin cert/key to write a new kubeconfig 4- save the new kubeconfig as a secret
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.