package dns

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

Index

Constants

const (
	KubeDNSDeployment = "" /* 4563 byte string literal not displayed */

	KubeDNSService = "" /* 709 byte string literal not displayed */

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

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

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

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

	CoreDNSServiceAccount = `
apiVersion: v1
kind: ServiceAccount
metadata:
  name: coredns
  namespace: kube-system
`
)
const (
	// KubeDNSServiceAccountName describes the name of the ServiceAccount for the kube-dns addon
	KubeDNSServiceAccountName = "kube-dns"
)

Functions

func CreateServiceAccount

func CreateServiceAccount(client clientset.Interface) error

CreateServiceAccount creates the necessary serviceaccounts that kubeadm uses/might use, if they don't already exist.

func DeployedDNSAddon

func DeployedDNSAddon(client clientset.Interface) (kubeadmapi.DNSAddOnType, string, error)

DeployedDNSAddon returns the type of DNS addon currently deployed

func EnsureDNSAddon

func EnsureDNSAddon(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error

EnsureDNSAddon creates the kube-dns or CoreDNS addon

Source Files

dns.go manifests.go

Version
v1.13.13-beta.0
Published
Oct 15, 2019
Platform
linux/amd64
Imports
18 packages
Last checked
19 minutes ago

Tools for package owners.