aws-node-termination-handler

iplabs/aws-node-termination-handler/kubernetes

Terraform Module HCL KUBERNETES

Terraform module to install the AWS Node Termination Handler

Install
module "aws-node-termination-handler" {
source = "iplabs/aws-node-termination-handler/kubernetes"
version = "4.0.0"
}
plain text: /constructs/tfmod-iplabs-aws-node-termination-handler-kubernetes/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module: AWS Node Termination Handler This Terraform module can be used to install the AWS Node Termination Handler into a Kubernetes cluster. Examples Default deployment To deploy the aws-node-termination-handler into a Kubernetes cluster, the following snippet might be used. ``hcl module "aws_node_termination_handler" { source = "qvest-digital/aws-node-termination-handler/kubernetes" version = "4.0.0" } ``

Inputs (19)
NameTypeDescriptionDefault
webhook_templatestringIf specified, replaces the default webhook message template.""
taint_nodeboolIf true, nodes will be tainted when an interruption event occurs.false
enable_prometheus_serverboolWhether to enable a Prometheus endpoint that can be used to gather some metrics.false
k8s_node_selectormap(string)Node selector to make sure that the node termination handler only runs on spot i{ "lifecycle": "Ec2Spot" }
node_termination_handler_versionstringThe version to use. See https://github.com/aws/aws-node-termination-handler/rele"1.22.1"
delete_local_databoolIf true, do not drain pods that are using local node storage in emptyDir.true
pod_termination_grace_periodstringPeriod of time in seconds given to each POD to terminate gracefully. If negative"-1"
enable_spot_interruption_drainingboolIf true, drain nodes when the spot interruption termination notice is received.true
cordon_onlyboolIf true, nodes will be cordoned but not drained when an interruption event occurfalse
k8s_node_tolerationslist(object({ effect = sAdditional tolerations required to run on spot instances within the cluster.[ { "effect": "NoSchedule", "k
webhook_urlstringIf specified, posts event data to URL upon instance interruption action.""
webhook_proxystringIf specified, uses the HTTP(S) proxy to send webhooks.""
webhook_headersmap(string)If specified, replaces the default webhook headers.{ "Content-type": "application/json" }
enable_scheduled_event_drainingboolIf true, drain nodes before the maintenance window starts for an EC2 instance scfalse
metadata_triesnumberThe number of times to try requesting metadata. If you would like 2 retries, set3
k8s_pod_annotationsmap(string)Additional annotations to be added to the Pods.{}
ignore_daemon_setsboolIf true, ignore daemon sets and drain other pods when a spot interrupt is receivtrue
node_termination_grace_periodstringPeriod of time in seconds given to each NODE to terminate gracefully. Node drain"120"
json_loggingboolIf true, use JSON-formatted logs instead of human readable logs.false
Resources (4)
kubernetes_cluster_rolekubernetes_cluster_role_bindingkubernetes_daemonsetkubernetes_service_account
Details
FrameworkTerraform Module
LanguageHCL
Version4.0.0
Cloud KUBERNETES
Total downloads23.7k
Inputs19
Resources4
Namespaceiplabs
Updated