forked from Rapha-Borges/oke-free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
86 lines (67 loc) · 1.47 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
# ----------> 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.E3.Flex"
}
variable "ocpus_per_node" {
type = number
default = 1
}
variable "memory_in_gbs_per_node" {
type = number
default = 1
}
variable "image_id" {
type = string
default = "ocid1.image.oc1.iad.aaaaaaaab2z4tdx4ozceelvzjzvvugwyavhco7mjuq44ejszrvw4yhz4za5a"
}
# Link to a list of available images (Be sure to select the correct region and CPU architecture. We are using Oracle-Linux-8.8-2023.09.26-0-OKE-1.26.7-653)
# https://docs.cloud.oracle.com/iaas/images/
# ----------> Cluster <----------
variable "k8s_version" {
type = string
default = "v1.28.2"
}
variable "node_size" {
type = string
default = "1"
}
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" {
type = number
default = 30080
}
variable "listerner_port" {
type = number
default = 80
}
# ----------> SSH <----------
variable "ssh_public_key" {
type = string
}