Skip to content

Commit

Permalink
Enable Apparmor to etcd chart
Browse files Browse the repository at this point in the history
Added Apparmor Job to etcd

Change-Id: Ia1770ec44b0a3c186ee33a721d38b36120a3bc30
  • Loading branch information
PrateekDodda committed Sep 9, 2020
1 parent cb1bd3c commit 81c8571
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions etcd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
{{ tuple $envAll "etcd" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
{{ dict "envAll" $envAll "podName" "etcd" "containerNames" (list "init" "etcd") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
{{ dict "envAll" $envAll "application" "etcd" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
Expand Down
5 changes: 5 additions & 0 deletions etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ pod:
etcd:
runAsUser: 0
readOnlyRootFilesystem: false
mandatory_access_control:
type: apparmor
etcd:
init: runtime/default
etcd: runtime/default
affinity:
anti:
type:
Expand Down

0 comments on commit 81c8571

Please sign in to comment.