server

package
v0.0.0-alpha6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

func Ingress

func Ingress(ctx context.Context, cluster *v1alpha1.Cluster, client client.Client) (*networkingv1.Ingress, error)

func Server

func Server(cluster *v1alpha1.Cluster, init bool) *apps.Deployment

func Service

func Service(cluster *v1alpha1.Cluster) *v1.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL