Documentation ¶
Index ¶
- func CreateAdminKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
- func CreateControllerManagerKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
- func CreateInitKubeConfigFiles(outDir string, cfg *kubeadmapi.MasterConfiguration) error
- func CreateKubeletKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
- func CreateSchedulerKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
- func WriteKubeConfigWithClientCert(out io.Writer, cfg *kubeadmapi.MasterConfiguration, clientName string) error
- func WriteKubeConfigWithToken(out io.Writer, cfg *kubeadmapi.MasterConfiguration, clientName, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdminKubeConfigFile ¶ added in v1.8.1
func CreateAdminKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
CreateAdminKubeConfigFile create a kubeconfig file for the admin to use and for kubeadm itself. If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
func CreateControllerManagerKubeConfigFile ¶ added in v1.8.1
func CreateControllerManagerKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
CreateControllerManagerKubeConfigFile create a kubeconfig file for the ControllerManager to use. If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
func CreateInitKubeConfigFiles ¶
func CreateInitKubeConfigFiles(outDir string, cfg *kubeadmapi.MasterConfiguration) error
CreateInitKubeConfigFiles will create and write to disk all kubeconfig files necessary in the kubeadm init phase to establish the control plane, including also the admin kubeconfig file. If kubeconfig files already exists, they are used only if evaluated equal; otherwise an error is returned.
func CreateKubeletKubeConfigFile ¶ added in v1.8.1
func CreateKubeletKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
CreateKubeletKubeConfigFile create a kubeconfig file for the Kubelet to use. If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
func CreateSchedulerKubeConfigFile ¶ added in v1.8.1
func CreateSchedulerKubeConfigFile(outDir string, cfg *kubeadmapi.MasterConfiguration) error
CreateSchedulerKubeConfigFile create a create a kubeconfig file for the Scheduler to use. If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
func WriteKubeConfigWithClientCert ¶ added in v1.8.1
func WriteKubeConfigWithClientCert(out io.Writer, cfg *kubeadmapi.MasterConfiguration, clientName string) error
WriteKubeConfigWithClientCert writes a kubeconfig file - with a client certificate as authentication info - to the given writer.
func WriteKubeConfigWithToken ¶ added in v1.8.1
func WriteKubeConfigWithToken(out io.Writer, cfg *kubeadmapi.MasterConfiguration, clientName, token string) error
WriteKubeConfigWithToken writes a kubeconfig file - with a token as client authentication info - to the given writer.
Types ¶
This section is empty.