Documentation
¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyCmd = &cobra.Command{ Use: "apply", Short: "Create Kubernetes cluster", Run: func(cmd *cobra.Command, args []string) { hclient := hcloud.NewClient(hcloud.WithToken(viper.GetString("hetzner_token"))) masters := createServers(hclient, true) setupK3s(masters) kubeconfig, err := saveKubeconfig(masters[0]) if err != nil { log.Println(err) } config, err := clientcmd.RESTConfigFromKubeConfig(kubeconfig) if err != nil { fmt.Println(err) return } clientset, err := kubernetes.NewForConfig(config) if err != nil { fmt.Println(err) return } deployCloudController(clientset) log.Println("Cluster setup is complete") }, }
var host string serversCmd represents the servers command
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
Click to show internal directories.
Click to hide internal directories.