[feature] Update CoreDNS manifests (#9977)

pull/9986/head
Mohamed Omar Zaian 2023-04-13 06:38:35 +02:00 committed by GitHub
parent 43216436ab
commit ed6f8df784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 24 deletions

View File

@ -7,26 +7,26 @@ metadata:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
name: system:coredns name: system:coredns
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- endpoints - endpoints
- services - services
- pods - pods
- namespaces - namespaces
verbs: verbs:
- list - list
- watch - watch
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- nodes - nodes
verbs: verbs:
- get - get
- apiGroups: - apiGroups:
- discovery.k8s.io - discovery.k8s.io
resources: resources:
- endpointslices - endpointslices
verbs: verbs:
- list - list
- watch - watch

View File

@ -22,9 +22,11 @@ spec:
labels: labels:
k8s-app: kube-dns{{ coredns_ordinal_suffix }} k8s-app: kube-dns{{ coredns_ordinal_suffix }}
annotations: annotations:
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
createdby: 'kubespray' createdby: 'kubespray'
spec: spec:
securityContext:
seccompProfile:
type: RuntimeDefault
nodeSelector: nodeSelector:
{{ coredns_deployment_nodeselector }} {{ coredns_deployment_nodeselector }}
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical

View File

@ -5,4 +5,5 @@ metadata:
name: coredns name: coredns
namespace: kube-system namespace: kube-system
labels: labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile