mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 15:38:00 +08:00
* fix: missing api port for network policy * fix: liveliness and readiness probes port * chore: bump up chart version to 8.1.10 * fix: typo * fix: typo * feat: added psp and rbac * fix: added chown capability for init chmod containers * fix: indentations
41 lines
952 B
YAML
41 lines
952 B
YAML
{{- if .Values.psp.create }}
|
|
apiVersion: {{ include "podsecuritypolicy.apiVersion" . }}
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
labels:
|
|
{{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
privileged: false
|
|
allowedCapabilities:
|
|
- CHOWN
|
|
volumes:
|
|
- 'configMap'
|
|
- 'secret'
|
|
- 'persistentVolumeClaim'
|
|
- 'emptyDir'
|
|
- 'projected'
|
|
hostNetwork: false
|
|
hostIPC: false
|
|
hostPID: false
|
|
runAsUser:
|
|
rule: 'RunAsAny'
|
|
seLinux:
|
|
rule: 'RunAsAny'
|
|
supplementalGroups:
|
|
rule: 'MustRunAs'
|
|
ranges:
|
|
- min: 1
|
|
max: 65535
|
|
fsGroup:
|
|
rule: 'MustRunAs'
|
|
ranges:
|
|
- min: 1
|
|
max: 65535
|
|
readOnlyRootFilesystem: false
|
|
{{- end }}
|