30 lines
841 B
YAML
30 lines
841 B
YAML
{{- if and (.Capabilities.APIVersions.Has "security.openshift.io/v1/SecurityContextConstraints") (.Values.global.platforms.openshift.scc.networkCosts) (.Values.networkCosts.enabled) }}
|
|
apiVersion: security.openshift.io/v1
|
|
kind: SecurityContextConstraints
|
|
metadata:
|
|
name: {{ template "cost-analyzer.networkCostsName" . }}
|
|
priority: 10
|
|
allowPrivilegedContainer: true
|
|
allowHostDirVolumePlugin: true
|
|
allowHostNetwork: true
|
|
allowHostPorts: true
|
|
allowHostPID: false
|
|
allowHostIPC: false
|
|
readOnlyRootFilesystem: false
|
|
runAsUser:
|
|
type: RunAsAny
|
|
fsGroup:
|
|
type: RunAsAny
|
|
seLinuxContext:
|
|
type: RunAsAny
|
|
supplementalGroups:
|
|
type: RunAsAny
|
|
seccompProfiles:
|
|
- runtime/default
|
|
volumes:
|
|
- hostPath
|
|
- projected
|
|
- configMap
|
|
users:
|
|
- system:serviceaccount:{{ .Release.Namespace }}:{{ template "cost-analyzer.serviceAccountName" . }}
|
|
{{- end }} |