2017-08-25 15:07:50 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: flannel
|
2020-04-15 14:48:02 +08:00
|
|
|
namespace: kube-system
|
|
|
|
---
|
2017-08-25 15:07:50 +08:00
|
|
|
kind: ClusterRole
|
2020-04-15 04:14:04 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-08-25 15:07:50 +08:00
|
|
|
metadata:
|
|
|
|
name: flannel
|
|
|
|
rules:
|
2023-04-26 04:08:16 +08:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes/status
|
|
|
|
verbs:
|
|
|
|
- patch
|
|
|
|
- apiGroups:
|
|
|
|
- "networking.k8s.io"
|
|
|
|
resources:
|
|
|
|
- clustercidrs
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
2017-08-25 15:07:50 +08:00
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2020-04-15 04:14:04 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-08-25 15:07:50 +08:00
|
|
|
metadata:
|
|
|
|
name: flannel
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: flannel
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: flannel
|
2020-04-15 14:48:02 +08:00
|
|
|
namespace: kube-system
|