This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
186 lines (166 loc) · 4.73 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
variable "name" {
type = string
default = "clickhouse"
description = <<-DESCRIPTION
Name of instance.
Used as service name, configMap name, secret name etc.
DESCRIPTION
}
variable "namespace" {
type = string
description = <<-DESCRIPTION
Namespace in kubernetes for deployment.
DESCRIPTION
}
variable "http_port" {
type = number
default = 8123
description = <<-DESCRIPTION
The port for connecting to the server over HTTP(s).
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#http-port-https-port
DESCRIPTION
}
variable "ingress_hostname" {
type = string
default = ""
description = <<-DESCRIPTION
Hostname for ingress HTTP traffic.
If empty, ingress will not be installed.
DESCRIPTION
}
variable "native_port" {
type = number
default = 9000
description = <<-DESCRIPTION
Port for communicating with clients over the TCP protocol.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#server_settings-tcp_port
DESCRIPTION
}
variable "metrics_port" {
type = number
default = 9116
description = <<-DESCRIPTION
Port for scraping prometheus metrics.
See docs at: https://github.com/f1yegor/clickhouse_exporter
DESCRIPTION
}
variable "storage_size" {
type = string
default = "10Gi"
description = <<-DESCRIPTION
Persistent volume size for store data.
DESCRIPTION
}
variable "storage_class" {
type = string
default = "standard"
description = <<-DESCRIPTION
Kubernetes storage class name.
DESCRIPTION
}
variable "image_tag" {
type = string
default = "yandex/clickhouse-server:19.11"
description = <<-DESCRIPTION
Docker image tag for running clickhouse application.
DESCRIPTION
}
variable "requests_cpu" {
type = string
default = "1000m"
description = <<-DESCRIPTION
Count of millicpu to request in kubernetes cluster.
DESCRIPTION
}
variable "requests_memory" {
type = string
default = "4Gi"
description = <<-DESCRIPTION
Size of memory to request in kubernetes cluster.
DESCRIPTION
}
variable "limits_cpu" {
type = string
default = "1000m"
description = <<-DESCRIPTION
CPU limit in kubernetes cluster.
DESCRIPTION
}
variable "limits_memory" {
type = string
default = "4Gi"
description = <<-DESCRIPTION
Memory limit in kubernetes cluster.
DESCRIPTION
}
variable "keep_alive_timeout" {
type = number
default = 3
description = <<-DESCRIPTION
The number of seconds that ClickHouse waits for incoming requests before closing the connection. Defaults to 3 seconds.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#keep-alive-timeout
DESCRIPTION
}
variable "max_concurrent_queries" {
type = number
default = 100
description = <<-DESCRIPTION
The maximum number of simultaneously processed requests.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#max-concurrent-queries
DESCRIPTION
}
variable "max_connections" {
type = number
default = 4096
description = <<-DESCRIPTION
The maximum number of inbound connections.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#max-connections
DESCRIPTION
}
variable "exporter_username" {
type = string
default = "exporter"
description = <<-DESCRIPTION
Username for metric exporter connections.
DESCRIPTION
}
variable "default_password" {
type = string
default = ""
description = <<-DESCRIPTION
Password for default user.
If empty, random password will be generated.
Password saving in kubernetes secret.
DESCRIPTION
}
variable "uncompressed_cache_size" {
type = number
default = 8589934592
description = <<-DESCRIPTION
Cache size (in bytes) for uncompressed data used by table engines from the MergeTree.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#server-settings-uncompressed_cache_size
DESCRIPTION
}
variable "mark_cache_size" {
type = number
default = 5368709120
description = <<-DESCRIPTION
Approximate size (in bytes) of the cache of "marks" used by MergeTree.
See docs at: https://clickhouse.yandex/docs/en/operations/server_settings/settings/#mark-cache-size
DESCRIPTION
}
variable "clickhouse_users" {
type = list
default = [
# {
# name = "myuser"
# password = "pa$$w0Rd"
# read_only = false
# database = "mydb"
# remote = true
# }
]
description = <<-DESCRIPTION
List of users to create in users config.
DESCRIPTION
}