Skip to content

Commit 1c0f4fa

Browse files
phuhung273Gacko
andauthored
Docs: Add Pod Security Admission. (#12174)
Co-authored-by: Marco Ebert <[email protected]>
1 parent 162e393 commit 1c0f4fa

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

charts/ingress-nginx/README.md

+18
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,24 @@ Detail of how and why are in [this issue](https://github.com/helm/charts/pull/13
229229

230230
As of version `1.26.0` of this chart, by simply not providing any clusterIP value, `invalid: spec.clusterIP: Invalid value: "": field is immutable` will no longer occur since `clusterIP: ""` will not be rendered.
231231

232+
### Pod Security Admission
233+
234+
You can use Pod Security Admission by applying labels to the `ingress-nginx` namespace as instructed by the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-namespace-labels).
235+
236+
Example:
237+
238+
```yaml
239+
apiVersion: v1
240+
kind: Namespace
241+
metadata:
242+
name: ingress-nginx
243+
labels:
244+
kubernetes.io/metadata.name: ingress-nginx
245+
name: ingress-nginx
246+
pod-security.kubernetes.io/enforce: restricted
247+
pod-security.kubernetes.io/enforce-version: v1.31
248+
```
249+
232250
## Values
233251

234252
| Key | Type | Default | Description |

charts/ingress-nginx/README.md.gotmpl

+18
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,22 @@ Detail of how and why are in [this issue](https://github.com/helm/charts/pull/13
226226

227227
As of version `1.26.0` of this chart, by simply not providing any clusterIP value, `invalid: spec.clusterIP: Invalid value: "": field is immutable` will no longer occur since `clusterIP: ""` will not be rendered.
228228

229+
### Pod Security Admission
230+
231+
You can use Pod Security Admission by applying labels to the `ingress-nginx` namespace as instructed by the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-namespace-labels).
232+
233+
Example:
234+
235+
```yaml
236+
apiVersion: v1
237+
kind: Namespace
238+
metadata:
239+
name: ingress-nginx
240+
labels:
241+
kubernetes.io/metadata.name: ingress-nginx
242+
name: ingress-nginx
243+
pod-security.kubernetes.io/enforce: restricted
244+
pod-security.kubernetes.io/enforce-version: v1.31
245+
```
246+
229247
{{ template "chart.valuesSection" . }}

0 commit comments

Comments
 (0)