-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
92 lines (77 loc) · 1.93 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
variable "name" {
description = "Human-readable name for this member."
type = string
}
variable "containers" {
description = "Desired containers(etcd, etcd-metrics-proxy) repo and tag."
type = map(object({
repo = string
tag = string
}))
default = {}
}
variable "cloud_provider" {
description = "The name of public cloud."
type = string
default = "aws"
}
variable "certs" {
description = "The etcd certificates."
type = map(string)
default = {}
}
variable "pki_path" {
description = "The etcd certificates path"
type = string
default = "/etc/ssl/etcd"
}
variable "cert_file_owner" {
type = object({
uid = number
gid = number
})
default = {
uid = 232
gid = 232
}
}
variable "discovery_service_srv" {
description = "DNS srv domain used to bootstrap the cluster."
type = string
}
variable "client_port" {
description = "etcd client communication port."
default = 2379
}
variable "peer_port" {
description = "etcd server to server port."
default = 2380
}
variable "proxy_port" {
description = "etcd-metrics-proxy expose port."
default = 2381
}
variable "data_path" {
description = "The path for data store."
type = string
default = "/var/lib/etcd"
}
variable "device_name" {
description = "Which block device will attach to data path."
type = string
default = "/dev/nvme1n1"
}
variable "log_level" {
description = "etcd log level, supports debug, info, warn, error, panic, or fatal"
type = string
default = "info"
}
variable "extra_flags" {
description = "The extra flags of etcd. The variables need to follow https://etcd.io/docs/v3.4.0/op-guide/configuration/. Do not use underline."
default = {}
}
variable "enable_metrics_proxy" {
description = "enable etcd-metrics-proxy to allow scrape metrics without etcd certificates."
type = bool
default = true
}