1 {{- if .Values.podSecurityPolicy.enabled }}
2 apiVersion: policy/v1beta1
3 kind: PodSecurityPolicy
5 name: {{ template "kong.serviceAccountName" . }}-psp
7 {{- include "kong.metaLabels" . | nindent 4 }}
24 allowPrivilegeEscalation: false
29 apiVersion: rbac.authorization.k8s.io/v1
32 name: {{ template "kong.serviceAccountName" . }}-psp
34 {{- include "kong.metaLabels" . | nindent 4 }}
43 - {{ template "kong.serviceAccountName" . }}-psp
45 apiVersion: rbac.authorization.k8s.io/v1
46 kind: ClusterRoleBinding
48 name: {{ template "kong.serviceAccountName" . }}-psp
49 namespace: {{ .Release.Namespace }}
51 {{- include "kong.metaLabels" . | nindent 4 }}
53 - kind: ServiceAccount
54 name: {{ template "kong.serviceAccountName" . }}
55 namespace: {{ .Release.Namespace }}
58 name: {{ template "kong.serviceAccountName" . }}-psp
59 apiGroup: rbac.authorization.k8s.io