25 lines
571 B
YAML
25 lines
571 B
YAML
{{- if .Values.networkCosts }}
|
|
{{- if .Values.networkCosts.enabled }}
|
|
{{- if .Values.networkCosts.podSecurityPolicy }}
|
|
{{- if .Values.networkCosts.podSecurityPolicy.enabled }}
|
|
apiVersion: {{ include "cost-analyzer.podSecurityPolicy.apiVersion" . }}
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: kubecost-network-costs
|
|
spec:
|
|
privileged: true
|
|
seLinux:
|
|
rule: RunAsAny
|
|
supplementalGroups:
|
|
rule: RunAsAny
|
|
runAsUser:
|
|
rule: RunAsAny
|
|
fsGroup:
|
|
rule: RunAsAny
|
|
volumes:
|
|
- '*'
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|