mirror of https://github.com/easzlab/kubeasz.git
166 lines
2.5 KiB
YAML
166 lines
2.5 KiB
YAML
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: dashboard-read-user
|
||
|
namespace: kube-system
|
||
|
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: dashboard-read-binding
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: dashboard-read-clusterrole
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: dashboard-read-user
|
||
|
namespace: kube-system
|
||
|
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: dashboard-read-clusterrole
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- configmaps
|
||
|
- endpoints
|
||
|
- nodes
|
||
|
- persistentvolumes
|
||
|
- persistentvolumeclaims
|
||
|
- persistentvolumeclaims/status
|
||
|
- pods
|
||
|
- replicationcontrollers
|
||
|
- replicationcontrollers/scale
|
||
|
- serviceaccounts
|
||
|
- services
|
||
|
- services/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- bindings
|
||
|
- events
|
||
|
- limitranges
|
||
|
- namespaces/status
|
||
|
- pods/log
|
||
|
- pods/status
|
||
|
- replicationcontrollers/status
|
||
|
- resourcequotas
|
||
|
- resourcequotas/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- namespaces
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- apps
|
||
|
resources:
|
||
|
- controllerrevisions
|
||
|
- daemonsets
|
||
|
- daemonsets/status
|
||
|
- deployments
|
||
|
- deployments/scale
|
||
|
- deployments/status
|
||
|
- replicasets
|
||
|
- replicasets/scale
|
||
|
- replicasets/status
|
||
|
- statefulsets
|
||
|
- statefulsets/scale
|
||
|
- statefulsets/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- autoscaling
|
||
|
resources:
|
||
|
- horizontalpodautoscalers
|
||
|
- horizontalpodautoscalers/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- batch
|
||
|
resources:
|
||
|
- cronjobs
|
||
|
- cronjobs/status
|
||
|
- jobs
|
||
|
- jobs/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
resources:
|
||
|
- daemonsets
|
||
|
- daemonsets/status
|
||
|
- deployments
|
||
|
- deployments/scale
|
||
|
- deployments/status
|
||
|
- ingresses
|
||
|
- ingresses/status
|
||
|
- replicasets
|
||
|
- replicasets/scale
|
||
|
- replicasets/status
|
||
|
- replicationcontrollers/scale
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- policy
|
||
|
resources:
|
||
|
- poddisruptionbudgets
|
||
|
- poddisruptionbudgets/status
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- networking.k8s.io
|
||
|
resources:
|
||
|
- ingresses
|
||
|
- ingresses/status
|
||
|
- networkpolicies
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- storage.k8s.io
|
||
|
resources:
|
||
|
- storageclasses
|
||
|
- volumeattachments
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- rbac.authorization.k8s.io
|
||
|
resources:
|
||
|
- clusterrolebindings
|
||
|
- clusterroles
|
||
|
- roles
|
||
|
- rolebindings
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|