You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove PodSecurityPolicy when k8s version >=1.25 (#758)
* add k8s 1.24 and 1.25 to test suite
* remove PodSecurityPolicy when k8s version >=1.25
* add k8s 1.24 and 1.25 to automated test workflow
* update docs
Copy file name to clipboardExpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,6 @@ The `enableSqsTerminationDraining` must be set to false for these configuration
94
94
95
95
The Queue Processor Mode does not allow for fine-grained configuration of which events are handled through helm configuration keys. Instead, you can modify your Amazon EventBridge rules to not send certain types of events to the SQS Queue so that NTH does not process those events. All events when operating in Queue Processor mode are Cordoned and Drained unless the `cordon-only` flag is set to true.
96
96
97
-
98
97
The `enableSqsTerminationDraining` flag turns on Queue Processor Mode. When Queue Processor Mode is enabled, IMDS mode will be disabled, even if you explicitly enabled any of the IMDS configuration keys. NTH cannot respond to queue events AND monitor IMDS paths. In this case, it is safe to disable IMDS for the NTH pod.
99
98
100
99
<detailsopened>
@@ -105,6 +104,9 @@ The `enableSqsTerminationDraining` flag turns on Queue Processor Mode. When Queu
105
104
106
105
The termination handler DaemonSet installs into your cluster a [ServiceAccount](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/), [ClusterRole](https://kubernetes.io/docs/reference/access-authn-authz/rbac/), [ClusterRoleBinding](https://kubernetes.io/docs/reference/access-authn-authz/rbac/), and a [DaemonSet](https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/). All four of these Kubernetes constructs are required for the termination handler to run properly.
107
106
107
+
#### Pod Security Admission
108
+
109
+
When using Kubernetes [Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/) it is recommended to assign the `[privileged](https://kubernetes.io/docs/concepts/security/pod-security-standards/#privileged)` level.
108
110
109
111
#### Kubectl Apply
110
112
@@ -376,6 +378,10 @@ IAM Policy for aws-node-termination-handler Deployment:
376
378
377
379
### Installation
378
380
381
+
#### Pod Security Admission
382
+
383
+
When using Kubernetes [Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/) it is recommended to assign the `[baseline](https://kubernetes.io/docs/concepts/security/pod-security-standards/#baseline)` level.
384
+
379
385
#### Helm
380
386
381
387
The easiest and most commonly used method to configure the termination handler is via [helm](https://helm.sh/). The chart for this project is hosted in the [eks-charts](https://github.com/aws/eks-charts) repository.
Copy file name to clipboardExpand all lines: config/helm/aws-node-termination-handler/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The configuration in this table applies to all AWS Node Termination Handler mode
56
56
|`serviceAccount.name`| Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the full name template. |`nil`|
57
57
|`serviceAccount.annotations`| Annotations to add to the service account. |`{}`|
58
58
|`rbac.create`| If `true`, create the RBAC resources. |`true`|
59
-
|`rbac.pspEnabled`| If `true`, create a pod security policy resource. |`true`|
59
+
|`rbac.pspEnabled`| If `true`, create a pod security policy resource. Note: `PodSecurityPolicy`s will not be created when Kubernetes version is 1.25 or later.|`true`|
60
60
|`customLabels`| Labels to add to all resource metadata. |`{}`|
61
61
|`podLabels`| Labels to add to the pod. |`{}`|
62
62
|`podAnnotations`| Annotations to add to the pod. |`{}`|
0 commit comments