-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathopenshift-scc.yaml
More file actions
46 lines (46 loc) · 998 Bytes
/
openshift-scc.yaml
File metadata and controls
46 lines (46 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Security Context Constraints for KServe InferenceServices on OpenShift
# This allows model containers to run with the required security permissions
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kserve-service-account
namespace: llm
---
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: kserve-scc
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegedContainer: false
allowPrivilegeEscalation: true
allowedCapabilities:
- NET_ADMIN
- NET_RAW
defaultAddCapabilities: null
fsGroup:
type: RunAsAny
priority: 10
readOnlyRootFilesystem: false
requiredDropCapabilities: null
runAsUser:
type: RunAsAny
seLinuxContext:
type: RunAsAny
supplementalGroups:
type: RunAsAny
users:
- system:serviceaccount:llm:kserve-service-account
- system:serviceaccount:llm:default
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret
- hostPath