Add Docker default AppArmor profile to promenade

Change-Id: Ic3983f963ae5003445642f842a9c550cf49d4d34
This commit is contained in:
NarlaSandeepNarlaSaibaba 2020-01-20 03:06:01 -06:00
parent 83d8616cc3
commit fc331e5124
3 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,7 @@
name: airship-promenade-single-node
nodes:
- name: primary
label: ubuntu-xenial
label: ubuntu-bionic
- nodeset:
name: airship-promenade-single-node-bionic
nodes:
@ -130,7 +130,6 @@
- ^etc/.*$
- ^tests/.*$
- ^tools/.*$
- job:
name: airship-docker-build-post
run: tools/zuul/playbooks/docker-image-build.yaml

View File

@ -41,6 +41,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "promenade-api" "containerNames" (list "promenade-api") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "promenade" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
affinity:

View File

@ -182,6 +182,10 @@ pod:
promenade_api:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
mandatory_access_control:
type: apparmor
promenade-api:
promenade-api: runtime/default
affinity:
anti:
type: