package master
import "k8s.io/kubernetes/cmd/kubeadm/app/master"
Index ¶
- Constants
- func CreateClientAndWaitForAPI(file string) (*clientset.Clientset, error)
- func CreateClientFromFile(path string) (*clientset.Clientset, error)
- func CreateDiscoveryDeploymentAndSecret(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
- func CreateEssentialAddons(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
- func CreateSelfHostedControlPlane(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
- func CreateTokenAuthFile(bt string) error
- func NewDaemonSet(daemonName string, podSpec v1.PodSpec) *extensions.DaemonSet
- func NewDeployment(deploymentName string, replicas int32, podSpec v1.PodSpec) *extensions.Deployment
- func NewService(serviceName string, spec v1.ServiceSpec) *v1.Service
- func SetMasterTaintTolerations(meta *metav1.ObjectMeta)
- func UpdateMasterRoleLabelsAndTaints(client *clientset.Clientset, schedulable bool) error
- func WaitForAPI(client *clientset.Clientset)
- func WriteStaticPodManifests(cfg *kubeadmapi.MasterConfiguration) error
Constants ¶
const ( DefaultClusterName = "kubernetes" DefaultCloudConfigPath = "/etc/kubernetes/cloud-config" )
Static pod definitions in golang form are included below so that `kubeadm init` can get going.
const ( // TODO: prefix with kubeadm prefix KubeletBootstrapUser = "kubeadm-node-csr" KubeletBootstrapGroup = "kubeadm:kubelet-bootstrap" )
const KubeDNS = "kube-dns"
Functions ¶
func CreateClientAndWaitForAPI ¶
func CreateClientFromFile ¶
func CreateDiscoveryDeploymentAndSecret ¶
func CreateDiscoveryDeploymentAndSecret(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
func CreateEssentialAddons ¶
func CreateEssentialAddons(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
func CreateSelfHostedControlPlane ¶
func CreateSelfHostedControlPlane(cfg *kubeadmapi.MasterConfiguration, client *clientset.Clientset) error
func CreateTokenAuthFile ¶
func NewDaemonSet ¶
func NewDaemonSet(daemonName string, podSpec v1.PodSpec) *extensions.DaemonSet
func NewDeployment ¶
func NewDeployment(deploymentName string, replicas int32, podSpec v1.PodSpec) *extensions.Deployment
func NewService ¶
func NewService(serviceName string, spec v1.ServiceSpec) *v1.Service
func SetMasterTaintTolerations ¶
func SetMasterTaintTolerations(meta *metav1.ObjectMeta)
func UpdateMasterRoleLabelsAndTaints ¶
func WaitForAPI ¶
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 manifests.go selfhosted.go tokens.go
- Version
- v1.6.0-alpha.1
- Published
- Jan 30, 2017
- Platform
- js/wasm
- Imports
- 31 packages
- Last checked
- 18 minutes ago –
Tools for package owners.