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

KeyTypeDefaultDescription
image.repositorystring"k8s.gcr.io/gke-node-termination-handler@sha256"The image repository to pull from
image.tagstring"aca12d17b222dfed755e28a44d92721e477915fb73211d0a0f8925a1fa847cca"The image tag to use
image.pullPolicystring"Always"The image pull policy. We recommend not changing this
nameOverridestring""A template override for name
fullnameOverridestring""A template override for fullname
daemonset.updateStrategy.typestring"RollingUpdate"The daemonset update strategy
resourcesobject{"limits":{"cpu":"150m","memory":"30Mi"},"requests":{"cpu":"150m","memory":"30Mi"}}A resource limit and requess block for the daemonset
argslist["-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.
extraArgslist[]Extra arguments for command. For example, "--system-pod-grace-period=14s" to wait for 14s for regular pods to terminate.
envobject{"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgke-node-termination-handler is pinned at v1.2.7 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