aws-node-termination-handler
by Helm
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.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository. | public.ecr.aws/aws-ec2/aws-node-termination-handler |
image.tag | Image tag. | v{{ .Chart.AppVersion}} |
image.pullPolicy | Image pull policy. | IfNotPresent |
image.pullSecrets | Image pull secrets. | [] |
nameOverride | Override the name of the chart. | "" |
fullnameOverride | Override the fullname of the chart. | "" |
serviceAccount.create | If true, create a new service account. | true |
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 |
serviceAccount.annotations | Annotations to add to the service account. | {} |
rbac.create | If true, create the RBAC resources. | true |
rbac.pspEnabled | If true, create a pod security policy resource. Note: PodSecurityPolicys will not be created when Kubernetes version is 1.25 or later. | true |
customLabels | Labels to add to all resource metadata. | {} |
podLabels | Labels to add to the pod. | {} |
podAnnotations | Annotations to add to the pod. | {} |
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 |
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. | {} |
tolerations | Tolerations for pod assignment. In IMDS mode this has a higher priority than daemonsetTolerations (for backwards compatibility) but shouldn't be used. | [] |
extraEnv | Additional environment variables for the aws-node-termination-handler container. | [] |
probes | The 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaws-node-termination-handler is pinned at v0.21.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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