Skip to content

Instantly share code, notes, and snippets.

@SergK
Last active November 4, 2022 14:05
Show Gist options
  • Save SergK/4d1c9f4749d797936519a88bf79086e8 to your computer and use it in GitHub Desktop.
Save SergK/4d1c9f4749d797936519a88bf79086e8 to your computer and use it in GitHub Desktop.
SecurityContextConstraints for Minio, RabbitMQ, Postgresql running as a part of ReportPortal
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
annotations:
"helm.sh/hook": "pre-install"
name: report-portal-minio-rabbitmq-postgresql
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
allowedFlexVolumes: []
defaultAddCapabilities: []
fsGroup:
type: MustRunAs
ranges:
- min: 999
max: 65543
groups: []
priority: 1
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
runAsUser:
type: MustRunAsRange
uidRangeMin: 1
uidRangeMax: 65543
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
users:
- system:serviceaccount:report-portal:minio
- system:serviceaccount:report-portal:rabbitmq
- system:serviceaccount:report-portal:postgresql
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