package master
import "k8s.io/kubernetes/cmd/kubeadm/app/master"
Index ¶
- Constants
- func CreateCertsAndConfigForClients(cfg kubeadmapi.API, clientNames []string, caKey *rsa.PrivateKey, caCert *x509.Certificate) (map[string]*clientcmdapi.Config, error)
- func CreateClientAndWaitForAPI(adminConfig *clientcmdapi.Config) (*clientset.Clientset, error)
- func CreateDiscoveryDeploymentAndSecret(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset, caCert *x509.Certificate) error
- func CreateEssentialAddons(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
- func CreatePKIAssets(cfg *kubeadmapi.MasterConfiguration) (*rsa.PrivateKey, *x509.Certificate, error)
- func CreateTokenAuthFile(s *kubeadmapi.Secrets) error
- func MasterNodeAffinity() api.NodeSelectorRequirement
- func NativeArchitectureNodeAffinity() api.NodeSelectorRequirement
- 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 SetMasterTaintTolerations(meta *api.ObjectMeta)
- func SetNodeAffinity(meta *api.ObjectMeta, expr ...api.NodeSelectorRequirement)
- func UpdateMasterRoleLabelsAndTaints(client *clientset.Clientset, schedulable bool) error
- func WriteStaticPodManifests(cfg *kubeadmapi.MasterConfiguration) error
Constants ¶
const ( DefaultClusterName = "kubernetes" DefaultCloudConfigPath = "/etc/kubernetes/cloud-config.json" )
Functions ¶
func CreateCertsAndConfigForClients ¶
func CreateCertsAndConfigForClients(cfg kubeadmapi.API, 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(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset, caCert *x509.Certificate) error
func CreateEssentialAddons ¶
func CreateEssentialAddons(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
func CreatePKIAssets ¶
func CreatePKIAssets(cfg *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 MasterNodeAffinity ¶
func MasterNodeAffinity() api.NodeSelectorRequirement
MasterNodeAffinity returns api.NodeSelectorRequirement to be used with SetNodeAffinity to set affinity to master node
func NativeArchitectureNodeAffinity ¶
func NativeArchitectureNodeAffinity() api.NodeSelectorRequirement
NativeArchitectureNodeAffinity returns api.NodeSelectorRequirement to be used with SetNodeAffinity to nodes with CPU architecture the same as master node
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 SetMasterTaintTolerations ¶
func SetMasterTaintTolerations(meta *api.ObjectMeta)
func SetNodeAffinity ¶
func SetNodeAffinity(meta *api.ObjectMeta, expr ...api.NodeSelectorRequirement)
SetNodeAffinity is a basic helper to set meta.Annotations[api.AffinityAnnotationKey] for one or more api.NodeSelectorRequirement(s)
func UpdateMasterRoleLabelsAndTaints ¶
func WriteStaticPodManifests ¶
func WriteStaticPodManifests(cfg *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.
Source Files ¶
addons.go apiclient.go discovery.go kubeconfig.go manifests.go pki.go tokens.go
- Version
- v1.5.6
- Published
- Mar 28, 2017
- Platform
- js/wasm
- Imports
- 30 packages
- Last checked
- 2 minutes ago –
Tools for package owners.