Documentation ¶
Index ¶
- Variables
- func CreateClusterDns(mgr *manager.Manager) error
- func DeployNodelocaldns(mgr *manager.Manager, clusterIP string) error
- func GenerateCorednsService(mgr *manager.Manager) (string, error)
- func GenerateNodelocaldnsConfigMap(mgr *manager.Manager, clusterIP string) (string, error)
- func GenerateNodelocaldnsService(mgr *manager.Manager) (string, error)
- func OverrideCorednsService(mgr *manager.Manager) error
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 --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch - apiGroups: - "" resources: - nodes verbs: - get - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - watch - list `))) )
Functions ¶
func CreateClusterDns ¶
func OverrideCorednsService ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.