-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
165 lines (137 loc) · 4.08 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
variable "cluster_servers" {
default = 1
}
variable "cluster_server1_floating_ip" {
default = true
}
variable "cluster_servers_floating_ip" {
default = false
}
variable "cluster_server_taint" {
default = false
}
variable "cluster_k3s_server_args" {
default = []
}
variable "cluster_init" {
default = true
}
variable "cluster_agent_node_pools" {
default = {}
description = "k3s agent node pools"
type = map(object({
size = number
availability_zone = optional(string)
network_id = optional(string)
subnet_id = optional(string)
image_name = optional(string)
image_id = optional(string)
image_scsi_bus = optional(bool)
flavor_name = optional(string)
ephemeral_data_volume = optional(bool)
data_volume_type = optional(string)
data_volume_size = optional(number)
server_group_policy = optional(string)
floating_ip = optional(bool)
k3s_args = optional(list(string))
k3s_version = optional(string)
k3s_channel = optional(string)
k3s_install_url = optional(string)
instance_properties = optional(map(string))
allowed_address_cidrs = optional(list(string))
}))
}
variable "k3s_master_load_balancer" {
description = "create Octavia load balancer for k3s master nodes"
default = false
}
variable "openstack_auth_url" {
description = "Keystone auth url used for CCM and Cinder CSI"
default = null
}
variable "openstack_region" {
description = "Keystone region used for CCM and Cinder CSI"
default = null
}
variable "openstack_application_credential_id" {
description = "Keystone app credential id used for CCM and Cinder CSI"
default = null
}
variable "openstack_application_credential_secret" {
description = "Keystone app credential secret used for CCM and Cinder CSI"
default = null
}
variable "kubernetes_version" {
description = "Kubernetes major and minor version for CCM and CSI compatibility matrix (supported versions: v1.20-v1.28)"
default = "v1.26"
}
variable "cloud_controller_manager" {
description = "deploy OpenStack CCM"
default = false
}
variable "cloud_controller_manager_version" {
description = "CCM Helm chart version"
default = null
}
variable "cloud_controller_manager_router_id" {
description = "OpenStack router ID used by CCM"
default = null
}
variable "cloud_controller_manager_cluster_cidr" {
description = "Cluster CIDR configured in CCM"
default = null
}
variable "cloud_controller_manager_lb_monitor" {
description = "add monitors to octavia load balancers created by CCM"
default = true
}
variable "cloud_controller_manager_ingress_hostname" {
description = "set hostname instead of load balancer IP (reqired when ingress LB uses proxy protocol)"
default = false
}
variable "cinder_csi" {
description = "deploy OpenStack Cinder CSI driver"
default = false
}
variable "cinder_csi_version" {
description = "Cinder CSI Helm chart version"
default = null
}
variable "cinder_csi_values" {
description = "additional Helm values for Cinder CSI chart"
default = <<-EOT
storageClass:
enabled: true
delete:
isDefault: true
EOT
}
variable "cilium_cni" {
description = "deploy Cilium CNI instead of k3s' default CNI driver"
default = false
}
variable "cilium_cni_repository" {
default = "https://helm.cilium.io/"
}
variable "cilium_cni_chart" {
default = "cilium"
}
variable "cilium_cni_version" {
description = "Cilium CNI Helm chart version"
default = "1.14.2"
}
variable "cilium_cni_values" {
description = "additional Helm values for Cilium CNI chart"
default = <<-EOT
ipam:
mode: kubernetes
EOT
}
variable "system_upgrade_controller" {
description = "deploy system-upgrade-controller for unattended k3s and OpenStack instance upgrades"
default = false
}
variable "system_upgrade_controller_version" {
description = "system-upgrade-controller Helm chart version"
default = "0.3.0"
}