5,321
edits
Line 435: | Line 435: | ||
[https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ security context] | [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ security context] | ||
If you want to restrict pods to run as a particular UID/GUI while still binding to any port, you can add the following: | If you want to restrict pods to run as a particular UID/GUI while still binding to any port, you can add the following: | ||
<syntaxhighlight> | <syntaxhighlight lang=yaml> | ||
spec: | spec: | ||
securityContext: | securityContext: |