-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.tf
124 lines (110 loc) · 3.02 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
117
118
119
120
121
122
123
124
variable "region" {
default = "home"
type = string
description = "Used in the ceph-object-storageclass, can be whatever makes sense for your setup."
}
variable "control-plane-nodes" {
default = [
"192.168.57.10",
"192.168.57.11",
"192.168.57.12",
]
type = list(string)
description = "Set to whatever IPs you are using for the control plane nodes."
}
variable "metrics-server-chart-version" {
default = "2.11.4"
type = string
description = "Latest can be found using `helm search repo metrics-server` (you'll need the 'stable' repo)"
}
variable "metrics-server-image-version" {
default = "v0.4.3"
type = string
description = "Latest can be found at https://github.com/kubernetes-sigs/metrics-server/releases"
}
variable "cert-manager-chart-version" {
default = "v1.3.1"
type = string
description = "Latest can be found using `helm search repo cert-manager` (you'll need the jetstack repo)"
}
variable "rook-ceph-chart-version" {
default = "v1.6.1"
type = string
description = "Latest can be found at https://github.com/rook/rook/releases"
}
variable "ceph-image-version" {
default = "v15.2.11"
type = string
description = <<EOT
Latest can be found at https://docs.ceph.com/en/latest/releases/octopus/
NOTE THAT WE USE v15 (Octopus) currently
EOT
}
variable "prometheus-stack-chart-version" {
default = "15.3.1"
type = string
description = "Latest can be found at https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/Chart.yaml"
}
variable "loki-stack-chart-version" {
default = "2.3.1"
type = string
description = "Latest can be found using `helm search repo loki-stack` (you'll need the grafana repo)"
}
variable "vpa-chart-version" {
default = "0.3.2"
type = string
}
variable "ceph-block-classes" {
default = {
standard = {
replicated_size = 2
target_size_ratio = -1
}
durable = {
replicated_size = 3
target_size_ratio = -1
}
}
type = map(object({
replicated_size = number
target_size_ratio = number
}))
description = "At a minimum one class called 'standard' needs to be specified."
}
variable "ceph-object-classes" {
default = {
standard = {
replicated_size = 2
data_chunks = 3
coding_chunks = 1
}
durable = {
replicated_size = 3
data_chunks = 2
coding_chunks = 2
}
}
type = map(object({
replicated_size = number
data_chunks = number
coding_chunks = number
}))
description = "At a minimum one class called 'standard' needs to be specified."
}
variable "kubeconfig" {
default = "~/.kube/config"
type = string
}
variable "etcd-ca" {
default = {
enabled = false
cert = ""
key = ""
}
type = object({
enabled = bool
cert = string
key = string
})
description = "Use the values from cluster.etcd.ca exactly as they appear in your controlplane.yaml file."
}