aws-node-termination-handler

by Helm

Helm chartv0.21.0App 1.19.0

A Helm chart for the AWS Node Termination Handler.

About this chart

AWS Node Termination Handler

AWS Node Termination Handler Helm chart for Kubernetes. For more information on this project see the project repo at github.com/aws/aws-node-termination-handler.

Prerequisites

  • Kubernetes >= v1.16

Installing the Chart

Before you can install the chart you will need to add the aws repo to Helm.

helm repo add eks https://aws.github.io/eks-charts/

After you've installed the repo you can install the chart, the following command will install the chart with the release name aws-node-termination-handler and the default configuration to the kube-system namespace.

helm upgrade --install --namespace kube-system aws-node-termination-handler eks/aws-node-termination-handler

To install the chart on an EKS cluster where the AWS Node Termination Handler is already installed, you can run the following command.

helm upgrade --install --namespace kube-system aws-node-termination-handler eks/aws-node-termination-handler --recreate-pods --force

If you receive an error similar to the one below simply rerun the above command.

Error: release aws-node-termination-handler failed: "aws-node-termination-handler" already exists

To uninstall the aws-node-termination-handler chart installation from the kube-system namespace run the following command.

helm delete --namespace kube-system aws-node-termination-handler

Configuration

The following tables lists the configurable parameters of the chart and their default values. These values are split up into the common configuration shared by all AWS Node Termination Handler modes, queue configuration used when AWS Node Termination Handler is in in queue-processor mode, and IMDS configuration used when AWS Node Termination Handler is in IMDS mode; for more information about the different modes see the project README.

Common Configuration

The configuration in this table applies to all AWS Node Termination Handler modes.

ParameterDescriptionDefault
image.repositoryImage repository.public.ecr.aws/aws-ec2/aws-node-termination-handler
image.tagImage tag.v{{ .Chart.AppVersion}}
image.pullPolicyImage pull policy.IfNotPresent
image.pullSecretsImage pull secrets.[]
nameOverrideOverride the name of the chart.""
fullnameOverrideOverride the fullname of the chart.""
serviceAccount.createIf true, create a new service account.true
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the full name template.nil
serviceAccount.annotationsAnnotations to add to the service account.{}
rbac.createIf true, create the RBAC resources.true
rbac.pspEnabledIf true, create a pod security policy resource. Note: PodSecurityPolicys will not be created when Kubernetes version is 1.25 or later.true
customLabelsLabels to add to all resource metadata.{}
podLabelsLabels to add to the pod.{}
podAnnotationsAnnotations to add to the pod.{}
podSecurityContextSecurity context for the pod.See values.yaml
securityContextSecurity context for the aws-node-termination-handler container.See values.yaml
terminationGracePeriodSecondsThe termination grace period for the pod.nil
resourcesResource requests and limits for the aws-node-termination-handler container.{}
nodeSelectorExpressions 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.{}
affinityAffinity settings for pod assignment. In IMDS mode this has a higher priority than daemonsetAffinity (for backwards compatibility) but shouldn't be used.{}
tolerationsTolerations for pod assignment. In IMDS mode this has a higher priority than daemonsetTolerations (for backwards compatibility) but shouldn't be used.[]
extraEnvAdditional environment variables for the aws-node-termination-handler container.[]
probesThe Kubernetes liveness probe configuration.

Deploy aws-node-termination-handler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-node-termination-handler on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartaws-node-termination-handler is pinned at v0.21.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply