To install the IMDS Processor mode using Helm, first authenticate to the ECR Public registry, then run the helm upgrade --install command.
1. Authenticate to ECR Public
aws ecr-public get-login-password \
--region us-east-1 | helm registry login \
--username AWS \
--password-stdin public.ecr.aws
2. Install with Configuration
Replace $CHART_VERSION with your desired version.
Zero Config (Default):
helm upgrade --install aws-node-termination-handler \
--namespace kube-system \
oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION
Enabling Specific IMDS Paths:
Use enableSpotInterruptionDraining, enableRebalanceMonitoring, and enableScheduledEventDraining to control monitoring.
helm upgrade --install aws-node-termination-handler \
--namespace kube-system \
--set enableSpotInterruptionDraining="true" \
--set enableRebalanceMonitoring="true" \
--set enableScheduledEventDraining="false" \
oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION
Running on Specific Nodes (Node Selector):
helm upgrade --install aws-node-termination-handler \
--namespace kube-system \
--set nodeSelector.lifecycle=spot \
oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION
Webhook Configuration:
Pass a URL directly via --set webhookURL or via a Kubernetes Secret using --set webhookURLSecretName.
helm upgrade --install aws-node-termination-handler \
--namespace kube-system \
--set enableSpotInterruptionDraining="true" \
--set enableRebalanceMonitoring="true" \
--set enableScheduledEventDraining="false" \
oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler --version $CHART_VERSION