From b1a00c7170ca7d82d08f2e97357cb10495549d1a Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 28 Mar 2021 16:13:39 +0200 Subject: [PATCH] fix: capabilities --- README.md | 2 +- network-tools.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04fb58e..1bcec2e 100644 --- a/README.md +++ b/README.md @@ -34,5 +34,5 @@ kubectl create -f https://git.cryptic.systems/volker.raschek/network-tools/raw/b Execute a shell inside the container by ```bash -kubectl exec -it network-tools -- sh +kubectl exec -it network-tools -- bash ``` diff --git a/network-tools.yml b/network-tools.yml index 2ed5c46..450656e 100644 --- a/network-tools.yml +++ b/network-tools.yml @@ -8,4 +8,10 @@ spec: image: volkerraschek/network-tools:latest command: [ "sleep", "3600" ] imagePullPolicy: Always + securityContext: + capabilities : + runAsUser: 1000 + add: + - NET_ADMIN + - SYS_TIME restartPolicy: Always \ No newline at end of file