Documentation ¶
Index ¶
- Constants
- func CreateCertsAndConfigForClients(advertiseAddresses, clientNames []string, caKey *rsa.PrivateKey, ...) (map[string]*clientcmdapi.Config, error)
- func CreateClientAndWaitForAPI(adminConfig *clientcmdapi.Config) (*clientset.Clientset, error)
- func CreateDiscoveryDeploymentAndSecret(s *kubeadmapi.MasterConfiguration, client *clientset.Clientset, ...) error
- func CreateEssentialAddons(s *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
- func CreatePKIAssets(s *kubeadmapi.MasterConfiguration) (*rsa.PrivateKey, *x509.Certificate, error)
- func CreateTokenAuthFile(s *kubeadmapi.Secrets) error
- func NewDaemonSet(daemonName string, podSpec api.PodSpec) *extensions.DaemonSet
- func NewDeployment(deploymentName string, replicas int32, podSpec api.PodSpec) *extensions.Deployment
- func NewService(serviceName string, spec api.ServiceSpec) *api.Service
- func SetMasterNodeAffinity(meta *api.ObjectMeta)
- func SetMasterTaintTolerations(meta *api.ObjectMeta)
- func UpdateMasterRoleLabelsAndTaints(client *clientset.Clientset, schedulable bool) error
- func WriteStaticPodManifests(s *kubeadmapi.MasterConfiguration) error
Constants ¶
View Source
const ( DefaultClusterName = "kubernetes" DefaultCloudConfigPath = "/etc/kubernetes/cloud-config.json" )
Variables ¶
This section is empty.
Functions ¶
func CreateCertsAndConfigForClients ¶
func CreateCertsAndConfigForClients(advertiseAddresses, clientNames []string, caKey *rsa.PrivateKey, caCert *x509.Certificate) (map[string]*clientcmdapi.Config, error)
func CreateClientAndWaitForAPI ¶
func CreateClientAndWaitForAPI(adminConfig *clientcmdapi.Config) (*clientset.Clientset, error)
func CreateDiscoveryDeploymentAndSecret ¶
func CreateDiscoveryDeploymentAndSecret(s *kubeadmapi.MasterConfiguration, client *clientset.Clientset, caCert *x509.Certificate) error
func CreateEssentialAddons ¶
func CreateEssentialAddons(s *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
func CreatePKIAssets ¶
func CreatePKIAssets(s *kubeadmapi.MasterConfiguration) (*rsa.PrivateKey, *x509.Certificate, error)
CreatePKIAssets will create and write to disk all PKI assets necessary to establish the control plane. It first generates a self-signed CA certificate, a server certificate (signed by the CA) and a key for signing service account tokens. It returns CA key and certificate, which is convenient for use with client config funcs.
func CreateTokenAuthFile ¶
func CreateTokenAuthFile(s *kubeadmapi.Secrets) error
func NewDaemonSet ¶
func NewDaemonSet(daemonName string, podSpec api.PodSpec) *extensions.DaemonSet
func NewDeployment ¶
func NewDeployment(deploymentName string, replicas int32, podSpec api.PodSpec) *extensions.Deployment
func NewService ¶
func NewService(serviceName string, spec api.ServiceSpec) *api.Service
func SetMasterNodeAffinity ¶
func SetMasterNodeAffinity(meta *api.ObjectMeta)
func SetMasterTaintTolerations ¶
func SetMasterTaintTolerations(meta *api.ObjectMeta)
func WriteStaticPodManifests ¶
func WriteStaticPodManifests(s *kubeadmapi.MasterConfiguration) error
WriteStaticPodManifests builds manifest objects based on user provided configuration and then dumps it to disk where kubelet will pick and schedule them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.