From 9a709951a184e429364056fd2274499d02c76d8c Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 13 Jul 2020 11:17:52 +0200 Subject: [PATCH] Add securitycontext --- templates/2.1/traefik-dp.yml.j2 | 6 ++++++ templates/2.2/traefik-dp.yml.j2 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/templates/2.1/traefik-dp.yml.j2 b/templates/2.1/traefik-dp.yml.j2 index f7e3dbc..5aef66e 100644 --- a/templates/2.1/traefik-dp.yml.j2 +++ b/templates/2.1/traefik-dp.yml.j2 @@ -56,6 +56,12 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 2 + securityContext: + capabilities: + drop: + - ALL + add: + - NET_BIND_SERVICE resources: limits: cpu: {{ traefik_cpu_limit }} diff --git a/templates/2.2/traefik-dp.yml.j2 b/templates/2.2/traefik-dp.yml.j2 index 48b351d..6501a07 100644 --- a/templates/2.2/traefik-dp.yml.j2 +++ b/templates/2.2/traefik-dp.yml.j2 @@ -56,6 +56,12 @@ spec: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 2 + securityContext: + capabilities: + drop: + - ALL + add: + - NET_BIND_SERVICE resources: limits: cpu: {{ traefik_cpu_limit }}