mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-22 14:48:07 +00:00
Merge pull request #187 from martinmosegaard/doc-kubectl-host-pid
Document limitation of running with kubectl
This commit is contained in:
commit
f6cab11357
@ -46,6 +46,8 @@ Run the master check
|
||||
kubectl run --rm -i -t kube-bench-master --image=aquasec/kube-bench:latest --restart=Never --overrides="{ \"apiVersion\": \"v1\", \"spec\": { \"hostPID\": true, \"nodeSelector\": { \"node-role.kubernetes.io/master\": \"\" }, \"tolerations\": [ { \"key\": \"node-role.kubernetes.io/master\", \"operator\": \"Exists\", \"effect\": \"NoSchedule\" } ] } }" -- master --version 1.11
|
||||
```
|
||||
|
||||
Notice that this requires access to the host PID namespace. Thus it will not work if the recommendation to enable the admission plugin DenyEscalatingExec in the API Server has been implemented. You will see an error message about failing to attach to a container using host PID.
|
||||
|
||||
Run the node check
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user