dns

package
v0.0.0-...-7132af1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CorednsServiceTempl = template.Must(template.New("CorednsService").Parse(
		dedent.Dedent(`---
apiVersion: v1
kind: Service
metadata:
  name: coredns
  namespace: kube-system
  labels:
    k8s-app: kube-dns
    kubernetes.io/cluster-service: "true"
    kubernetes.io/name: "coredns"
    addonmanager.kubernetes.io/mode: Reconcile
  annotations:
    prometheus.io/port: "9153"
    prometheus.io/scrape: "true"
spec:
  selector:
    k8s-app: kube-dns
  clusterIP: {{ .ClusterIP }}
  ports:
    - name: dns
      port: 53
      protocol: UDP
    - name: dns-tcp
      port: 53
      protocol: TCP
    - name: metrics
      port: 9153
      protocol: TCP
    `)))
)

Functions

func CreateClusterDns

func CreateClusterDns(mgr *manager.Manager) error

func DeployNodelocaldns

func DeployNodelocaldns(mgr *manager.Manager, clusterIP string) error

func GenerateCorednsService

func GenerateCorednsService(mgr *manager.Manager) (string, error)

func GenerateNodelocaldnsConfigMap

func GenerateNodelocaldnsConfigMap(mgr *manager.Manager, clusterIP string) (string, error)

func GenerateNodelocaldnsService

func GenerateNodelocaldnsService(mgr *manager.Manager) (string, error)

func OverrideCorednsService

func OverrideCorednsService(mgr *manager.Manager) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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