Files
Néstor SalcedaandGitHub b5bd582e6a [stable/sysdig] Use app.kubernetes.io labels instead of custom ones (#22022)
* [stable/sysdig] Use app.kubernetes.io labels instead of custom ones

Signed-off-by: Néstor Salceda <nestor.salceda@sysdig.com>

* [stable/sysdig] Bump chart version

Signed-off-by: Néstor Salceda <nestor.salceda@sysdig.com>
2020-04-20 07:07:39 -07:00

43 lines
989 B
YAML

{{- if .Values.scc.create }}
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
annotations:
kubernetes.io/description: |
This provides the minimum requirements to the Sysdig agent to run in the Openshift.
name: {{ template "sysdig.fullname" . }}
labels:
{{ include "sysdig.labels" . | indent 4 }}
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: true
allowHostPID: true
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: true
allowedCapabilities: []
allowedUnsafeSysctls: []
defaultAddCapabilities: []
fsGroup:
type: RunAsAny
groups: []
priority: 0
readOnlyRootFilesystem: false
requiredDropCapabilities: []
runAsUser:
type: RunAsAny
seLinuxContext:
type: RunAsAny
seccompProfiles:
- '*'
supplementalGroups:
type: RunAsAny
users:
- system:serviceaccount:{{ .Release.Namespace }}:{{ template "sysdig.serviceAccountName" .}}
volumes:
- hostPath
- emptyDir
- secret
- configMap
{{- end -}}