diff --git a/config/helm/aws-node-termination-handler/README.md b/config/helm/aws-node-termination-handler/README.md index 7175cfa6..03f162ff 100644 --- a/config/helm/aws-node-termination-handler/README.md +++ b/config/helm/aws-node-termination-handler/README.md @@ -65,6 +65,7 @@ The configuration in this table applies to all AWS Node Termination Handler mode | `podSecurityContext` | Security context for the pod. | _See values.yaml_ | | `securityContext` | Security context for the _aws-node-termination-handler_ container. | _See values.yaml_ | | `terminationGracePeriodSeconds` | The termination grace period for the pod. | `nil` | +| `resizePolicy` | Container restart policy when CPU or memory resources are resized in-place. | `[]` | | `resources` | Resource requests and limits for the _aws-node-termination-handler_ container. | `{}` | | `nodeSelector` | Expressions to select a node by it's labels for pod assignment. In IMDS mode this has a higher priority than `daemonsetNodeSelector` (for backwards compatibility) but shouldn't be used. | `{}` | | `affinity` | Affinity settings for pod assignment. In IMDS mode this has a higher priority than `daemonsetAffinity` (for backwards compatibility) but shouldn't be used. | `{}` | diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml index ee5298be..579bcbbf 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml @@ -177,6 +177,10 @@ spec: livenessProbe: {{- toYaml .Values.probes | nindent 12 }} {{- end }} + {{- with .Values.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml index 8c296373..5d675572 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml @@ -177,6 +177,10 @@ spec: livenessProbe: {{- toYaml .Values.probes | nindent 12 }} {{- end }} + {{- with .Values.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/config/helm/aws-node-termination-handler/templates/deployment.yaml b/config/helm/aws-node-termination-handler/templates/deployment.yaml index 9dad5dec..7545dbfb 100644 --- a/config/helm/aws-node-termination-handler/templates/deployment.yaml +++ b/config/helm/aws-node-termination-handler/templates/deployment.yaml @@ -190,6 +190,10 @@ spec: {{- end }} livenessProbe: {{- toYaml .Values.probes | nindent 12 }} + {{- with .Values.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/config/helm/aws-node-termination-handler/values.yaml b/config/helm/aws-node-termination-handler/values.yaml index ada2864e..f2418928 100644 --- a/config/helm/aws-node-termination-handler/values.yaml +++ b/config/helm/aws-node-termination-handler/values.yaml @@ -44,6 +44,9 @@ securityContext: terminationGracePeriodSeconds: +# Container restart policy when CPU or memory resources are resized in-place +resizePolicy: [] + resources: {} nodeSelector: {}