-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
51 lines (50 loc) · 1.14 KB
/
main.tf
File metadata and controls
51 lines (50 loc) · 1.14 KB
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
locals {
pools_cidrs = ["10.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", var.service_cidr]
provider = "eks"
liqo_yaml_values = {
liqo = {
enabled = true
apiServer = {
address = var.api_server_address
}
discovery = {
config = {
clusterID = var.cluster_name
clusterLabels = {
"liqo.io/provider" = local.provider
"topology.kubernetes.io/region" = var.cluster_region
}
}
}
ipam = {
podCIDR = var.pod_cidr
serviceCIDR = var.service_cidr
pools = local.pools_cidrs
}
telemetry = {
enabled = false
}
virtualKubelet = {
extra = {
args = ["--certificate-type=aws"]
}
}
networking = {
fabric = {
config = {
fullMasquerade = true
}
}
gatewayTemplates = {
server = {
service = {
annotations = {
"service.beta.kubernetes.io/aws-load-balancer-type" = "nlb"
}
}
}
}
}
}
}
}