apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: custom:system:kube-dns rules: - apiGroups: - "" resources: - endpoints verbs: - get - list - watch - apiGroups: - "" resources: - services verbs: - get - list - watch