From 6cc6346cde888c683fec4df910ebefdf6dccb310 Mon Sep 17 00:00:00 2001 From: "KHIYANI, RAHUL (rk0850)" Date: Fri, 14 Feb 2020 09:32:26 -0600 Subject: [PATCH] Add Docker default AppArmor profile to tiller chart Change-Id: Ia8f876a9395a6fe4f18613f8f5318db3079a7ec1 --- charts/tiller/templates/deployment-tiller.yaml | 1 + charts/tiller/values.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/charts/tiller/templates/deployment-tiller.yaml b/charts/tiller/templates/deployment-tiller.yaml index 90df6174..d5c9cb3d 100644 --- a/charts/tiller/templates/deployment-tiller.yaml +++ b/charts/tiller/templates/deployment-tiller.yaml @@ -76,6 +76,7 @@ spec: {{ tuple $envAll "tiller" "deploy" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} +{{ dict "envAll" $envAll "podName" "tiller" "containerNames" (list "tiller") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: {{ dict "envAll" $envAll "application" "tiller" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} serviceAccountName: {{ $serviceAccountName }} diff --git a/charts/tiller/values.yaml b/charts/tiller/values.yaml index cf7c3409..dd76a859 100644 --- a/charts/tiller/values.yaml +++ b/charts/tiller/values.yaml @@ -53,6 +53,10 @@ conf: probe_port: 44135 pod: + mandatory_access_control: + type: apparmor + tiller: + tiller: runtime/default security_context: tiller: pod: