gke-node-termination-handler
by Fairwinds
Helm chartv1.2.7App 1.0Verified publisher
This helm chart provides an adapter for translating GCE node termination events to graceful pod terminations in Kubernetes.
About this chart
gke-node-termination-handler
gke-node-termination-handler is a tool for gracefully draining preemptible GCP nodes before Google automatically shuts them down.
Installation
We recommend installing gke-node-termination-handler in its own namespace.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| image.repository | string | "k8s.gcr.io/gke-node-termination-handler@sha256" | The image repository to pull from |
| image.tag | string | "aca12d17b222dfed755e28a44d92721e477915fb73211d0a0f8925a1fa847cca" | The image tag to use |
| image.pullPolicy | string | "Always" | The image pull policy. We recommend not changing this |
| nameOverride | string | "" | A template override for name |
| fullnameOverride | string | "" | A template override for fullname |
| daemonset.updateStrategy.type | string | "RollingUpdate" | The daemonset update strategy |
| resources | object | {"limits":{"cpu":"150m","memory":"30Mi"},"requests":{"cpu":"150m","memory":"30Mi"}} | A resource limit and requess block for the daemonset |
| args | list | ["-v=10","--logtostderr","--exclude-pods=$(POD_NAME):$(POD_NAMESPACE)","--taint=cloud.google.com/impending-node-termination::NoSchedule"] | Command arguments. Usually you don't need to override them. |
| extraArgs | list | [] | Extra arguments for command. For example, "--system-pod-grace-period=14s" to wait for 14s for regular pods to terminate. |
| env | object | {"SLACK_WEBHOOK_URL":""} | Extra environment variables. For example "SLACK_WEBHOOK_URL" |
Deploy gke-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 gke-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 chartgke-node-termination-handler is pinned at v1.2.7 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