kubeasz/roles/deploy/files/read-group-rbac.yaml

159 lines
2.4 KiB
YAML
Raw Normal View History

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: read-clusterrole-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: read-clusterrole
subjects:
- kind: Group
name: "group:read"
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: read-clusterrole
rules:
- apiGroups:
- ""
resources:
- configmaps
- endpoints
2019-10-27 21:40:43 +08:00
- nodes
- persistentvolumes
- persistentvolumeclaims
2019-10-27 21:40:43 +08:00
- persistentvolumeclaims/status
- pods
- replicationcontrollers
- replicationcontrollers/scale
- serviceaccounts
- services
2019-10-27 21:40:43 +08:00
- 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:
2019-10-27 21:40:43 +08:00
- controllerrevisions
- daemonsets
2019-10-27 21:40:43 +08:00
- daemonsets/status
- deployments
- deployments/scale
2019-10-27 21:40:43 +08:00
- deployments/status
- replicasets
- replicasets/scale
2019-10-27 21:40:43 +08:00
- replicasets/status
- statefulsets
2019-10-27 21:40:43 +08:00
- statefulsets/scale
- statefulsets/status
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
2019-10-27 21:40:43 +08:00
- horizontalpodautoscalers/status
verbs:
- get
- list
- watch
- apiGroups:
- batch
resources:
- cronjobs
2019-10-27 21:40:43 +08:00
- cronjobs/status
- jobs
2019-10-27 21:40:43 +08:00
- jobs/status
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- daemonsets
2019-10-27 21:40:43 +08:00
- daemonsets/status
- deployments
- deployments/scale
2019-10-27 21:40:43 +08:00
- deployments/status
- ingresses
2019-10-27 21:40:43 +08:00
- ingresses/status
- replicasets
- replicasets/scale
2019-10-27 21:40:43 +08:00
- replicasets/status
- replicationcontrollers/scale
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
2019-10-27 21:40:43 +08:00
- poddisruptionbudgets/status
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
2019-10-27 21:40:43 +08:00
- 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