dns

package
v1.9.0-rancher2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// KubeDNSService is the kube-dns Service manifest
	KubeDNSService = `` /* 628-byte string literal not displayed */

	// CoreDNSDeployment is the CoreDNS Deployment manifest
	CoreDNSDeployment = `` /* 1510-byte string literal not displayed */

	// CoreDNSConfigMap is the CoreDNS ConfigMap manifest
	CoreDNSConfigMap = `` /* 330-byte string literal not displayed */

	// CoreDNSClusterRole is the CoreDNS ClusterRole manifest
	CoreDNSClusterRole = `` /* 212-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

func CreateServiceAccount(client clientset.Interface) error

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

func EnsureDNSAddon

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

EnsureDNSAddon creates the kube-dns or CoreDNS addon

func GetCoreDNSManifest added in v1.9.0

func GetCoreDNSManifest(kubeVersion *version.Version) string

GetCoreDNSManifest returns the right CoreDNS YAML manifest for a specific k8s version

func GetDNSVersion added in v1.9.0

func GetDNSVersion(kubeVersion *version.Version, dns string) string

GetDNSVersion returns the right kube-dns version for a specific k8s version

func GetKubeDNSManifest

func GetKubeDNSManifest(kubeVersion *version.Version) string

GetKubeDNSManifest returns the right kube-dns YAML manifest for a specific k8s version

func GetKubeDNSProbeType added in v1.9.0

func GetKubeDNSProbeType(kubeVersion *version.Version) string

GetKubeDNSProbeType returns the right kube-dns probe for a specific k8s version

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL