package dns

import "k8s.io/kubernetes/cmd/kubeadm/app/phases/addons/dns"

Index

Constants

const (
	CoreDNSService = "" /* 781 byte string literal not displayed */

	CoreDNSDeployment = "" /* 2129 byte string literal not displayed */

	CoreDNSConfigMap = "" /* 527 byte string literal not displayed */

	CoreDNSClusterRole = "" /* 368 byte string literal not displayed */

	CoreDNSClusterRoleBinding = "" /* 266 byte string literal not displayed */

	CoreDNSServiceAccount = `
apiVersion: v1
kind: ServiceAccount
metadata:
  name: coredns
  namespace: kube-system
`
)

Functions

func DeployedDNSAddon

func DeployedDNSAddon(client clientset.Interface) (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 CoreDNS addon

func GetCoreDNSInfo

func GetCoreDNSInfo(client clientset.Interface) (*v1.ConfigMap, string, string, error)

GetCoreDNSInfo gets the current CoreDNS installed and the current Corefile Configuration of CoreDNS.

Source Files

dns.go manifests.go

Version
v1.22.0
Published
Aug 4, 2021
Platform
linux/amd64
Imports
21 packages
Last checked
19 minutes ago

Tools for package owners.