diff --git a/charts/haproxy/templates/daemonset.yaml b/charts/haproxy/templates/daemonset.yaml index a5facb3c..7b80bf2d 100644 --- a/charts/haproxy/templates/daemonset.yaml +++ b/charts/haproxy/templates/daemonset.yaml @@ -37,6 +37,7 @@ spec: annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} scheduler.alpha.kubernetes.io/critical-pod: '' +{{ dict "envAll" $envAll "podName" "haproxy-anchor" "containerNames" (list "anchor") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: {{ dict "envAll" $envAll "application" "haproxy_anchor" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} tolerations: diff --git a/charts/haproxy/values.yaml b/charts/haproxy/values.yaml index 1b72fca8..0c02a82f 100644 --- a/charts/haproxy/values.yaml +++ b/charts/haproxy/values.yaml @@ -77,6 +77,10 @@ endpoints: port: 6553 pod: + mandatory_access_control: + type: apparmor + haproxy-anchor: + anchor: runtime/default security_context: haproxy_anchor: pod: