package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev

# Functions

AddSelfHostedPrefix adds the self-hosted- prefix to the component name.
CreateTempDirForKubeadm is a function that creates a temporary directory under /etc/kubernetes/tmp (not using /tmp as that would potentially be dangerous).
EtcdSupportedVersion returns officially supported version of etcd for a specific kubernetes release if passed version is not listed, the function returns nil and an error.
GetAdminKubeConfigPath returns the location on the disk where admin kubeconfig is located by default.
GetDNSIP returns a dnsIP, which is 10th IP in svcSubnet CIDR range.
GetStaticPodAuditPolicyFile returns the path to the audit policy file within a static pod.
GetStaticPodDirectory returns the location on the disk where the Static Pod should be present.
GetStaticPodFilepath returns the location on the disk where the Static Pod should be present.

# Constants

AdminKubeConfigFileName defines name for the KubeConfig aimed to be used by the superuser/admin of the cluster.
APICallRetryInterval defines how long kubeadm should wait before retrying a failed API operation.
APIServerCertAndKeyBaseName defines API's server certificate and key base name.
APIServerCertCommonName defines API's server certificate common name (CN).
APIServerCertName defines API's server certificate name.
APIServerEtcdClientCertAndKeyBaseName defines apiserver's etcd client certificate and key base name.
APIServerEtcdClientCertCommonName defines apiserver's etcd client certificate common name (CN).
APIServerEtcdClientCertName defines apiserver's etcd client certificate name.
APIServerEtcdClientKeyName defines apiserver's etcd client key name.
APIServerKeyName defines API's server key name.
APIServerKubeletClientCertAndKeyBaseName defines kubelet client certificate and key base name.
APIServerKubeletClientCertCommonName defines kubelet client certificate common name (CN).
APIServerKubeletClientCertName defines kubelet client certificate name.
APIServerKubeletClientKeyName defines kubelet client key name.
AuditPolicyDir is the directory that will contain the audit policy.
AuditPolicyFile is the name of the audit policy file itself.
AuditPolicyLogFile is the name of the file audit logs get written to.
CACertAndKeyBaseName defines certificate authority base name.
CACertName defines certificate name.
CAKeyName defines certificate name.
ControllerManagerKubeConfigFileName defines the file name for the controller manager's KubeConfig file.
ControllerManagerUser defines the well-known user the controller-manager should be authenticated as.
CoreDNS defines a variable used internally when referring to the CoreDNS addon for a cluster.
CRICtlPackage defines the go package that installs crictl.
DefaultCIImageRepository points to image registry where CI uploads images from ci-cross build job.
DefaultEtcdVersion indicates the default etcd version that kubeadm uses.
DefaultTokenDuration specifies the default amount of time that a bootstrap token will be valid Default behaviour is 24 hours.
DiscoveryRetryInterval specifies how long kubeadm should wait before retrying to connect to the master when doing discovery.
Etcd defines variable used internally when referring to etcd component.
EtcdCACertAndKeyBaseName defines etcd's CA certificate and key base name.
EtcdCACertName defines etcd's CA certificate name.
EtcdCAKeyName defines etcd's CA key name.
EtcdHealthcheckClientCertAndKeyBaseName defines etcd's healthcheck client certificate and key base name.
EtcdHealthcheckClientCertCommonName defines etcd's healthcheck client certificate common name (CN).
EtcdHealthcheckClientCertName defines etcd's healthcheck client certificate name.
EtcdHealthcheckClientKeyName defines etcd's healthcheck client key name.
EtcdPeerCertAndKeyBaseName defines etcd's peer certificate and key base name.
EtcdPeerCertCommonName defines etcd's peer certificate common name (CN).
EtcdPeerCertName defines etcd's peer certificate name.
EtcdPeerKeyName defines etcd's peer key name.
EtcdServerCertAndKeyBaseName defines etcd's server certificate and key base name.
EtcdServerCertCommonName defines etcd's server certificate common name (CN).
EtcdServerCertName defines etcd's server certificate name.
EtcdServerKeyName defines etcd's server key name.
FrontProxyCACertAndKeyBaseName defines front proxy CA certificate and key base name.
FrontProxyCACertName defines front proxy CA certificate name.
FrontProxyCAKeyName defines front proxy CA key name.
FrontProxyClientCertAndKeyBaseName defines front proxy certificate and key base name.
used as subject.commonname attribute (CN).
FrontProxyClientCertName defines front proxy certificate name.
FrontProxyClientKeyName defines front proxy key name.
KubeAPIServer defines variable used internally when referring to kube-apiserver component.
KubeAuditPolicyLogVolumeName is the name of the volume that will contain the audit logs.
KubeAuditPolicyVolumeName is the name of the volume that will contain the audit policy.
KubeCertificatesVolumeName specifies the name for the Volume that is used for injecting certificates to control plane components (can be both a hostPath volume or a projected, all-in-one volume).
KubeConfigVolumeName specifies the name for the Volume that is used for injecting the kubeconfig to talk securely to the api server for a control plane component if applicable.
KubeControllerManager defines variable used internally when referring to kube-controller-manager component.
KubeDNS defines a variable used internally when referring to the kube-dns addon for a cluster.
KubeletBaseConfigMapRoleName defines the base kubelet configuration ConfigMap.
KubeletBaseConfigurationConfigMap specifies in what ConfigMap in the kube-system namespace the initial remote configuration of kubelet should be stored.
KubeletBaseConfigurationConfigMapKey specifies in what ConfigMap key the initial remote configuration of kubelet should be stored.
KubeletBaseConfigurationDir specifies the directory on the node where stores the initial remote configuration of kubelet.
KubeletBaseConfigurationFile specifies the file name on the node which stores initial remote configuration of kubelet.
KubeletBootstrapKubeConfigFileName defines the file name for the KubeConfig that the kubelet will use to do the TLS bootstrap to get itself an unique credential.
KubeletKubeConfigFileName defines the file name for the KubeConfig that the master kubelet will use for talking to the API server.
KubeProxy defines variable used internally when referring to kube-proxy component.
KubeScheduler defines variable used internally when referring to kube-scheduler component.
LabelNodeRoleMaster specifies that a node is a master This is a duplicate definition of the constant in pkg/controller/service/service_controller.go.
ManifestsSubDirName defines directory name to store manifests.
MarkMasterTimeout specifies how long kubeadm should wait for applying the label and taint on the master before timing out.
MasterConfigurationConfigMap specifies in what ConfigMap in the kube-system namespace the `kubeadm init` configuration should be stored.
MasterConfigurationConfigMapKey specifies in what ConfigMap key the master configuration should be stored.
MastersGroup defines the well-known group for the apiservers.
MinExternalEtcdVersion indicates minimum external etcd version which kubeadm supports.
MinimumAddressesInServiceSubnet defines minimum amount of nodes the Service subnet should allow.
NodeBootstrapTokenAuthGroup specifies which group a Node Bootstrap Token should be authenticated in.
NodesClusterRoleBinding defines the well-known ClusterRoleBinding which binds the too permissive system:node ClusterRole to the system:nodes group.
NodesGroup defines the well-known group for all nodes.
SchedulerKubeConfigFileName defines the file name for the scheduler's KubeConfig file.
SchedulerUser defines the well-known user the scheduler should be authenticated as.
SelfHostingPrefix describes the prefix workloads that are self-hosted by kubeadm has.
ServiceAccountKeyBaseName defines SA key base name.
ServiceAccountPrivateKeyName defines SA private key base name.
ServiceAccountPublicKeyName defines SA public key base name.
StaticPodAuditPolicyLogDir is the name of the directory in the static pod that will have the audit logs.
TempDirForKubeadm defines temporary directory for kubeadm.
UpdateNodeTimeout specifies how long kubeadm should wait for updating node with the initial remote configuration of kubelet before timing out.

# Variables

AuthorizationPolicyPath defines the supported location of authorization policy file.
AuthorizationWebhookConfigPath defines the supported location of webhook config file.
DefaultTokenGroups specifies the default groups that this token will authenticate as when used for authentication.
DefaultTokenUsages specifies the default functions a token will get.
KubernetesDir is the directory kubernetes owns for storing various configuration files This semi-constant MUST NOT be modified during runtime.
MasterComponents defines the master component names.
MasterTaint is the taint to apply on the PodSpec for being able to run that Pod on the master.
MasterToleration is the toleration to apply on the PodSpec for being able to run that Pod on the master.
MinimumControlPlaneVersion specifies the minimum control plane version kubeadm can deploy.
MinimumKubeletVersion specifies the minimum version of kubelet which kubeadm supports.
SupportedEtcdVersion lists officially supported etcd versions with corresponding kubernetes releases.