-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
main.tf
40 lines (32 loc) · 1007 Bytes
/
main.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
variable "AWS_ACCESS_KEY" {
}
variable "AWS_SECRET_KEY" {
}
variable "AWS_REGION" {
type = string
default = "<change_me>"
description = "AWS Zone"
}
module "k3s_cluster" {
AWS_REGION = "<change_me>"
environment = "staging"
my_public_ip_cidr = "<change_me>"
vpc_id = "<change_me>"
vpc_subnets = ["<change_me>", "<change_me>", "<change_me>"]
vpc_subnet_cidr = "<change_me>"
cluster_name = "k3s-cluster"
create_extlb = true # or flase
expose_kubeapi = true # or flase
efs_persistent_storage = true # or flase
certmanager_email_address = true # or flase
source = "./k3s_cluster/"
}
output "elb_dns_name" {
value = module.k3s_cluster.elb_dns_name
}
output "k3s_server_public_ips" {
value = module.k3s_cluster.k3s_server_public_ips
}
output "k3s_workers_public_ips" {
value = module.k3s_cluster.k3s_workers_public_ips
}