-
Notifications
You must be signed in to change notification settings - Fork 13
/
variables.tf
93 lines (78 loc) · 2.32 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
variable "asg_tags" {
type = list(string)
default = ["k8s.io/cluster-autoscaler/enabled"]
description = "AWS AutoScalingGroup tags."
}
variable "skip_nodes_with_local_storage" {
type = bool
default = false
description = "Skip nodes with local storage."
}
variable "expander" {
type = string
default = "least-waste"
description = "Expanders provide different strategies for selecting the node group to which new nodes will be added. Possible values and info here: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders"
}
variable "kubernetes_namespace" {
type = string
default = "kube-system"
description = "Kubernetes namespace to deploy cluster autoscaler."
}
variable "kubernetes_namespace_create" {
type = bool
default = false
description = "Do you want to create kubernetes namespace?"
}
variable "kubernetes_priority_class_name" {
description = "Priority class for autoscaler deployment"
type = string
default = null
}
variable "kubernetes_resources_name_prefix" {
type = string
default = ""
description = "Prefix for kubernetes resources name. For example `tf-module-`"
}
variable "kubernetes_resources_labels" {
type = map(string)
default = {}
description = "Additional labels for kubernetes resources."
}
variable "kubernetes_deployment_image_registry" {
type = string
default = "k8s.gcr.io/autoscaling/cluster-autoscaler"
}
variable "kubernetes_deployment_image_tag" {
type = string
default = "v1.18.3"
}
variable "kubernetes_deployment_node_selector" {
type = map(string)
default = {}
description = "Node selectors for kubernetes deployment"
}
variable "aws_create_iam_policy" {
type = bool
default = true
description = "Do you want to create AWS IAM policy?"
}
variable "aws_iam_policy_name" {
type = string
default = "KubernetesClusterAutoscaler"
description = "Name of AWS IAM policy"
}
variable "aws_iam_role_for_policy" {
type = string
default = null
description = "AWS IAM Role name for attaching AWS IAM policy."
}
variable "additional_autoscaler_options" {
type = list(string)
default = []
description = "Additional options to pass to the autoscaler command."
}
variable "kubernetes_deployment_annotations" {
type = map(string)
default = {}
description = "Annotations for pod template"
}