...
1apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: daemonsetdns
5---
6apiVersion: rbac.authorization.k8s.io/v1
7kind: ClusterRole
8metadata:
9 name: daemonsetdns
10rules:
11- resources:
12 - pods
13 apiGroups:
14 - ""
15 verbs:
16 - list
17---
18apiVersion: rbac.authorization.k8s.io/v1
19kind: ClusterRoleBinding
20metadata:
21 name: daemonsetdns
22roleRef:
23 name: daemonsetdns
24 kind: ClusterRole
25 apiGroup: rbac.authorization.k8s.io
26subjects:
27- name: daemonsetdns
28 kind: ServiceAccount
View as plain text