forked from garutilorenzo/k3s-oci-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
172 lines (138 loc) · 3.08 KB
/
vars.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
166
167
168
169
170
171
172
variable "region" {
type = string
}
variable "availability_domain" {
type = string
}
variable "compartment_ocid" {
type = string
}
variable "environment" {
type = string
}
variable "k3s_token" {
type = string
}
variable "cluster_name" {
type = string
}
variable "fault_domains" {
type = list(any)
default = ["FAULT-DOMAIN-1", "FAULT-DOMAIN-2", "FAULT-DOMAIN-3"]
}
variable "PATH_TO_PUBLIC_KEY" {
type = string
default = "~/.ssh/id_rsa.pub"
description = "Path to your public key"
}
variable "PATH_TO_PRIVATE_KEY" {
type = string
default = "~/.ssh/id_rsa"
description = "Path to your private key"
}
variable "os_image_id" {
type = string
default = "ocid1.image.oc1.eu-zurich-1.aaaaaaaag2uyozo7266bmg26j5ixvi42jhaujso2pddpsigtib6vfnqy5f6q" # Canonical-Ubuntu-20.04-aarch64-2022.01.18-0
}
variable "compute_shape" {
type = string
default = "VM.Standard.A1.Flex"
}
variable "public_lb_shape" {
type = string
default = "flexible"
}
variable "oci_identity_dynamic_group_name" {
type = string
default = "Compute_Dynamic_Group"
description = "Dynamic group which contains all instance in this compartment"
}
variable "oci_identity_policy_name" {
type = string
default = "Compute_To_Oci_Api_Policy"
description = "Policy to allow dynamic group, to read OCI api without auth"
}
variable "oci_core_vcn_dns_label" {
type = string
default = "defaultvcn"
}
variable "oci_core_subnet_dns_label10" {
type = string
default = "defaultsubnet10"
}
variable "oci_core_subnet_dns_label11" {
type = string
default = "defaultsubnet11"
}
variable "oci_core_vcn_cidr" {
type = string
default = "10.0.0.0/16"
}
variable "oci_core_subnet_cidr10" {
type = string
default = "10.0.0.0/24"
}
variable "oci_core_subnet_cidr11" {
type = string
default = "10.0.1.0/24"
}
variable "kube_api_port" {
type = number
default = 6443
}
variable "k3s_load_balancer_name" {
type = string
default = "k3s internal load balancer"
}
variable "public_load_balancer_name" {
type = string
default = "K3s public LB"
}
variable "http_lb_port" {
type = number
default = 80
}
variable "https_lb_port" {
type = number
default = 443
}
variable "PATH_TO_PUBLIC_LB_CERT" {
type = string
description = "Path to the public LB https certificate"
}
variable "PATH_TO_PUBLIC_LB_KEY" {
type = string
description = "Path to the public LB key"
}
variable "k3s_server_pool_size" {
type = number
default = 2
}
variable "k3s_worker_pool_size" {
type = number
default = 2
}
variable "unique_tag_key" {
type = string
default = "k3s-provisioner"
}
variable "unique_tag_value" {
type = string
default = "https://github.com/garutilorenzo/k3s-oci-cluster"
}
variable "my_public_ip_cidr" {
type = string
description = "My public ip CIDR"
}
variable "install_nginx_ingress" {
type = bool
default = true
}
variable "install_longhorn" {
type = bool
default = true
}
variable "longhorn_release" {
type = string
default = "v1.2.3"
}