Documentation ¶
Index ¶
- Constants
- func CreateServiceAccount(client clientset.Interface) error
- func DeployedDNSAddon(client clientset.Interface) (kubeadmapi.DNSAddOnType, string, error)
- func EnsureDNSAddon(cfg *kubeadmapi.ClusterConfiguration, client clientset.Interface) error
- func GetCoreDNSInfo(client clientset.Interface) (*v1.ConfigMap, string, string, error)
- func IsCoreDNSConfigMapMigrationRequired(corefile string) bool
Constants ¶
View Source
const ( // KubeDNSDeployment is the kube-dns Deployment manifest for the kube-dns manifest for v1.7+ KubeDNSDeployment = `` /* 4437-byte string literal not displayed */ // KubeDNSService is the kube-dns Service manifest KubeDNSService = `` /* 779-byte string literal not displayed */ // CoreDNSDeployment is the CoreDNS Deployment manifest CoreDNSDeployment = `` /* 2056-byte string literal not displayed */ // CoreDNSConfigMap is the CoreDNS ConfigMap manifest CoreDNSConfigMap = `` /* 525-byte string literal not displayed */ // CoreDNSClusterRole is the CoreDNS ClusterRole manifest CoreDNSClusterRole = `` /* 272-byte string literal not displayed */ // CoreDNSClusterRoleBinding is the CoreDNS Clusterrolebinding manifest CoreDNSClusterRoleBinding = `` /* 264-byte string literal not displayed */ // CoreDNSServiceAccount is the CoreDNS ServiceAccount manifest CoreDNSServiceAccount = ` apiVersion: v1 kind: ServiceAccount metadata: name: coredns namespace: kube-system ` )
View Source
const (
// KubeDNSServiceAccountName describes the name of the ServiceAccount for the kube-dns addon
KubeDNSServiceAccountName = "kube-dns"
)
Variables ¶
This section is empty.
Functions ¶
func CreateServiceAccount ¶
CreateServiceAccount creates the necessary serviceaccounts that kubeadm uses/might use, if they don't already exist.
func DeployedDNSAddon ¶ added in v1.11.0
func DeployedDNSAddon(client clientset.Interface) (kubeadmapi.DNSAddOnType, string, error)
DeployedDNSAddon returns the type of DNS addon currently deployed
func EnsureDNSAddon ¶
func EnsureDNSAddon(cfg *kubeadmapi.ClusterConfiguration, client clientset.Interface) error
EnsureDNSAddon creates the kube-dns or CoreDNS addon
func GetCoreDNSInfo ¶ added in v1.16.0
GetCoreDNSInfo gets the current CoreDNS installed and the current Corefile Configuration of CoreDNS.
func IsCoreDNSConfigMapMigrationRequired ¶ added in v1.16.0
IsCoreDNSConfigMapMigrationRequired checks if a migration of the CoreDNS ConfigMap is required.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.