forked from DrFaust92/terraform-kubernetes-ebs-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
147 lines (123 loc) · 3.55 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
variable "ebs_csi_controller_role_name" {
description = "The name of the EBS CSI driver IAM role"
default = "ebs-csi-driver-controller"
type = string
}
variable "ebs_csi_controller_role_policy_name_prefix" {
description = "The prefix of the EBS CSI driver IAM policy"
default = "ebs-csi-driver-policy"
type = string
}
variable "ebs_csi_driver_version" {
description = "The EBS CSI driver controller's image version"
default = ""
type = string
}
variable "ebs_csi_controller_image" {
description = "The EBS CSI driver controller's image"
default = ""
type = string
}
variable "tags" {
description = "A map of tags to add to all resources"
default = {}
type = map(string)
}
variable "namespace" {
description = "The K8s namespace for all EBS CSI driver resources"
type = string
default = "kube-system"
}
variable "oidc_url" {
description = "EKS OIDC provider URL, to allow pod to assume role using IRSA"
type = string
}
variable "node_tolerations" {
description = "CSI driver node tolerations"
type = list(map(string))
default = []
}
variable "csi_controller_tolerations" {
description = "CSI driver controller tolerations"
type = list(map(string))
default = []
}
variable "csi_controller_replica_count" {
description = "Number of EBS CSI driver controller pods"
type = number
default = 2
}
variable "enable_volume_resizing" {
description = "Whether to enable volume resizing"
type = bool
default = false
}
variable "enable_volume_snapshot" {
description = "Whether to enable volume snapshotting"
type = bool
default = false
}
variable "extra_create_metadata" {
description = "If set, add pv/pvc metadata to plugin create requests as parameters."
type = bool
default = false
}
variable "eks_cluster_id" {
description = "ID of the Kubernetes cluster used for tagging provisioned EBS volumes"
type = string
default = ""
}
variable "extra_node_selectors" {
description = "A map of extra node selectors for all components"
default = {}
type = map(string)
}
variable "controller_extra_node_selectors" {
description = "A map of extra node selectors for controller pods"
default = {}
type = map(string)
}
variable "node_extra_node_selectors" {
description = "A map of extra node selectors for node pods"
default = {}
type = map(string)
}
variable "labels" {
description = "A map of extra labels for all resources"
default = {}
type = map(string)
}
variable "log_level" {
description = "The log level for the CSI Driver controller"
default = 5
type = number
}
variable "volume_attach_limit" {
description = "Configure maximum volume attachments per node. -1 means use default configuration"
default = -1
type = number
}
variable "additional_iam_policies_arns" {
description = "The EBS CSI driver controller's additional policies to allow more actions (kms, etc)"
default = []
type = list(string)
}
variable "enable_default_fstype" {
description = "Wheter to enable default Filesystem type"
default = false
type = bool
}
variable "default_fstype" {
description = "The default Filesystem type"
default = "ext4"
type = string
}
variable "csi_provisioner_tag_version" {
description = "The csi provisioner tag version"
default = "v3.2.1"
type = string
}
variable "aws_partition" {
default = "aws"
type = string
}