-
Notifications
You must be signed in to change notification settings - Fork 380
/
variables.tf
116 lines (90 loc) · 1.9 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
# ----------> Compartment <----------
variable "compartment_name" {
type = string
default = "k8s"
}
variable "region" {
type = string
default = "us-ashburn-1"
}
# ---------->VM's----------
variable "shape" {
type = string
default = "VM.Standard.A1.Flex"
}
variable "ocpus_per_node" {
type = number
default = 1
}
variable "memory_in_gbs_per_node" {
type = number
default = 6
}
variable "image_id" {
type = string
default = "ocid1.image.oc1.iad.aaaaaaaao2zpwcb2osmbtliiuzlphc3y2fqaqmcpp5ttlcf573sidkabml7a"
}
# Link to a list of available images (Be sure to select the correct region and CPU architecture. We are using Oracle-Linux-8.8-aarch64-2023.09.26-0-OKE-1.28.2-653)
# https://docs.oracle.com/en-us/iaas/images/image/d4c060a5-041c-477b-8226-2d25d91c4ffb/
# ----------> Cluster <----------
variable "k8s_version" {
type = string
default = "v1.28.2"
}
variable "node_size" {
type = string
default = "3"
}
variable "cluster_name" {
type = string
default = "k8s-cluster"
}
# ----------> Network <----------
variable "vcn_name" {
type = string
default = "k8s-vcn"
}
variable "vcn_dns_label" {
type = string
default = "k8svcn"
}
# ----------> Load Balancer <----------
variable "load_balancer_name_space" {
type = string
default = "loadbalancer"
}
variable "node_port_http" {
type = number
default = 30080
}
variable "node_port_https" {
type = number
default = 30443
}
variable "listener_port_http" {
type = number
default = 80
}
variable "listener_port_https" {
type = number
default = 443
}
# ----------> Auth <----------
variable "ssh_public_key" {
type = string
}
variable "fingerprint" {
type = string
}
variable "private_key_path" {
type = string
}
variable "tenancy_ocid" {
type = string
}
variable "user_ocid" {
type = string
}
variable "oci_profile" {
type = string
}