31 lines
573 B
YAML
31 lines
573 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: kubeslice-api-gw
|
|
rules:
|
|
- verbs:
|
|
- get
|
|
- list
|
|
apiGroups:
|
|
- controller.kubeslice.io
|
|
- worker.kubeslice.io
|
|
resources:
|
|
- projects
|
|
- clusters
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: kubeslice-api-gw
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: kubeslice-api-gw
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: kubeslice-api-gw
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: kubeslice-api-gw |