apiVersion: v1 kind: ServiceAccount metadata: name: excoredns namespace: k8s-gateway --- # Source: coredns/templates/clusterrole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: excoredns rules: - resources: - services - namespaces apiGroups: - "" verbs: - list - watch - resources: - ingresses apiGroups: - extensions - networking.k8s.io verbs: - list - watch --- # Source: coredns/templates/clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: excoredns roleRef: name: excoredns kind: ClusterRole apiGroup: rbac.authorization.k8s.io subjects: - name: excoredns namespace: k8s-gateway kind: ServiceAccount