kubeconfig

package
v1.0.1-0...-5dc2c13 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAdminKubeConfigFile

func CreateAdminKubeConfigFile(outDir string, cfg *kubeadmapi.InitConfiguration) 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

func CreateControllerManagerKubeConfigFile(outDir string, cfg *kubeadmapi.InitConfiguration) 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.InitConfiguration) 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 CreateJoinControlPlaneKubeConfigFiles

func CreateJoinControlPlaneKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration) error

CreateJoinControlPlaneKubeConfigFiles will create and write to disk the kubeconfig files required by kubeadm join --control-plane workflow, plus the admin kubeconfig file used by the administrator and kubeadm itself; the kubelet.conf file must not be created because it will be created and signed by the kubelet TLS bootstrap process. If any kubeconfig files already exists, it used only if evaluated equal; otherwise an error is returned.

func CreateKubeletKubeConfigFile

func CreateKubeletKubeConfigFile(outDir string, cfg *kubeadmapi.InitConfiguration) 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

func CreateSchedulerKubeConfigFile(outDir string, cfg *kubeadmapi.InitConfiguration) 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

func WriteKubeConfigWithClientCert(out io.Writer, cfg *kubeadmapi.InitConfiguration, clientName string, organizations []string) error

WriteKubeConfigWithClientCert writes a kubeconfig file - with a client certificate as authentication info - to the given writer.

func WriteKubeConfigWithToken

func WriteKubeConfigWithToken(out io.Writer, cfg *kubeadmapi.InitConfiguration, 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.

Jump to

Keyboard shortcuts

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