Skip to content

Commit

Permalink
Merge pull request zealvora#13 from jasbir84-zz/patch-10
Browse files Browse the repository at this point in the history
Update hostpid.md
  • Loading branch information
zealvora authored Jul 4, 2022
2 parents 581ff23 + 699a0e2 commit 6d540cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion domain-3-minimize-microservice-vulnerability/hostpid.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
- min: 0
max: 65535
hostIPC: true
hostPID: true
hostPID: false
runAsUser:
rule: 'RunAsAny'
seLinux:
Expand All @@ -66,3 +66,6 @@ spec:
fsGroup:
rule: 'RunAsAny'
```
#### Reapply the restrictive policy to not allow hostpid:
```sh
kubectl apply -f restrictive-psp.yaml

0 comments on commit 6d540cb

Please sign in to comment.