04fa9975 by Adam Heath

Specify k8s-bootstrap-admin as the serviceAccountName.

1 parent e0097004
1 --- 1 ---
2 apiVersion: v1 2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5 name: k8s-bootstrap-admin
6 namespace: kube-system
7 ---
8 apiVersion: rbac.authorization.k8s.io/v1
9 kind: ClusterRoleBinding
10 metadata:
11 name: k8s-bootstrap-admin
12 roleRef:
13 apiGroup: rbac.authorization.k8s.io
14 kind: ClusterRole
15 name: cluster-admin
16 subjects:
17 - kind: ServiceAccount
18 name: k8s-bootstrap-admin
19 namespace: kube-system
20 ---
21 apiVersion: v1
3 kind: ConfigMap 22 kind: ConfigMap
4 metadata: 23 metadata:
5 name: k8s-bootstrap-config 24 name: k8s-bootstrap-config
...@@ -66,6 +85,8 @@ spec: ...@@ -66,6 +85,8 @@ spec:
66 - effect: NoSchedule 85 - effect: NoSchedule
67 key: node-role.kubernetes.io/master 86 key: node-role.kubernetes.io/master
68 87
88 serviceAccountName: k8s-bootstrap-admin
89
69 volumes: 90 volumes:
70 - name: k8s-bootstrap-ssh-config 91 - name: k8s-bootstrap-ssh-config
71 configMap: 92 configMap:
......