-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
127 lines (107 loc) · 3.24 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
######################
# Azure Infrastructure
######################
variable "az_resource_group" {
description = "The name which should be used for this resource group."
type = string
}
variable "az_location" {
description = "The Azure region where the resource group should exist."
type = string
}
variable "az_tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "az_k3s_mysql_server_name" {
description = "An Azure globally unique name of your K3S MySQL database."
type = string
}
variable "az_k3s_mysql_admin_username" {
description = "Your K3S MySQL database admin username."
type = string
}
variable "az_k3s_mysql_admin_password" {
description = "Your K3S MySQL database admin password."
type = string
}
variable "az_allow_public_ip" {
description = "Your public IP address for Azure firewall access."
type = string
}
###################
# K3S Configuration
###################
variable "k3s_server_groups" {
description = "A map of group specifications for K3S servers."
type = map(object(
{
k3s_server_names = list(string)
k3s_server_vm_size = string
k3s_server_admin_user = string
k3s_server_disk_size_gb = number
k3s_server_extra_tags = map(string)
k3s_server_node_label = string
k3s_server_node_taint = string
}
))
}
variable "k3s_agent_groups" {
description = "A map of group specifications for K3S agents."
type = map(object(
{
k3s_agent_names = list(string)
k3s_agent_vm_size = string
k3s_agent_admin_user = string
k3s_agent_disk_size_gb = number
k3s_agent_extra_tags = map(string)
k3s_agent_node_label = string
k3s_agent_node_taint = string
}
))
default = {}
}
variable "k3s_version" {
description = "The K3s version."
type = string
}
variable "k3s_token" {
description = "The K3s token, a shared secret used to join a server or agent to a cluster."
type = string
}
variable "k3s_kubeconfig_output" {
description = "The local file to store K3s kubeconfig."
type = string
default = "/tmp/kubeconfig.yaml"
}
variable "k3s_cluster_domain" {
description = "The K3s Cluster Domain (default: 'cluster.local')."
type = string
default = ""
}
variable "k3s_disable_component" {
description = "Do not deploy packaged components and delete any deployed components (valid items: coredns, servicelb, traefik, local-storage, metrics-server)."
type = string
default = ""
}
variable "k3s_flannel_backend" {
description = "One of 'none', 'vxlan', 'ipsec', 'host-gw', or 'wireguard' (default: 'vxlan')"
type = string
default = ""
}
variable "k3s_cluster_cidr" {
description = "Network CIDR to use for pod IPs (default: '10.42.0.0/16')."
type = string
default = ""
}
variable "k3s_service_cidr" {
description = "Network CIDR to use for services IPs (default: '10.43.0.0/16')."
type = string
default = ""
}
variable "k3s_cluster_dns" {
description = "Cluster IP for coredns service. Should be in your service-cidr range (default: '10.43.0.10')."
type = string
default = ""
}