Drop capabilities in Kubernetes DaemonSet example

This commit is contained in:
nogoegst 2018-03-22 15:44:05 +00:00 committed by Traefiker Bot
parent 1a411b658b
commit be0dbd62c1
2 changed files with 11 additions and 2 deletions

View file

@ -121,6 +121,7 @@ spec:
args:
- --api
- --kubernetes
- --logLevel=INFO
---
kind: Service
apiVersion: v1
@ -182,7 +183,11 @@ spec:
- name: admin
containerPort: 8080
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
args:
- --api
- --kubernetes

View file

@ -32,7 +32,11 @@ spec:
- name: admin
containerPort: 8080
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
args:
- --api
- --kubernetes