Skip to content

Instantly share code, notes, and snippets.

@mangelajo
Created June 14, 2022 12:58
Show Gist options
  • Save mangelajo/5e704a5453863eac5b391b6cd42ab080 to your computer and use it in GitHub Desktop.
Save mangelajo/5e704a5453863eac5b391b6cd42ab080 to your computer and use it in GitHub Desktop.
kind: SecurityContextConstraints
apiVersion: security.openshift.io/v1
metadata:
annotations:
kubernetes.io/description: Restrict plugins UID range.
name: restricted-plugins
fsGroup:
type: MustRunAs
groups:
- system:authenticated
users:
- system:serviceaccount:app-plugin1:default
priority: 10
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
runAsUser:
type: MustRunAs
UID: 2000
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
defaultAddCapabilities: null
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment