-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
118 lines (97 loc) · 2.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
#
# required
#
variable "aws_region" {
description = "AWS region to spawn resources in"
type = string
}
variable "vpc_id" {
description = "VPC to spawn resources in (must correspond with subnet_id, DNS must be enabled)"
type = string
}
variable "subnet_id" {
description = "Subnet to spawn resources in (must correspond with vpc_id)"
type = string
}
variable "kube_config_path" {
description = "Local path of kubernetes config file to create"
type = string
}
variable "private_key_path" {
description = "Local path to the SSH private key to create"
type = string
}
#
# k3s
#
variable "k3s_version" {
description = "Version of k3s to use when installing"
default = "v1.21.0+k3s1"
type = string
}
variable "k3s_extra_args" {
description = "Extra arguments to pass when installing k3s"
default = "--disable=traefik --disable=metrics-server"
type = string
}
variable "agent_count" {
description = "Number of k3s agents to spawn and join to the cluster"
default = 3
type = number
}
variable "k3s_disable_extras" {
description = "Whether or not to disable k3s extra components"
default = true
type = bool
}
variable "k3s_kubeconfig_mode" {
description = "Kubeconfig file permissions for the k3s server"
default = 644
type = number
}
#
# aws
#
variable "cluster_name" {
description = "Desired tag name to use for AWS resources"
default = "tf-k3sup"
type = string
}
variable "aws_instance_type" {
description = "Desired AWS instance type"
default = "t2.medium"
type = string
}
variable "aws_root_block_size" {
description = "Desired AWS instance root block size"
default = 20
type = number
}
#
# ami
#
variable "ami_owner_id" {
description = "Owner ID for use in the AMI filter (default: Canonical for US GovCloud)"
default = ["513442679011"]
type = list(string)
}
variable "ami_filter_name" {
description = "Name to filter when picking an AMI (default: Ubuntu Focal 20.04)"
default = ["ubuntu/images/*ubuntu-focal-20.04-amd64-server-*"]
type = list(string)
}
variable "ami_root_device_type" {
description = "AMI root device type to filter on"
default = ["ebs"]
type = list(string)
}
variable "ami_virtualization_type" {
description = "AMI virtualization type to filter on"
default = ["hvm"]
type = list(string)
}
variable "ami_instance_user" {
description = "Default AWS instance username"
default = "ubuntu"
type = string
}