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"
}
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)
| Name | Type | Description | Default |
|---|---|---|---|
| webhook_template | string | If specified, replaces the default webhook message template. | "" |
| taint_node | bool | If true, nodes will be tainted when an interruption event occurs. | false |
| enable_prometheus_server | bool | Whether to enable a Prometheus endpoint that can be used to gather some metrics. | false |
| k8s_node_selector | map(string) | Node selector to make sure that the node termination handler only runs on spot i | {
"lifecycle": "Ec2Spot"
} |
| node_termination_handler_version | string | The version to use. See https://github.com/aws/aws-node-termination-handler/rele | "1.22.1" |
| delete_local_data | bool | If true, do not drain pods that are using local node storage in emptyDir. | true |
| pod_termination_grace_period | string | Period of time in seconds given to each POD to terminate gracefully. If negative | "-1" |
| enable_spot_interruption_draining | bool | If true, drain nodes when the spot interruption termination notice is received. | true |
| cordon_only | bool | If true, nodes will be cordoned but not drained when an interruption event occur | false |
| k8s_node_tolerations | list(object({ effect = s | Additional tolerations required to run on spot instances within the cluster. | [
{
"effect": "NoSchedule",
"k |
| webhook_url | string | If specified, posts event data to URL upon instance interruption action. | "" |
| webhook_proxy | string | If specified, uses the HTTP(S) proxy to send webhooks. | "" |
| webhook_headers | map(string) | If specified, replaces the default webhook headers. | {
"Content-type": "application/json"
} |
| enable_scheduled_event_draining | bool | If true, drain nodes before the maintenance window starts for an EC2 instance sc | false |
| metadata_tries | number | The number of times to try requesting metadata. If you would like 2 retries, set | 3 |
| k8s_pod_annotations | map(string) | Additional annotations to be added to the Pods. | {} |
| ignore_daemon_sets | bool | If true, ignore daemon sets and drain other pods when a spot interrupt is receiv | true |
| node_termination_grace_period | string | Period of time in seconds given to each NODE to terminate gracefully. Node drain | "120" |
| json_logging | bool | If 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