-
Notifications
You must be signed in to change notification settings - Fork 18
/
aiven.io_clickhouses.yaml
441 lines (441 loc) · 20.3 KB
/
aiven.io_clickhouses.yaml
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: clickhouses.aiven.io
spec:
group: aiven.io
names:
kind: Clickhouse
listKind: ClickhouseList
plural: clickhouses
singular: clickhouse
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description:
'Clickhouse is the Schema for the clickhouses API. Info "Exposes
secret keys": `CLICKHOUSE_HOST`, `CLICKHOUSE_PORT`, `CLICKHOUSE_USER`, `CLICKHOUSE_PASSWORD`'
properties:
apiVersion:
description:
"APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
type: string
kind:
description:
"Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: string
metadata:
type: object
spec:
description: ClickhouseSpec defines the desired state of Clickhouse
properties:
authSecretRef:
description: Authentication reference to Aiven token in a secret
properties:
key:
minLength: 1
type: string
name:
minLength: 1
type: string
required:
- key
- name
type: object
cloudName:
description: Cloud the service runs in.
maxLength: 256
type: string
connInfoSecretTarget:
description: Secret configuration.
properties:
annotations:
additionalProperties:
type: string
description: Annotations added to the secret
type: object
x-kubernetes-preserve-unknown-fields: true
labels:
additionalProperties:
type: string
description: Labels added to the secret
type: object
x-kubernetes-preserve-unknown-fields: true
name:
description:
Name of the secret resource to be created. By default,
it is equal to the resource name
type: string
prefix:
description:
Prefix for the secret's keys. Added "as is" without
any transformations. By default, is equal to the kind name in
uppercase + underscore, e.g. `KAFKA_`, `REDIS_`, etc.
type: string
required:
- name
type: object
connInfoSecretTargetDisabled:
description:
When true, the secret containing connection information
will not be created, defaults to false. This field cannot be changed
after resource creation.
type: boolean
x-kubernetes-validations:
- message: connInfoSecretTargetDisabled is immutable.
rule: self == oldSelf
disk_space:
description:
The disk space of the service, possible values depend
on the service type, the cloud provider and the project. Reducing
will result in the service re-balancing.
format: ^[1-9][0-9]*(GiB|G)*
type: string
maintenanceWindowDow:
description:
Day of week when maintenance operations should be performed.
One monday, tuesday, wednesday, etc.
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
maintenanceWindowTime:
description:
Time of day when maintenance operations should be performed.
UTC time in HH:mm:ss format.
maxLength: 8
type: string
plan:
description: Subscription plan.
maxLength: 128
type: string
project:
description: Identifies the project this resource belongs to
format: ^[a-zA-Z0-9_-]+$
maxLength: 63
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
projectVPCRef:
description:
ProjectVPCRef reference to ProjectVPC resource to use
its ID as ProjectVPCID automatically
properties:
name:
minLength: 1
type: string
namespace:
minLength: 1
type: string
required:
- name
type: object
projectVpcId:
description: Identifier of the VPC the service should be in, if any.
maxLength: 36
type: string
serviceIntegrations:
description:
Service integrations to specify when creating a service.
Not applied after initial service creation
items:
description:
Service integrations to specify when creating a service.
Not applied after initial service creation
properties:
integrationType:
enum:
- read_replica
type: string
sourceServiceName:
maxLength: 64
minLength: 1
type: string
required:
- integrationType
- sourceServiceName
type: object
maxItems: 1
type: array
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
tags:
additionalProperties:
type: string
description:
Tags are key-value pairs that allow you to categorize
services.
type: object
technicalEmails:
description:
Defines the email addresses that will receive alerts
about upcoming maintenance updates or warnings about service instability.
items:
properties:
email:
description: Email address.
format: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
type: string
required:
- email
type: object
maxItems: 10
type: array
terminationProtection:
description:
Prevent service from being deleted. It is recommended
to have this enabled for all services.
type: boolean
userConfig:
description: OpenSearch specific user configuration options
properties:
additional_backup_regions:
description: Deprecated. Additional Cloud Regions for Backup Replication
items:
type: string
maxItems: 1
type: array
ip_filter:
description:
Allow incoming connections from CIDR address block,
e.g. '10.20.0.0/16'
items:
description:
CIDR address block, either as a string, or in a
dict with an optional description field
properties:
description:
description: Description for IP filter list entry
maxLength: 1024
type: string
network:
description: CIDR address block
maxLength: 43
type: string
required:
- network
type: object
maxItems: 1024
type: array
private_access:
description:
Allow access to selected service ports from private
networks
properties:
clickhouse:
description:
Allow clients to connect to clickhouse with a
DNS name that always resolves to the service's private IP
addresses. Only available in certain network locations
type: boolean
clickhouse_https:
description:
Allow clients to connect to clickhouse_https
with a DNS name that always resolves to the service's private
IP addresses. Only available in certain network locations
type: boolean
clickhouse_mysql:
description:
Allow clients to connect to clickhouse_mysql
with a DNS name that always resolves to the service's private
IP addresses. Only available in certain network locations
type: boolean
prometheus:
description:
Allow clients to connect to prometheus with a
DNS name that always resolves to the service's private IP
addresses. Only available in certain network locations
type: boolean
type: object
privatelink_access:
description:
Allow access to selected service components through
Privatelink
properties:
clickhouse:
description: Enable clickhouse
type: boolean
clickhouse_https:
description: Enable clickhouse_https
type: boolean
clickhouse_mysql:
description: Enable clickhouse_mysql
type: boolean
prometheus:
description: Enable prometheus
type: boolean
type: object
project_to_fork_from:
description:
Name of another project to fork a service from. This
has effect only when a new service is being created.
maxLength: 63
pattern: ^[a-z][-a-z0-9]{0,63}$|^$
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
public_access:
description:
Allow access to selected service ports from the public
Internet
properties:
clickhouse:
description:
Allow clients to connect to clickhouse from the
public internet for service nodes that are in a project
VPC or another type of private network
type: boolean
clickhouse_https:
description:
Allow clients to connect to clickhouse_https
from the public internet for service nodes that are in a
project VPC or another type of private network
type: boolean
clickhouse_mysql:
description:
Allow clients to connect to clickhouse_mysql
from the public internet for service nodes that are in a
project VPC or another type of private network
type: boolean
prometheus:
description:
Allow clients to connect to prometheus from the
public internet for service nodes that are in a project
VPC or another type of private network
type: boolean
type: object
service_log:
description:
Store logs for the service so that they are available
in the HTTP API and console.
type: boolean
service_to_fork_from:
description:
Name of another service to fork from. This has effect
only when a new service is being created.
maxLength: 64
pattern: ^[a-z][-a-z0-9]{0,63}$|^$
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
static_ips:
description: Use static public IP addresses
type: boolean
type: object
required:
- plan
- project
type: object
x-kubernetes-validations:
- message:
connInfoSecretTargetDisabled can only be set during resource
creation.
rule: has(oldSelf.connInfoSecretTargetDisabled) == has(self.connInfoSecretTargetDisabled)
status:
description: ServiceStatus defines the observed state of service
properties:
conditions:
description:
Conditions represent the latest available observations
of a service state
items:
description:
"Condition contains details for one aspect of the current
state of this API Resource. --- This struct is intended for direct
use as an array at the field path .status.conditions. For example,
\n type FooStatus struct{ // Represents the observations of a
foo's current state. // Known .status.conditions.type are: \"Available\",
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
// +listType=map // +listMapKey=type Conditions []metav1.Condition
`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\"
protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
properties:
lastTransitionTime:
description:
lastTransitionTime is the last time the condition
transitioned from one status to another. This should be when
the underlying condition changed. If that is not known, then
using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description:
message is a human readable message indicating
details about the transition. This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description:
observedGeneration represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.conditions[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
format: int64
minimum: 0
type: integer
reason:
description:
reason contains a programmatic identifier indicating
the reason for the condition's last transition. Producers
of specific condition types may define expected values and
meanings for this field, and whether the values are considered
a guaranteed API. The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description:
type of condition in CamelCase or in foo.example.com/CamelCase.
--- Many .condition.type values are consistent across resources
like Available, but because arbitrary conditions can be useful
(see .node.status.conditions), the ability to deconflict is
important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
state:
description: Service state
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}