fix: capabilities

This commit is contained in:
Markus Pesch 2021-03-28 16:13:39 +02:00
parent 93f314f984
commit b1a00c7170
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 7 additions and 1 deletions

View File

@ -34,5 +34,5 @@ kubectl create -f https://git.cryptic.systems/volker.raschek/network-tools/raw/b
Execute a shell inside the container by Execute a shell inside the container by
```bash ```bash
kubectl exec -it network-tools -- sh kubectl exec -it network-tools -- bash
``` ```

View File

@ -8,4 +8,10 @@ spec:
image: volkerraschek/network-tools:latest image: volkerraschek/network-tools:latest
command: [ "sleep", "3600" ] command: [ "sleep", "3600" ]
imagePullPolicy: Always imagePullPolicy: Always
securityContext:
capabilities :
runAsUser: 1000
add:
- NET_ADMIN
- SYS_TIME
restartPolicy: Always restartPolicy: Always