Skip to content

Commit e95cfea

Browse files
committed
Adding back in rbac
1 parent a2be5a4 commit e95cfea

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

demo-models/rbac/all-tiers.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: Role
4+
metadata:
5+
name: model-user
6+
rules:
7+
- apiGroups: ["serving.kserve.io"]
8+
resources: ["llminferenceservices"]
9+
verbs: ["post"]
10+
---
11+
apiVersion: rbac.authorization.k8s.io/v1
12+
kind: RoleBinding
13+
metadata:
14+
name: model-user-tier-binding
15+
subjects:
16+
- kind: Group
17+
name: system:serviceaccounts:openshift-ai-inference-tier-free
18+
apiGroup: rbac.authorization.k8s.io
19+
- kind: Group
20+
name: system:serviceaccounts:openshift-ai-inference-tier-premium
21+
apiGroup: rbac.authorization.k8s.io
22+
- kind: Group
23+
name: system:serviceaccounts:openshift-ai-inference-tier-enterprise
24+
apiGroup: rbac.authorization.k8s.io
25+
roleRef:
26+
kind: Role
27+
name: model-user
28+
apiGroup: rbac.authorization.k8s.io
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
metadata:
5+
name: maas-tiers-rbac
6+
7+
namespace: llm
8+
9+
resources:
10+
- all-tiers.yaml

0 commit comments

Comments
 (0)