Skip to content

Commit e8d7815

Browse files
committed
🚧 configurations for the service account and inference service
1 parent ce1185e commit e8d7815

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: serving.kserve.io/v1beta1
2+
kind: InferenceService
3+
metadata:
4+
name: regex-detector
5+
annotations:
6+
openshift.io/display-name: regex-detector
7+
security.opendatahub.io/enable-auth: "true"
8+
serving.knative.openshift.io/enablePassthrough: "true"
9+
sidecar.istio.io/inject: "true"
10+
sidecar.istio.io/rewriteAppHTTPProbers: "true"
11+
labels:
12+
opendatahub.io/dashboard: "true"
13+
spec:
14+
predictor:
15+
maxReplicas: 1
16+
minReplicas: 1
17+
containers:
18+
- name: kserve-container
19+
image: quay.io/rh-ee-mmisiura/detector-regex:trial
20+
ports:
21+
- containerPort: 8000
22+
readinessProbe:
23+
httpGet:
24+
path: /docs
25+
port: 8000
26+
initialDelaySeconds: 5
27+
periodSeconds: 20
28+
resources:
29+
limits:
30+
cpu: "1"
31+
memory: 2Gi
32+
requests:
33+
cpu: "500m"
34+
memory: 1Gi
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: user-one
5+
6+
---
7+
kind: RoleBinding
8+
apiVersion: rbac.authorization.k8s.io/v1
9+
metadata:
10+
name: user-one-view
11+
subjects:
12+
- kind: ServiceAccount
13+
name: user-one
14+
roleRef:
15+
apiGroup: rbac.authorization.k8s.io
16+
kind: ClusterRole
17+
name: view

0 commit comments

Comments
 (0)