Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Commit f211bf3

Browse files
author
suhouzhen
committed
RadonDB ClickHouse on Kubernetes 2.0
1 parent 2790a8f commit f211bf3

File tree

7 files changed

+262
-51
lines changed

7 files changed

+262
-51
lines changed

clickhouse-cluster/Chart.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is part of the ClickHouse Helm Chart
22
# https://github.com/radondb/radondb-clickhouse-kubernetes
33
#
4-
# Copyright 2020 TCeason <tai_chong@foxmail.com>
4+
# Copyright 2020 Radondb <https://github.com/radondb>
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -18,22 +18,25 @@
1818
apiVersion: v2
1919
appVersion: "21.1"
2020
name: clickhouse-cluster
21-
Version: 0.1.0
22-
description: Helm Chart for deploying a sharded and replicated ClickHouse cluster
21+
type: application
22+
version: v2.0
23+
description: Helm Chart for deploying a sharded and replicated ClickHouse cluster on Kubernetes
2324
home: https://github.com/radondb/radondb-clickhouse-kubernetes
2425
icon: https://xenondb.pek3b.qingstor.com/icons/radondb.svg
25-
type: application
26-
kubeVersion:
26+
2727
keywords:
2828
- clickhouse
2929

3030
sources:
3131
- https://github.com/radondb/radondb-clickhouse-kubernetes
3232

3333
maintainers:
34-
35-
name: TCeason
34+
- name: TCeason
35+
3636
url: https://tceason.github.io/
37+
- name: su-houzhen
38+
39+
url: https://su-houzhen.github.io/
3740

3841
# Chart.yaml reference:
3942
# https://helm.sh/docs/topics/charts/#the-chart-yaml-file

clickhouse-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For a list of all configurable options and variables see [values.yaml](values.ya
2929
This helm chart is published under the Apache License, Version 2.0.
3030
See [LICENSE.md](LICENSE.md) for more information.
3131

32-
Copyright (c) by [TCeason](https://tceason.github.io).
32+
Copyright (c) by [RadonDB](https://github.com/radondb).
3333

3434
### Attributions
3535

clickhouse-cluster/templates/clickhouse_cluster.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,31 @@ spec:
4343
# </users>
4444
{{ $username }}/profile: default
4545
{{ $username }}/quotas: default
46-
profiles:
47-
readonly/readonly: "1"
48-
# <profiles>
49-
# <readonly>
50-
# <readonly>1</readonly>
51-
# </readonly>
52-
# </profiles>
53-
default/max_memory_usage: "100000"
54-
quotas:
55-
default/interval/duration: "3600"
56-
# <quotas>
57-
# <default>
58-
# <interval>
59-
# <duration>3600</duration>
60-
# </interval>
61-
# </default>
62-
# </quotas>
63-
settings:
64-
compression/case/method: zstd
65-
# <compression>
66-
# <case>
67-
# <method>zstd</method>
68-
# </case>
69-
# </compression>
70-
disable_internal_dns_cache: 1
71-
# <disable_internal_dns_cache>1</disable_internal_dns_cache>
46+
profiles:
47+
readonly/readonly: "1"
48+
# <profiles>
49+
# <readonly>
50+
# <readonly>1</readonly>
51+
# </readonly>
52+
# </profiles>
53+
quotas:
54+
default/interval/duration: "3600"
55+
# <quotas>
56+
# <default>
57+
# <interval>
58+
# <duration>3600</duration>
59+
# </interval>
60+
# </default>
61+
# </quotas>
62+
settings:
63+
compression/case/method: zstd
64+
# <compression>
65+
# <case>
66+
# <method>zstd</method>
67+
# </case>
68+
# </compression>
69+
disable_internal_dns_cache: 1
70+
# <disable_internal_dns_cache>1</disable_internal_dns_cache>
7271
clusters:
7372
- name: {{ $.Values.clickhouse.clusterName }}
7473
# Templates are specified for this cluster explicitly

clickhouse-operator/Chart.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
apiVersion: v2
2-
appVersion: 0.1.0
3-
description: clickhouse-operator Helm chart for Kubernetes
2+
appVersion: "v2.0"
3+
name: clickhouse-operator
4+
type: application
5+
version: v2.0
6+
description: Helm chart for deploying ClickHouse Operator on Kubernetes
47
home: https://github.com/radondb/radondb-clickhouse-kubernetes
8+
59
keywords:
6-
- operator
7-
- clickhouse
8-
- database
9-
maintainers:
10-
11-
name: TCeason
12-
url: https://tceason.github.io/
13-
name: clickhouse-operator
10+
- operator
11+
- clickhouse
12+
- database
13+
1414
sources:
15-
- https://github.com/radondb/radondb-clickhouse-kubernetes
16-
type: application
17-
version: 0.1.0
15+
- https://github.com/altinity/clickhouse-operator
16+
- https://github.com/radondb/radondb-clickhouse-operator
17+
- https://github.com/radondb/radondb-clickhouse-kubernetes
18+
19+
maintainers:
20+
- name: TCeason
21+
22+
url: https://tceason.github.io/
23+
- name: su-houzhen
24+
25+
url: https://su-houzhen.github.io/

clickhouse-operator/LICENSE.md

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
# Apache License
2+
3+
Version 2.0, January 2004 - http://www.apache.org/licenses/
4+
5+
6+
## Terms and Conditions for Use, Reproduction, and Distribution
7+
8+
### 1. Definitions
9+
10+
"License" shall mean the terms and conditions for use, reproduction,
11+
and distribution as defined by Sections 1 through 9 of this document.
12+
13+
"Licensor" shall mean the copyright owner or entity authorized by
14+
the copyright owner that is granting the License.
15+
16+
"Legal Entity" shall mean the union of the acting entity and all
17+
other entities that control, are controlled by, or are under common
18+
control with that entity. For the purposes of this definition,
19+
"control" means (i) the power, direct or indirect, to cause the
20+
direction or management of such entity, whether by contract or
21+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
22+
outstanding shares, or (iii) beneficial ownership of such entity.
23+
24+
"You" (or "Your") shall mean an individual or Legal Entity
25+
exercising permissions granted by this License.
26+
27+
"Source" form shall mean the preferred form for making modifications,
28+
including but not limited to software source code, documentation
29+
source, and configuration files.
30+
31+
"Object" form shall mean any form resulting from mechanical
32+
transformation or translation of a Source form, including but
33+
not limited to compiled object code, generated documentation,
34+
and conversions to other media types.
35+
36+
"Work" shall mean the work of authorship, whether in Source or
37+
Object form, made available under the License, as indicated by a
38+
copyright notice that is included in or attached to the work
39+
(an example is provided in the Appendix below).
40+
41+
"Derivative Works" shall mean any work, whether in Source or Object
42+
form, that is based on (or derived from) the Work and for which the
43+
editorial revisions, annotations, elaborations, or other modifications
44+
represent, as a whole, an original work of authorship. For the purposes
45+
of this License, Derivative Works shall not include works that remain
46+
separable from, or merely link (or bind by name) to the interfaces of,
47+
the Work and Derivative Works thereof.
48+
49+
"Contribution" shall mean any work of authorship, including
50+
the original version of the Work and any modifications or additions
51+
to that Work or Derivative Works thereof, that is intentionally
52+
submitted to Licensor for inclusion in the Work by the copyright owner
53+
or by an individual or Legal Entity authorized to submit on behalf of
54+
the copyright owner. For the purposes of this definition, "submitted"
55+
means any form of electronic, verbal, or written communication sent
56+
to the Licensor or its representatives, including but not limited to
57+
communication on electronic mailing lists, source code control systems,
58+
and issue tracking systems that are managed by, or on behalf of, the
59+
Licensor for the purpose of discussing and improving the Work, but
60+
excluding communication that is conspicuously marked or otherwise
61+
designated in writing by the copyright owner as "Not a Contribution."
62+
63+
"Contributor" shall mean Licensor and any individual or Legal Entity
64+
on behalf of whom a Contribution has been received by Licensor and
65+
subsequently incorporated within the Work.
66+
67+
68+
### 2. Grant of Copyright License
69+
70+
Subject to the terms and conditions of
71+
this License, each Contributor hereby grants to You a perpetual,
72+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73+
copyright license to reproduce, prepare Derivative Works of,
74+
publicly display, publicly perform, sublicense, and distribute the
75+
Work and such Derivative Works in Source or Object form.
76+
77+
78+
### 3. Grant of Patent License.
79+
80+
Subject to the terms and conditions of
81+
this License, each Contributor hereby grants to You a perpetual,
82+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83+
(except as stated in this section) patent license to make, have made,
84+
use, offer to sell, sell, import, and otherwise transfer the Work,
85+
where such license applies only to those patent claims licensable
86+
by such Contributor that are necessarily infringed by their
87+
Contribution(s) alone or by combination of their Contribution(s)
88+
with the Work to which such Contribution(s) was submitted. If You
89+
institute patent litigation against any entity (including a
90+
cross-claim or counterclaim in a lawsuit) alleging that the Work
91+
or a Contribution incorporated within the Work constitutes direct
92+
or contributory patent infringement, then any patent licenses
93+
granted to You under this License for that Work shall terminate
94+
as of the date such litigation is filed.
95+
96+
97+
### 4. Redistribution
98+
99+
You may reproduce and distribute copies of the
100+
Work or Derivative Works thereof in any medium, with or without
101+
modifications, and in Source or Object form, provided that You
102+
meet the following conditions:
103+
104+
* (a) You must give any other recipients of the Work or
105+
Derivative Works a copy of this License; and
106+
107+
* (b) You must cause any modified files to carry prominent notices
108+
stating that You changed the files; and
109+
110+
* (c) You must retain, in the Source form of any Derivative Works
111+
that You distribute, all copyright, patent, trademark, and
112+
attribution notices from the Source form of the Work,
113+
excluding those notices that do not pertain to any part of
114+
the Derivative Works; and
115+
116+
* (d) If the Work includes a "NOTICE" text file as part of its
117+
distribution, then any Derivative Works that You distribute must
118+
include a readable copy of the attribution notices contained
119+
within such NOTICE file, excluding those notices that do not
120+
pertain to any part of the Derivative Works, in at least one
121+
of the following places: within a NOTICE text file distributed
122+
as part of the Derivative Works; within the Source form or
123+
documentation, if provided along with the Derivative Works; or,
124+
within a display generated by the Derivative Works, if and
125+
wherever such third-party notices normally appear. The contents
126+
of the NOTICE file are for informational purposes only and
127+
do not modify the License. You may add Your own attribution
128+
notices within Derivative Works that You distribute, alongside
129+
or as an addendum to the NOTICE text from the Work, provided
130+
that such additional attribution notices cannot be construed
131+
as modifying the License.
132+
133+
You may add Your own copyright statement to Your modifications and
134+
may provide additional or different license terms and conditions
135+
for use, reproduction, or distribution of Your modifications, or
136+
for any such Derivative Works as a whole, provided Your use,
137+
reproduction, and distribution of the Work otherwise complies with
138+
the conditions stated in this License.
139+
140+
141+
### 5. Submission of Contributions.
142+
143+
Unless You explicitly state otherwise,
144+
any Contribution intentionally submitted for inclusion in the Work
145+
by You to the Licensor shall be under the terms and conditions of
146+
this License, without any additional terms or conditions.
147+
Notwithstanding the above, nothing herein shall supersede or modify
148+
the terms of any separate license agreement you may have executed
149+
with Licensor regarding such Contributions.
150+
151+
152+
### 6. Trademarks
153+
154+
This License does not grant permission to use the trade
155+
names, trademarks, service marks, or product names of the Licensor,
156+
except as required for reasonable and customary use in describing the
157+
origin of the Work and reproducing the content of the NOTICE file.
158+
159+
160+
### 7. Disclaimer of Warranty
161+
162+
Unless required by applicable law or
163+
agreed to in writing, Licensor provides the Work (and each
164+
Contributor provides its Contributions) on an "AS IS" BASIS,
165+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
166+
implied, including, without limitation, any warranties or conditions
167+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
168+
PARTICULAR PURPOSE. You are solely responsible for determining the
169+
appropriateness of using or redistributing the Work and assume any
170+
risks associated with Your exercise of permissions under this License.
171+
172+
173+
### 8. Limitation of Liability
174+
175+
In no event and under no legal theory,
176+
whether in tort (including negligence), contract, or otherwise,
177+
unless required by applicable law (such as deliberate and grossly
178+
negligent acts) or agreed to in writing, shall any Contributor be
179+
liable to You for damages, including any direct, indirect, special,
180+
incidental, or consequential damages of any character arising as a
181+
result of this License or out of the use or inability to use the
182+
Work (including but not limited to damages for loss of goodwill,
183+
work stoppage, computer failure or malfunction, or any and all
184+
other commercial damages or losses), even if such Contributor
185+
has been advised of the possibility of such damages.
186+
187+
### 9. Accepting Warranty or Additional Liability
188+
189+
While redistributing
190+
the Work or Derivative Works thereof, You may choose to offer,
191+
and charge a fee for, acceptance of support, warranty, indemnity,
192+
or other liability obligations and/or rights consistent with this
193+
License. However, in accepting such obligations, You may act only
194+
on Your own behalf and on Your sole responsibility, not on behalf
195+
of any other Contributor, and only if You agree to indemnify,
196+
defend, and hold each Contributor harmless for any liability
197+
incurred by, or claims asserted against, such Contributor by reason
198+
of your accepting any such warranty or additional liability.
199+
200+
*END OF TERMS AND CONDITIONS*

clickhouse-operator/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $ helm install --generate-name ck/clickhouse-operator
1919

2020
## License
2121

22-
This helm chart is published under the Apache License, Version 2.0. See LICENSE.md for more information.
22+
This helm chart is published under the Apache License, Version 2.0.
23+
See [LICENSE.md](LICENSE.md) for more information.
2324

24-
Copyright (c) by [TCeason](https://tceason.github.io/).
25+
Copyright (c) by [RadonDB](https://github.com/radondb).

clickhouse-operator/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Default values for ClickHouse-operator
22

33
operator:
4-
image: radondb/chronus-operator:0.1.0
4+
image: radondb/chronus-operator:2.0
55
imagePullPolicy: IfNotPresent
66
metrics_operator:
7-
image: radondb/chronus-metrics-operator:0.1.0
7+
image: radondb/chronus-metrics-operator:2.0
88
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)