@r8s/crds 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crds/certmanager-certificate.yaml +794 -0
- package/crds/certmanager-clusterissuer.yaml +3739 -0
- package/crds/clickhouse-installation.yaml +1847 -0
- package/crds/cnpg-cluster.yaml +6794 -0
- package/crds/cnpg-pooler.yaml +9311 -0
- package/crds/cnpg-scheduledbackup.yaml +191 -0
- package/crds/envoy-backendtrafficpolicy.yaml +1 -0
- package/crds/envoy-clienttrafficpolicy.yaml +1 -0
- package/crds/envoy-envoyproxy.yaml +1 -0
- package/crds/envoy-proxy.yaml +16626 -0
- package/crds/envoy-securitypolicy.yaml +1 -0
- package/crds/externaldns-endpoint.yaml +94 -0
- package/crds/gatewayapi-gateway.yaml +2253 -0
- package/crds/gatewayapi-httproute.yaml +5643 -0
- package/crds/keycloak-keycloak.yaml +3192 -0
- package/crds/keycloak-realmimport.yaml +2878 -0
- package/crds/logging-flow.yaml +1768 -0
- package/crds/logging-logging.yaml +16770 -0
- package/crds/logging-output.yaml +14658 -0
- package/crds/loki-lokistack.yaml +5390 -0
- package/crds/prometheus-alertmanager.yaml +10013 -0
- package/crds/prometheus-podmonitor.yaml +741 -0
- package/crds/prometheus-prometheus.yaml +13928 -0
- package/crds/prometheus-prometheusrule.yaml +267 -0
- package/crds/prometheus-scrapeconfig.yaml +12938 -0
- package/crds/prometheus-servicemonitor.yaml +764 -0
- package/crds/prometheus-thanosruler.yaml +9795 -0
- package/crds/redis-cluster.yaml +7862 -0
- package/crds/redis-failover.yaml +1 -0
- package/crds/redis-replication.yaml +5593 -0
- package/crds/velero-backups.yaml +630 -0
- package/crds/velero-backupstoragelocations.yaml +174 -0
- package/crds/velero-schedules.yaml +584 -0
- package/dist/generated/cert-manager.d.ts +873 -0
- package/dist/generated/cert-manager.d.ts.map +1 -0
- package/dist/generated/cert-manager.js +24 -0
- package/dist/generated/cert-manager.js.map +1 -0
- package/dist/generated/clickhouse.d.ts +692 -0
- package/dist/generated/clickhouse.d.ts.map +1 -0
- package/dist/generated/clickhouse.js +14 -0
- package/dist/generated/clickhouse.js.map +1 -0
- package/dist/generated/externaldns.d.ts +47 -0
- package/dist/generated/externaldns.d.ts.map +1 -0
- package/dist/generated/externaldns.js +14 -0
- package/dist/generated/externaldns.js.map +1 -0
- package/dist/generated/gateway.d.ts +2396 -0
- package/dist/generated/gateway.d.ts.map +1 -0
- package/dist/generated/gateway.js +34 -0
- package/dist/generated/gateway.js.map +1 -0
- package/dist/generated/index.d.ts +24 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +61 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/keycloak.d.ts +1607 -0
- package/dist/generated/keycloak.d.ts.map +1 -0
- package/dist/generated/keycloak.js +24 -0
- package/dist/generated/keycloak.js.map +1 -0
- package/dist/generated/logging.d.ts +3487 -0
- package/dist/generated/logging.d.ts.map +1 -0
- package/dist/generated/logging.js +34 -0
- package/dist/generated/logging.js.map +1 -0
- package/dist/generated/loki.d.ts +578 -0
- package/dist/generated/loki.d.ts.map +1 -0
- package/dist/generated/loki.js +14 -0
- package/dist/generated/loki.js.map +1 -0
- package/dist/generated/monitoring.d.ts +4230 -0
- package/dist/generated/monitoring.d.ts.map +1 -0
- package/dist/generated/monitoring.js +74 -0
- package/dist/generated/monitoring.js.map +1 -0
- package/dist/generated/operators.d.ts +18 -0
- package/dist/generated/operators.d.ts.map +1 -0
- package/dist/generated/operators.js +191 -0
- package/dist/generated/operators.js.map +1 -0
- package/dist/generated/postgresql.d.ts +2820 -0
- package/dist/generated/postgresql.d.ts.map +1 -0
- package/dist/generated/postgresql.js +34 -0
- package/dist/generated/postgresql.js.map +1 -0
- package/dist/generated/redis.d.ts +1253 -0
- package/dist/generated/redis.d.ts.map +1 -0
- package/dist/generated/redis.js +24 -0
- package/dist/generated/redis.js.map +1 -0
- package/dist/generated/velero.d.ts +351 -0
- package/dist/generated/velero.d.ts.map +1 -0
- package/dist/generated/velero.js +34 -0
- package/dist/generated/velero.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/operators.yaml +196 -0
- package/package.json +49 -0
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED from clickhouse CRDs — do not edit by hand.
|
|
3
|
+
* Regenerate with: npm run generate -w @r8s/crds
|
|
4
|
+
*/
|
|
5
|
+
import type { ObjectMeta } from '@r8s/k8s-types';
|
|
6
|
+
export interface ClickHouseInstallation {
|
|
7
|
+
apiVersion: 'clickhouse.altinity.com/v1';
|
|
8
|
+
kind: 'ClickHouseInstallation';
|
|
9
|
+
metadata: ObjectMeta;
|
|
10
|
+
spec: ClickHouseInstallationSpec;
|
|
11
|
+
status?: ClickHouseInstallationStatus;
|
|
12
|
+
}
|
|
13
|
+
/** Props for the {@link ClickHouseInstallation} component — a 1:1 mapping of the clickhouse.altinity.com/v1 CRD. */
|
|
14
|
+
export interface ClickHouseInstallationProps {
|
|
15
|
+
metadata: ObjectMeta;
|
|
16
|
+
spec: ClickHouseInstallationSpec;
|
|
17
|
+
}
|
|
18
|
+
/** Render a ClickHouseInstallation (clickhouse.altinity.com/v1) exactly as defined by its CRD. */
|
|
19
|
+
export declare function ClickHouseInstallationComponent(props: ClickHouseInstallationProps): import("@r8s/core").r8sElement;
|
|
20
|
+
export interface Templating {
|
|
21
|
+
/** When defined as `auto` inside ClickhouseInstallationTemplate, this ClickhouseInstallationTemplate will be auto-added into ClickHouseInstallation, selectable by `chiSelector`. Default value is `manual`, meaning ClickHouseInstallation should request this ClickhouseInstallationTemplate explicitly. */
|
|
22
|
+
"policy"?: "" | "Auto" | "auto" | "Manual" | "manual";
|
|
23
|
+
/** Optional, defines selector for ClickHouseInstallation(s) to be templated with ClickhouseInstallationTemplate */
|
|
24
|
+
"chiSelector"?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
export interface UnknownObjects {
|
|
27
|
+
/** Behavior policy for unknown StatefulSet, `Delete` by default (case-insensitive) */
|
|
28
|
+
"statefulSet"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
29
|
+
/** Behavior policy for unknown PVC, `Delete` by default */
|
|
30
|
+
"pvc"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
31
|
+
/** Behavior policy for unknown ConfigMap, `Delete` by default */
|
|
32
|
+
"configMap"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
33
|
+
/** Behavior policy for unknown Service, `Delete` by default */
|
|
34
|
+
"service"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
35
|
+
}
|
|
36
|
+
export interface ReconcileFailedObjects {
|
|
37
|
+
/** Behavior policy for failed StatefulSet, `Retain` by default */
|
|
38
|
+
"statefulSet"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
39
|
+
/** Behavior policy for failed PVC, `Retain` by default */
|
|
40
|
+
"pvc"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
41
|
+
/** Behavior policy for failed ConfigMap, `Retain` by default */
|
|
42
|
+
"configMap"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
43
|
+
/** Behavior policy for failed Service, `Retain` by default */
|
|
44
|
+
"service"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
45
|
+
}
|
|
46
|
+
export interface Cleanup {
|
|
47
|
+
/** Describes what clickhouse-operator should do with found Kubernetes resources which should be managed by clickhouse-operator, but do not have `ownerReference` to any currently managed `ClickHouseInstallation` resource. Default behavior is `Delete`" */
|
|
48
|
+
"unknownObjects"?: UnknownObjects;
|
|
49
|
+
/** Describes what clickhouse-operator should do with Kubernetes resources which are failed during reconcile. Default behavior is `Retain`" */
|
|
50
|
+
"reconcileFailedObjects"?: ReconcileFailedObjects;
|
|
51
|
+
}
|
|
52
|
+
export interface Users {
|
|
53
|
+
/** enabled or not */
|
|
54
|
+
"enabled"?: Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
export interface Profiles {
|
|
57
|
+
/** enabled or not */
|
|
58
|
+
"enabled"?: Record<string, unknown>;
|
|
59
|
+
}
|
|
60
|
+
export interface Quotas {
|
|
61
|
+
/** enabled or not */
|
|
62
|
+
"enabled"?: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
export interface Settings {
|
|
65
|
+
/** enabled or not */
|
|
66
|
+
"enabled"?: Record<string, unknown>;
|
|
67
|
+
}
|
|
68
|
+
export interface Files {
|
|
69
|
+
/** enabled or not */
|
|
70
|
+
"enabled"?: Record<string, unknown>;
|
|
71
|
+
}
|
|
72
|
+
export interface Sections {
|
|
73
|
+
/** sections behaviour for macros on users */
|
|
74
|
+
"users"?: Users;
|
|
75
|
+
/** sections behaviour for macros on profiles */
|
|
76
|
+
"profiles"?: Profiles;
|
|
77
|
+
/** sections behaviour for macros on quotas */
|
|
78
|
+
"quotas"?: Quotas;
|
|
79
|
+
/** sections behaviour for macros on settings */
|
|
80
|
+
"settings"?: Settings;
|
|
81
|
+
/** sections behaviour for macros on files */
|
|
82
|
+
"files"?: Files;
|
|
83
|
+
}
|
|
84
|
+
export interface Macros {
|
|
85
|
+
/** sections behaviour for macros */
|
|
86
|
+
"sections"?: Sections;
|
|
87
|
+
}
|
|
88
|
+
export interface Runtime {
|
|
89
|
+
/** The maximum number of cluster shards that may be reconciled in parallel, 1 by default */
|
|
90
|
+
"reconcileShardsThreadsNumber"?: number;
|
|
91
|
+
/** The maximum percentage of cluster shards that may be reconciled in parallel, 50 percent by default. */
|
|
92
|
+
"reconcileShardsMaxConcurrencyPercent"?: number;
|
|
93
|
+
}
|
|
94
|
+
export interface Create {
|
|
95
|
+
/** What to do in case created StatefulSet is not in 'Ready' after `reconcile.statefulSet.update.timeout` seconds. Possible options: 1. abort - abort the process, do nothing with the problematic StatefulSet, leave it as it is. 2. delete - delete newly created problematic StatefulSet and follow 'abort' path afterwards. 3. ignore - ignore an error, pretend nothing happened, continue reconcile and move on to the next StatefulSet. */
|
|
96
|
+
"onFailure"?: "" | "Abort" | "abort" | "Delete" | "delete" | "Ignore" | "ignore";
|
|
97
|
+
}
|
|
98
|
+
export interface Update {
|
|
99
|
+
/** How many seconds to wait for StatefulSet to be 'Ready' during update */
|
|
100
|
+
"timeout"?: number;
|
|
101
|
+
/** How many seconds to wait between checks for StatefulSet status during update */
|
|
102
|
+
"pollInterval"?: number;
|
|
103
|
+
/** What to do in case updated StatefulSet is not in 'Ready' after `reconcile.statefulSet.update.timeout` seconds. Possible options: 1. abort - abort the process, do nothing with the problematic StatefulSet, leave it as it is. 2. rollback - delete Pod and rollback StatefulSet to previous Generation. Follow 'abort' path afterwards. 3. ignore - ignore an error, pretend nothing happened, continue reconcile and move on to the next StatefulSet. */
|
|
104
|
+
"onFailure"?: "" | "Abort" | "abort" | "Rollback" | "rollback" | "Ignore" | "ignore";
|
|
105
|
+
}
|
|
106
|
+
export interface Recreate {
|
|
107
|
+
/** What to do in case operator needs to recreate StatefulSet due to PVC data loss or missing volumes. Possible options: 1. abort - abort the process, do nothing with the problematic StatefulSet. 2. recreate - proceed and recreate StatefulSet. */
|
|
108
|
+
"onDataLoss"?: "" | "Abort" | "abort" | "Recreate" | "recreate";
|
|
109
|
+
/** What to do in case operator needs to recreate StatefulSet due to update failure or StatefulSet not ready. Possible options: 1. abort - abort the process, do nothing with the problematic StatefulSet. 2. recreate - proceed and recreate StatefulSet. */
|
|
110
|
+
"onUpdateFailure"?: "" | "Abort" | "abort" | "Recreate" | "recreate";
|
|
111
|
+
}
|
|
112
|
+
export interface StatefulSet {
|
|
113
|
+
/** Behavior during create StatefulSet */
|
|
114
|
+
"create"?: Create;
|
|
115
|
+
/** Behavior during update StatefulSet */
|
|
116
|
+
"update"?: Update;
|
|
117
|
+
/** Behavior during recreate StatefulSet */
|
|
118
|
+
"recreate"?: Recreate;
|
|
119
|
+
}
|
|
120
|
+
export interface Replicas {
|
|
121
|
+
/** Whether the operator during reconcile procedure should wait for all replicas to catch-up */
|
|
122
|
+
"all"?: Record<string, unknown>;
|
|
123
|
+
/** Whether the operator during reconcile procedure should wait for new replicas to catch-up */
|
|
124
|
+
"new"?: Record<string, unknown>;
|
|
125
|
+
/** replication max absolute delay to consider replica is not delayed */
|
|
126
|
+
"delay"?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface Probes {
|
|
129
|
+
/** Whether the operator during host launch procedure should wait for startup probe to succeed. In case probe is unspecified wait is assumed to be completed successfully. Default option value is to do not wait. */
|
|
130
|
+
"startup"?: Record<string, unknown>;
|
|
131
|
+
/** Whether the operator during host launch procedure should wait for ready probe to succeed. In case probe is unspecified wait is assumed to be completed successfully. Default option value is to wait. */
|
|
132
|
+
"readiness"?: Record<string, unknown>;
|
|
133
|
+
}
|
|
134
|
+
export interface Wait {
|
|
135
|
+
/** Allows to stop all ClickHouse clusters defined in a CHI. Works as the following: - When `stop` is `1` operator sets `Replicas: 0` in each StatefulSet. Thie leads to having all `Pods` and `Service` deleted. All PVCs are kept intact. - When `stop` is `0` operator sets `Replicas: 1` and `Pod`s and `Service`s will created again and all retained PVCs will be attached to `Pod`s. */
|
|
136
|
+
"exclude"?: Record<string, unknown>;
|
|
137
|
+
/** Whether the operator during reconcile procedure should wait for a ClickHouse host to complete all running queries */
|
|
138
|
+
"queries"?: Record<string, unknown>;
|
|
139
|
+
/** Whether the operator during reconcile procedure should wait for a ClickHouse host to be included into a ClickHouse cluster */
|
|
140
|
+
"include"?: Record<string, unknown>;
|
|
141
|
+
/** Whether the operator during reconcile procedure should wait for replicas to catch-up */
|
|
142
|
+
"replicas"?: Replicas;
|
|
143
|
+
/** What probes the operator should wait during host launch procedure */
|
|
144
|
+
"probes"?: Probes;
|
|
145
|
+
}
|
|
146
|
+
export interface Replicas2 {
|
|
147
|
+
/** Whether the operator during reconcile procedure should drop replicas when replica is deleted */
|
|
148
|
+
"onDelete"?: Record<string, unknown>;
|
|
149
|
+
/** Whether the operator during reconcile procedure should drop replicas when replica volume is lost */
|
|
150
|
+
"onLostVolume"?: Record<string, unknown>;
|
|
151
|
+
/** Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated */
|
|
152
|
+
"active"?: Record<string, unknown>;
|
|
153
|
+
}
|
|
154
|
+
export interface Drop {
|
|
155
|
+
/** Whether the operator during reconcile procedure should drop replicas when replica is deleted or recreated */
|
|
156
|
+
"replicas"?: Replicas2;
|
|
157
|
+
}
|
|
158
|
+
export interface Sql {
|
|
159
|
+
"queries"?: string[] | null;
|
|
160
|
+
}
|
|
161
|
+
export interface Shell {
|
|
162
|
+
"command"?: string[] | null;
|
|
163
|
+
"container"?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface Http {
|
|
166
|
+
"url"?: string;
|
|
167
|
+
"method"?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface PreItem {
|
|
170
|
+
"sql"?: Sql;
|
|
171
|
+
"shell"?: Shell;
|
|
172
|
+
"http"?: Http;
|
|
173
|
+
/** where to execute hook for cluster-level hooks: FirstHost (default), AllHosts, AllShards */
|
|
174
|
+
"target"?: "" | "FirstHost" | "firsthost" | "AllHosts" | "allhosts" | "AllShards" | "allshards";
|
|
175
|
+
/** Reconcile lifecycle events that trigger this hook. Required, must be non-empty. The hook is skipped on any reconcile whose classifier does not emit at least one of the listed events. Supported values: Any - wildcard match: fires on every hook-evaluation point, including the pre-delete sweep on the dying host HostCreate - first reconcile that creates a host (no ancestor); best paired with POST hooks because PRE hooks on first creation are skipped (no live pod yet) HostUpdate - reconcile that has prior state for the host; catch-all for ongoing reconciles HostStart - host transitions from stopped to running HostStop - host is being stopped (current spec marks it stopped) HostConfigRestart - in-place software restart for a configuration change HostRollout - pod-template change forces a StatefulSet rollout HostShutdown - aggregate: fires whenever the pod is going down for any reason (Stop, ConfigRestart, Rollout, or Delete) HostDelete - host is being removed from the cluster (downsize); fires on the dying host before tear-down. Always emitted alongside HostShutdown. */
|
|
176
|
+
"events": ("Any" | "any" | "HostCreate" | "hostcreate" | "HostDelete" | "hostdelete" | "HostUpdate" | "hostupdate" | "HostStart" | "hoststart" | "HostStop" | "hoststop" | "HostConfigRestart" | "hostconfigrestart" | "HostRollout" | "hostrollout" | "HostShutdown" | "hostshutdown")[];
|
|
177
|
+
/** Controls what happens when this hook returns an error. Fail (default): error propagates — pre-hook aborts reconcile / host deletion. Ignore: error is logged and the reconcile continues. */
|
|
178
|
+
"failurePolicy"?: "Fail" | "fail" | "Ignore" | "ignore";
|
|
179
|
+
}
|
|
180
|
+
export interface PostItem {
|
|
181
|
+
"sql"?: Sql;
|
|
182
|
+
"shell"?: Shell;
|
|
183
|
+
"http"?: Http;
|
|
184
|
+
/** where to execute hook for cluster-level hooks: FirstHost (default), AllHosts, AllShards */
|
|
185
|
+
"target"?: "" | "FirstHost" | "firsthost" | "AllHosts" | "allhosts" | "AllShards" | "allshards";
|
|
186
|
+
/** Reconcile lifecycle events that trigger this hook. Required, must be non-empty. The hook is skipped on any reconcile whose classifier does not emit at least one of the listed events. Supported values: Any - wildcard match: fires on every hook-evaluation point, including the pre-delete sweep on the dying host HostCreate - first reconcile that creates a host (no ancestor); best paired with POST hooks because PRE hooks on first creation are skipped (no live pod yet) HostUpdate - reconcile that has prior state for the host; catch-all for ongoing reconciles HostStart - host transitions from stopped to running HostStop - host is being stopped (current spec marks it stopped) HostConfigRestart - in-place software restart for a configuration change HostRollout - pod-template change forces a StatefulSet rollout HostShutdown - aggregate: fires whenever the pod is going down for any reason (Stop, ConfigRestart, Rollout, or Delete) HostDelete - host is being removed from the cluster (downsize); fires on the dying host before tear-down. Always emitted alongside HostShutdown. */
|
|
187
|
+
"events": ("Any" | "any" | "HostCreate" | "hostcreate" | "HostDelete" | "hostdelete" | "HostUpdate" | "hostupdate" | "HostStart" | "hoststart" | "HostStop" | "hoststop" | "HostConfigRestart" | "hostconfigrestart" | "HostRollout" | "hostrollout" | "HostShutdown" | "hostshutdown")[];
|
|
188
|
+
/** Controls what happens when this hook returns an error. Fail (default): error propagates — pre-hook aborts reconcile / host deletion. Ignore: error is logged and the reconcile continues. */
|
|
189
|
+
"failurePolicy"?: "Fail" | "fail" | "Ignore" | "ignore";
|
|
190
|
+
}
|
|
191
|
+
export interface Hooks {
|
|
192
|
+
/** actions to execute before reconcile */
|
|
193
|
+
"pre"?: PreItem[] | null;
|
|
194
|
+
/** actions to execute after reconcile */
|
|
195
|
+
"post"?: PostItem[] | null;
|
|
196
|
+
}
|
|
197
|
+
export interface Host {
|
|
198
|
+
"wait"?: Wait;
|
|
199
|
+
"drop"?: Drop;
|
|
200
|
+
/** hooks to execute before and after host reconcile */
|
|
201
|
+
"hooks"?: Hooks;
|
|
202
|
+
}
|
|
203
|
+
export interface Cluster {
|
|
204
|
+
/** cluster-level hooks inherited by every cluster */
|
|
205
|
+
"hooks"?: Hooks;
|
|
206
|
+
}
|
|
207
|
+
export interface Reconciling {
|
|
208
|
+
/** DISCUSSED TO BE DEPRECATED Syntax sugar Overrides all three 'reconcile.host.wait.{exclude, queries, include}' values from the operator's config Possible values: - wait - should wait to exclude host, complete queries and include host back into the cluster - nowait - should NOT wait to exclude host, complete queries and include host back into the cluster (case-insensitive) */
|
|
209
|
+
"policy"?: "" | "Wait" | "wait" | "NoWait" | "nowait";
|
|
210
|
+
/** Timeout in seconds for `clickhouse-operator` to wait for modified `ConfigMap` to propagate into the `Pod` More details: https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically */
|
|
211
|
+
"configMapPropagationTimeout"?: number;
|
|
212
|
+
/** Optional, defines behavior for cleanup Kubernetes resources during reconcile cycle */
|
|
213
|
+
"cleanup"?: Cleanup;
|
|
214
|
+
/** macros parameters */
|
|
215
|
+
"macros"?: Macros;
|
|
216
|
+
/** runtime parameters for clickhouse-operator process which are used during reconcile cycle */
|
|
217
|
+
"runtime"?: Runtime;
|
|
218
|
+
/** Optional, StatefulSet reconcile behavior tuning */
|
|
219
|
+
"statefulSet"?: StatefulSet;
|
|
220
|
+
/** Whether the operator during reconcile procedure should wait for a ClickHouse host: - to be excluded from a ClickHouse cluster - to complete all running queries - to be included into a ClickHouse cluster respectfully before moving forward */
|
|
221
|
+
"host"?: Host;
|
|
222
|
+
/** CHI-level cluster reconcile defaults inherited by every cluster's spec.configuration.clusters[N].reconcile section. Use this as a single place to define cluster-level hooks that should apply to all clusters in this CHI; per-cluster hooks (under clusters[N].reconcile.hooks) are appended to (and dedup'd against) the inherited set. */
|
|
223
|
+
"cluster"?: Cluster;
|
|
224
|
+
}
|
|
225
|
+
export interface Reconcile {
|
|
226
|
+
/** DISCUSSED TO BE DEPRECATED Syntax sugar Overrides all three 'reconcile.host.wait.{exclude, queries, include}' values from the operator's config Possible values: - wait - should wait to exclude host, complete queries and include host back into the cluster - nowait - should NOT wait to exclude host, complete queries and include host back into the cluster (case-insensitive) */
|
|
227
|
+
"policy"?: "" | "Wait" | "wait" | "NoWait" | "nowait";
|
|
228
|
+
/** Timeout in seconds for `clickhouse-operator` to wait for modified `ConfigMap` to propagate into the `Pod` More details: https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically */
|
|
229
|
+
"configMapPropagationTimeout"?: number;
|
|
230
|
+
/** Optional, defines behavior for cleanup Kubernetes resources during reconcile cycle */
|
|
231
|
+
"cleanup"?: Cleanup;
|
|
232
|
+
/** macros parameters */
|
|
233
|
+
"macros"?: Macros;
|
|
234
|
+
/** runtime parameters for clickhouse-operator process which are used during reconcile cycle */
|
|
235
|
+
"runtime"?: Runtime;
|
|
236
|
+
/** Optional, StatefulSet reconcile behavior tuning */
|
|
237
|
+
"statefulSet"?: StatefulSet;
|
|
238
|
+
/** Whether the operator during reconcile procedure should wait for a ClickHouse host: - to be excluded from a ClickHouse cluster - to complete all running queries - to be included into a ClickHouse cluster respectfully before moving forward */
|
|
239
|
+
"host"?: Host;
|
|
240
|
+
/** CHI-level cluster reconcile defaults inherited by every cluster's spec.configuration.clusters[N].reconcile section. Use this as a single place to define cluster-level hooks that should apply to all clusters in this CHI; per-cluster hooks (under clusters[N].reconcile.hooks) are appended to (and dedup'd against) the inherited set. */
|
|
241
|
+
"cluster"?: Cluster;
|
|
242
|
+
}
|
|
243
|
+
export interface DistributedDDL {
|
|
244
|
+
/** Settings from this profile will be used to execute DDL queries */
|
|
245
|
+
"profile"?: string;
|
|
246
|
+
}
|
|
247
|
+
export interface StorageManagement {
|
|
248
|
+
/** defines `PVC` provisioner - be it StatefulSet or the Operator (case-insensitive) */
|
|
249
|
+
"provisioner"?: "" | "StatefulSet" | "statefulset" | "Operator" | "operator";
|
|
250
|
+
/** defines behavior of `PVC` deletion (case-insensitive). `Delete` by default, if `Retain` specified then `PVC` will be kept when deleting StatefulSet */
|
|
251
|
+
"reclaimPolicy"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
252
|
+
}
|
|
253
|
+
export interface Templates {
|
|
254
|
+
/** optional, template name from chi.spec.templates.hostTemplates, which will apply to configure every `clickhouse-server` instance during render ConfigMap resources which will mount into `Pod` */
|
|
255
|
+
"hostTemplate"?: string;
|
|
256
|
+
/** optional, template name from chi.spec.templates.podTemplates, allows customization each `Pod` resource during render and reconcile each StatefulSet.spec resource described in `chi.spec.configuration.clusters` */
|
|
257
|
+
"podTemplate"?: string;
|
|
258
|
+
/** optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters` */
|
|
259
|
+
"dataVolumeClaimTemplate"?: string;
|
|
260
|
+
/** optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse log directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters` */
|
|
261
|
+
"logVolumeClaimTemplate"?: string;
|
|
262
|
+
/** optional, template name from chi.spec.templates.serviceTemplates. used for customization of the `Service` resource, created by `clickhouse-operator` to cover all clusters in whole `chi` resource */
|
|
263
|
+
"serviceTemplate"?: string;
|
|
264
|
+
/** optional, template names from chi.spec.templates.serviceTemplates. used for customization of the `Service` resources, created by `clickhouse-operator` to cover all clusters in whole `chi` resource */
|
|
265
|
+
"serviceTemplates"?: string[] | null;
|
|
266
|
+
/** optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each clickhouse cluster described in `chi.spec.configuration.clusters` */
|
|
267
|
+
"clusterServiceTemplate"?: string;
|
|
268
|
+
/** optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each shard inside clickhouse cluster described in `chi.spec.configuration.clusters` */
|
|
269
|
+
"shardServiceTemplate"?: string;
|
|
270
|
+
/** optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each replica inside each shard inside each clickhouse cluster described in `chi.spec.configuration.clusters` */
|
|
271
|
+
"replicaServiceTemplate"?: string;
|
|
272
|
+
/** optional, alias for dataVolumeClaimTemplate, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters` */
|
|
273
|
+
"volumeClaimTemplate"?: string;
|
|
274
|
+
}
|
|
275
|
+
export interface Defaults {
|
|
276
|
+
/** define should replicas be specified by FQDN in `<host></host>`. In case of "no" will use short hostname and clickhouse-server will use kubernetes default suffixes for DNS lookup "no" by default */
|
|
277
|
+
"replicasUseFQDN"?: Record<string, unknown>;
|
|
278
|
+
/** allows change `<yandex><distributed_ddl></distributed_ddl></yandex>` settings More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-distributed_ddl */
|
|
279
|
+
"distributedDDL"?: DistributedDDL;
|
|
280
|
+
/** default storage management options */
|
|
281
|
+
"storageManagement"?: StorageManagement;
|
|
282
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to one or more ClickHouse clusters described in current ClickHouseInstallation (chi) resource */
|
|
283
|
+
"templates"?: Templates;
|
|
284
|
+
}
|
|
285
|
+
export interface NodesItem {
|
|
286
|
+
/** dns name or ip address for Zookeeper node */
|
|
287
|
+
"host"?: string;
|
|
288
|
+
/** TCP port which used to connect to Zookeeper node */
|
|
289
|
+
"port"?: number;
|
|
290
|
+
/** if a secure connection to Zookeeper is required */
|
|
291
|
+
"secure"?: Record<string, unknown>;
|
|
292
|
+
/** availability zone for Zookeeper node */
|
|
293
|
+
"availabilityZone"?: string;
|
|
294
|
+
}
|
|
295
|
+
export interface Keeper {
|
|
296
|
+
/** name of the ClickHouseKeeperInstallation custom resource */
|
|
297
|
+
"name"?: string;
|
|
298
|
+
/** namespace of the CHK resource, defaults to the CHI namespace if omitted */
|
|
299
|
+
"namespace"?: string;
|
|
300
|
+
/** how to discover keeper endpoints (case-insensitive): Replicas (default) — enumerate per-host services, one ZK node per keeper replica Service — use the CR-level headless service as a single ZK node entry */
|
|
301
|
+
"serviceType"?: "" | "Replicas" | "replicas" | "Service" | "service";
|
|
302
|
+
}
|
|
303
|
+
export interface Zookeeper {
|
|
304
|
+
/** describe every available zookeeper cluster node for interaction */
|
|
305
|
+
"nodes"?: NodesItem[];
|
|
306
|
+
/** reference to a ClickHouseKeeperInstallation (CHK) resource. The operator resolves this to ZooKeeper node addresses automatically. */
|
|
307
|
+
"keeper"?: Keeper;
|
|
308
|
+
/** session timeout during connect to Zookeeper */
|
|
309
|
+
"session_timeout_ms"?: number;
|
|
310
|
+
/** one operation timeout during Zookeeper transactions */
|
|
311
|
+
"operation_timeout_ms"?: number;
|
|
312
|
+
/** optional root znode path inside zookeeper to store ClickHouse related data (replication queue or distributed DDL) */
|
|
313
|
+
"root"?: string;
|
|
314
|
+
/** optional access credentials string with `user:password` format used when use digest authorization in Zookeeper */
|
|
315
|
+
"identity"?: string;
|
|
316
|
+
/** Enables compression in Keeper protocol if set to true */
|
|
317
|
+
"use_compression"?: Record<string, unknown>;
|
|
318
|
+
}
|
|
319
|
+
export interface SchemaPolicy {
|
|
320
|
+
/** how schema is propagated within a replica (case-insensitive) */
|
|
321
|
+
"replica"?: "" | "None" | "none" | "All" | "all";
|
|
322
|
+
/** how schema is propagated between shards (case-insensitive) */
|
|
323
|
+
"shard"?: "" | "None" | "none" | "All" | "all" | "DistributedTablesOnly" | "distributedtablesonly";
|
|
324
|
+
}
|
|
325
|
+
export interface SecretKeyRef {
|
|
326
|
+
/** Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
|
|
327
|
+
"name": string;
|
|
328
|
+
/** The key of the secret to select from. Must be a valid secret key. */
|
|
329
|
+
"key": string;
|
|
330
|
+
/** Specify whether the Secret or its key must be defined */
|
|
331
|
+
"optional"?: boolean;
|
|
332
|
+
}
|
|
333
|
+
export interface ValueFrom {
|
|
334
|
+
/** Selects a key of a secret in the clickhouse installation namespace. Should not be used if value is not empty. */
|
|
335
|
+
"secretKeyRef"?: SecretKeyRef;
|
|
336
|
+
}
|
|
337
|
+
export interface Secret {
|
|
338
|
+
/** Auto-generate shared secret value to secure cluster communications */
|
|
339
|
+
"auto"?: Record<string, unknown>;
|
|
340
|
+
/** Cluster shared secret value in plain text */
|
|
341
|
+
"value"?: string;
|
|
342
|
+
/** Cluster shared secret source */
|
|
343
|
+
"valueFrom"?: ValueFrom;
|
|
344
|
+
}
|
|
345
|
+
export interface Reconcile2 {
|
|
346
|
+
/** runtime parameters for clickhouse-operator process which are used during reconcile cycle */
|
|
347
|
+
"runtime"?: Runtime;
|
|
348
|
+
/** Whether the operator during reconcile procedure should wait for a ClickHouse host: - to be excluded from a ClickHouse cluster - to complete all running queries - to be included into a ClickHouse cluster respectfully before moving forward */
|
|
349
|
+
"host"?: Host;
|
|
350
|
+
/** cluster-level hooks to execute before and after cluster reconcile */
|
|
351
|
+
"hooks"?: Hooks;
|
|
352
|
+
}
|
|
353
|
+
export interface ReplicasItem {
|
|
354
|
+
/** optional, by default replica name is generated, but you can override it and setup custom name */
|
|
355
|
+
"name"?: string;
|
|
356
|
+
/** optional, open insecure ports for cluster, defaults to "yes" */
|
|
357
|
+
"insecure"?: Record<string, unknown>;
|
|
358
|
+
/** optional, open secure ports */
|
|
359
|
+
"secure"?: Record<string, unknown>;
|
|
360
|
+
/** optional, setup `Pod.spec.containers.ports` with name `tcp` for selected replica, override `chi.spec.templates.hostTemplates.spec.tcpPort` allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service` */
|
|
361
|
+
"tcpPort"?: number;
|
|
362
|
+
"tlsPort"?: number;
|
|
363
|
+
/** optional, setup `Pod.spec.containers.ports` with name `http` for selected replica, override `chi.spec.templates.hostTemplates.spec.httpPort` allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service` */
|
|
364
|
+
"httpPort"?: number;
|
|
365
|
+
"httpsPort"?: number;
|
|
366
|
+
/** optional, setup `Pod.spec.containers.ports` with name `interserver` for selected replica, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort` allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol */
|
|
367
|
+
"interserverHTTPPort"?: number;
|
|
368
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/` override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and shard-level `chi.spec.configuration.clusters.layout.shards.settings` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
369
|
+
"settings"?: Record<string, unknown>;
|
|
370
|
+
/** optional, allows define content of any setting file inside `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` override top-level `chi.spec.configuration.files`, cluster-level `chi.spec.configuration.clusters.files` and shard-level `chi.spec.configuration.clusters.layout.shards.files` */
|
|
371
|
+
"files"?: Record<string, unknown>;
|
|
372
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates` and shard-level `chi.spec.configuration.clusters.layout.shards.templates` */
|
|
373
|
+
"templates"?: Templates;
|
|
374
|
+
}
|
|
375
|
+
export interface ShardsItem {
|
|
376
|
+
/** optional, by default shard name is generated, but you can override it and setup custom name */
|
|
377
|
+
"name"?: string;
|
|
378
|
+
/** DEPRECATED - to be removed soon */
|
|
379
|
+
"definitionType"?: string;
|
|
380
|
+
/** optional, 1 by default, allows setup shard <weight> setting which will use during insert into tables with `Distributed` engine, will apply in <remote_servers> inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/ */
|
|
381
|
+
"weight"?: number;
|
|
382
|
+
/** optional, `true` by default when `chi.spec.configuration.clusters[].layout.ReplicaCount` > 1 and 0 otherwise allows setup <internal_replication> setting which will use during insert into tables with `Distributed` engine for insert only in one live replica and other replicas will download inserted data during replication, will apply in <remote_servers> inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/ */
|
|
383
|
+
"internalReplication"?: Record<string, unknown>;
|
|
384
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` override top-level `chi.spec.configuration.settings` and cluster-level `chi.spec.configuration.clusters.settings` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
385
|
+
"settings"?: Record<string, unknown>;
|
|
386
|
+
/** optional, allows define content of any setting file inside each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files` */
|
|
387
|
+
"files"?: Record<string, unknown>;
|
|
388
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to selected shard override top-level `chi.spec.configuration.templates` and cluster-level `chi.spec.configuration.clusters.templates` */
|
|
389
|
+
"templates"?: Templates;
|
|
390
|
+
/** optional, how much replicas in selected shard for selected ClickHouse cluster will run in Kubernetes, each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance, shard contains 1 replica by default override cluster-level `chi.spec.configuration.clusters.layout.replicasCount` */
|
|
391
|
+
"replicasCount"?: number;
|
|
392
|
+
/** optional, allows override behavior for selected replicas from cluster-level `chi.spec.configuration.clusters` and shard-level `chi.spec.configuration.clusters.layout.shards` */
|
|
393
|
+
"replicas"?: ReplicasItem[];
|
|
394
|
+
}
|
|
395
|
+
export interface ShardsItem2 {
|
|
396
|
+
/** optional, by default shard name is generated, but you can override it and setup custom name */
|
|
397
|
+
"name"?: string;
|
|
398
|
+
/** optional, open insecure ports for cluster, defaults to "yes" */
|
|
399
|
+
"insecure"?: Record<string, unknown>;
|
|
400
|
+
/** optional, open secure ports */
|
|
401
|
+
"secure"?: Record<string, unknown>;
|
|
402
|
+
/** optional, setup `Pod.spec.containers.ports` with name `tcp` for selected shard, override `chi.spec.templates.hostTemplates.spec.tcpPort` allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service` */
|
|
403
|
+
"tcpPort"?: number;
|
|
404
|
+
"tlsPort"?: number;
|
|
405
|
+
/** optional, setup `Pod.spec.containers.ports` with name `http` for selected shard, override `chi.spec.templates.hostTemplates.spec.httpPort` allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service` */
|
|
406
|
+
"httpPort"?: number;
|
|
407
|
+
"httpsPort"?: number;
|
|
408
|
+
/** optional, setup `Pod.spec.containers.ports` with name `interserver` for selected shard, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort` allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol */
|
|
409
|
+
"interserverHTTPPort"?: number;
|
|
410
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/` override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and replica-level `chi.spec.configuration.clusters.layout.replicas.settings` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
411
|
+
"settings"?: Record<string, unknown>;
|
|
412
|
+
/** optional, allows define content of any setting file inside each `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents */
|
|
413
|
+
"files"?: Record<string, unknown>;
|
|
414
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates` */
|
|
415
|
+
"templates"?: Templates;
|
|
416
|
+
}
|
|
417
|
+
export interface ReplicasItem2 {
|
|
418
|
+
/** optional, by default replica name is generated, but you can override it and setup custom name */
|
|
419
|
+
"name"?: string;
|
|
420
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/` override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and will ignore if shard-level `chi.spec.configuration.clusters.layout.shards` present More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
421
|
+
"settings"?: Record<string, unknown>;
|
|
422
|
+
/** optional, allows define content of any setting file inside each `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents */
|
|
423
|
+
"files"?: Record<string, unknown>;
|
|
424
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates` */
|
|
425
|
+
"templates"?: Templates;
|
|
426
|
+
/** optional, count of shards related to current replica, you can override each shard behavior on low-level `chi.spec.configuration.clusters.layout.replicas.shards` */
|
|
427
|
+
"shardsCount"?: number;
|
|
428
|
+
/** optional, list of shards related to current replica, will ignore if `chi.spec.configuration.clusters.layout.shards` presents */
|
|
429
|
+
"shards"?: ShardsItem2[];
|
|
430
|
+
}
|
|
431
|
+
export interface Layout {
|
|
432
|
+
/** how much shards for current ClickHouse cluster will run in Kubernetes, each shard contains shared-nothing part of data and contains set of replicas, cluster contains 1 shard by default" */
|
|
433
|
+
"shardsCount"?: number;
|
|
434
|
+
/** how much replicas in each shards for current cluster will run in Kubernetes, each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance, every shard contains 1 replica by default" */
|
|
435
|
+
"replicasCount"?: number;
|
|
436
|
+
/** optional, allows override top-level `chi.spec.configuration`, cluster-level `chi.spec.configuration.clusters` settings for each shard separately, use it only if you fully understand what you do" */
|
|
437
|
+
"shards"?: ShardsItem[];
|
|
438
|
+
/** optional, allows override top-level `chi.spec.configuration` and cluster-level `chi.spec.configuration.clusters` configuration for each replica and each shard relates to selected replica, use it only if you fully understand what you do */
|
|
439
|
+
"replicas"?: ReplicasItem2[];
|
|
440
|
+
}
|
|
441
|
+
export interface ClustersItem {
|
|
442
|
+
/** cluster name, used to identify set of servers and wide used during generate names of related Kubernetes resources */
|
|
443
|
+
"name"?: string;
|
|
444
|
+
/** optional, allows configure <yandex><zookeeper>..</zookeeper></yandex> section in each `Pod` only in current ClickHouse cluster, during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/` override top-level `chi.spec.configuration.zookeeper` settings */
|
|
445
|
+
"zookeeper"?: Zookeeper;
|
|
446
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in each `Pod` only in one cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` override top-level `chi.spec.configuration.settings` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
447
|
+
"settings"?: Record<string, unknown>;
|
|
448
|
+
/** optional, allows define content of any setting file inside each `Pod` on current cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` override top-level `chi.spec.configuration.files` */
|
|
449
|
+
"files"?: Record<string, unknown>;
|
|
450
|
+
/** optional, configuration of the templates names which will use for generate Kubernetes resources according to selected cluster override top-level `chi.spec.configuration.templates` */
|
|
451
|
+
"templates"?: Templates;
|
|
452
|
+
/** describes how schema is propagated within replicas and shards */
|
|
453
|
+
"schemaPolicy"?: SchemaPolicy;
|
|
454
|
+
/** optional, open insecure ports for cluster, defaults to "yes" */
|
|
455
|
+
"insecure"?: Record<string, unknown>;
|
|
456
|
+
/** optional, open secure ports for cluster */
|
|
457
|
+
"secure"?: Record<string, unknown>;
|
|
458
|
+
/** optional, shared secret value to secure cluster communications */
|
|
459
|
+
"secret"?: Secret;
|
|
460
|
+
/** Per-cluster security toggles for outbound TLS connections the operator makes to this cluster's ClickHouse and ZooKeeper / Keeper hosts. Nil fields fall through to the operator-wide defaults in ClickHouseOperatorConfiguration. See docs/security_hardening.md for details. */
|
|
461
|
+
"security"?: Record<string, unknown>;
|
|
462
|
+
/** Specifies whether the Pod Disruption Budget (PDB) should be managed. During the next installation, if PDB management is enabled, the operator will attempt to retrieve any existing PDB. If none is found, it will create a new one and initiate a reconciliation loop. If PDB management is disabled, the existing PDB will remain intact, and the reconciliation loop will not be executed. By default, PDB management is enabled. */
|
|
463
|
+
"pdbManaged"?: Record<string, unknown>;
|
|
464
|
+
/** Pod eviction is allowed if at most "pdbMaxUnavailable" pods are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". */
|
|
465
|
+
"pdbMaxUnavailable"?: number;
|
|
466
|
+
/** allow tuning reconciling process */
|
|
467
|
+
"reconcile"?: Reconcile2;
|
|
468
|
+
/** describe current cluster layout, how much shards in cluster, how much replica in shard allows override settings on each shard and replica separatelly */
|
|
469
|
+
"layout"?: Layout;
|
|
470
|
+
}
|
|
471
|
+
export interface Configuration {
|
|
472
|
+
/** allows configure <yandex><zookeeper>..</zookeeper></yandex> section in each `Pod` during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/` `clickhouse-operator` itself doesn't manage Zookeeper, please install Zookeeper separatelly look examples on https://github.com/Altinity/clickhouse-operator/tree/master/deploy/zookeeper/ currently, zookeeper (or clickhouse-keeper replacement) used for *ReplicatedMergeTree table engines and for `distributed_ddl` More details: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings_zookeeper */
|
|
473
|
+
"zookeeper"?: Zookeeper;
|
|
474
|
+
/** allows configure <yandex><users>..</users></yandex> section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/` you can configure password hashed, authorization restrictions, database level security row filters etc. More details: https://clickhouse.tech/docs/en/operations/settings/settings-users/ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationusers any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets secret value will pass in `pod.spec.containers.evn`, and generate with from_env=XXX in XML in /etc/clickhouse-server/users.d/chop-generated-users.xml it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples any key with prefix `k8s_secret_` shall has value with format namespace/secret/key or secret/key in this case value from secret will write directly into XML tag during render *-usersd ConfigMap any key with prefix `k8s_secret_env` shall has value with format namespace/secret/key or secret/key in this case value from secret will write into environment variable and write to XML tag via from_env=XXX look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples */
|
|
475
|
+
"users"?: Record<string, unknown>;
|
|
476
|
+
/** allows configure <yandex><profiles>..</profiles></yandex> section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/` you can configure any aspect of settings profile More details: https://clickhouse.tech/docs/en/operations/settings/settings-profiles/ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationprofiles */
|
|
477
|
+
"profiles"?: Record<string, unknown>;
|
|
478
|
+
/** allows configure <yandex><quotas>..</quotas></yandex> section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/` you can configure any aspect of resource quotas More details: https://clickhouse.tech/docs/en/operations/quotas/ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationquotas */
|
|
479
|
+
"quotas"?: Record<string, unknown>;
|
|
480
|
+
/** allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationsettings any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples secret value will pass in `pod.spec.env`, and generate with from_env=XXX in XML in /etc/clickhouse-server/config.d/chop-generated-settings.xml it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle */
|
|
481
|
+
"settings"?: Record<string, unknown>;
|
|
482
|
+
/** allows define content of any setting file inside each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` every key in this object is the file name every value in this object is the file content you can use `!!binary |` and base64 for binary files, see details here https://yaml.org/type/binary.html each key could contains prefix like {common}, {users}, {hosts} or config.d, users.d, conf.d, wrong prefixes will be ignored, subfolders also will be ignored More details: https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-05-files-nested.yaml any key could contains `valueFrom` with `secretKeyRef` which allow pass values from kubernetes secrets secrets will mounted into pod as separate volume in /etc/clickhouse-server/secrets.d/ and will automatically update when update secret it useful for pass SSL certificates from cert-manager or similar tool look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples */
|
|
483
|
+
"files"?: Record<string, unknown>;
|
|
484
|
+
/** describes clusters layout and allows change settings on cluster-level, shard-level and replica-level every cluster is a set of StatefulSet, one StatefulSet contains only one Pod with `clickhouse-server` all Pods will rendered in <remote_server> part of ClickHouse configs, mounted from ConfigMap as `/etc/clickhouse-server/config.d/chop-generated-remote_servers.xml` Clusters will use for Distributed table engine, more details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/ If `cluster` contains zookeeper settings (could be inherited from top `chi` level), when you can create *ReplicatedMergeTree tables */
|
|
485
|
+
"clusters"?: ClustersItem[];
|
|
486
|
+
}
|
|
487
|
+
export interface PortDistributionItem {
|
|
488
|
+
/** type of distribution, when `Unspecified` (default value) then all listen ports on clickhouse-server configuration in all Pods will have the same value, when `ClusterScopeIndex` then ports will increment to offset from base value depends on shard and replica index inside cluster with combination of `chi.spec.templates.podTemlates.spec.HostNetwork` it allows setup ClickHouse cluster inside Kubernetes and provide access via external network bypass Kubernetes internal network */
|
|
489
|
+
"type"?: "" | "Unspecified" | "unspecified" | "ClusterScopeIndex" | "clusterscopeindex";
|
|
490
|
+
}
|
|
491
|
+
export interface Spec {
|
|
492
|
+
/** by default, hostname will generate, but this allows define custom name for each `clickhouse-server` */
|
|
493
|
+
"name"?: string;
|
|
494
|
+
/** optional, open insecure ports for cluster, defaults to "yes" */
|
|
495
|
+
"insecure"?: Record<string, unknown>;
|
|
496
|
+
/** optional, open secure ports */
|
|
497
|
+
"secure"?: Record<string, unknown>;
|
|
498
|
+
/** optional, setup `tcp_port` inside `clickhouse-server` settings for each Pod where current template will apply if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=tcp]` More info: https://clickhouse.tech/docs/en/interfaces/tcp/ */
|
|
499
|
+
"tcpPort"?: number;
|
|
500
|
+
"tlsPort"?: number;
|
|
501
|
+
/** optional, setup `http_port` inside `clickhouse-server` settings for each Pod where current template will apply if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=http]` More info: https://clickhouse.tech/docs/en/interfaces/http/ */
|
|
502
|
+
"httpPort"?: number;
|
|
503
|
+
"httpsPort"?: number;
|
|
504
|
+
/** optional, setup `interserver_http_port` inside `clickhouse-server` settings for each Pod where current template will apply if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=interserver]` More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#interserver-http-port */
|
|
505
|
+
"interserverHTTPPort"?: number;
|
|
506
|
+
/** optional, allows configure `clickhouse-server` settings inside <yandex>...</yandex> tag in each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/` More details: https://clickhouse.tech/docs/en/operations/settings/settings/ */
|
|
507
|
+
"settings"?: Record<string, unknown>;
|
|
508
|
+
/** optional, allows define content of any setting file inside each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/` */
|
|
509
|
+
"files"?: Record<string, unknown>;
|
|
510
|
+
/** be careful, this part of CRD allows override template inside template, don't use it if you don't understand what you do */
|
|
511
|
+
"templates"?: Templates;
|
|
512
|
+
}
|
|
513
|
+
export interface HostTemplatesItem {
|
|
514
|
+
/** template name, could use to link inside top-level `chi.spec.defaults.templates.hostTemplate`, cluster-level `chi.spec.configuration.clusters.templates.hostTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.hostTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.hostTemplate` */
|
|
515
|
+
"name"?: string;
|
|
516
|
+
/** define how will distribute numeric values of named ports in `Pod.spec.containers.ports` and clickhouse-server configs */
|
|
517
|
+
"portDistribution"?: PortDistributionItem[];
|
|
518
|
+
"spec"?: Spec;
|
|
519
|
+
}
|
|
520
|
+
export interface Zone {
|
|
521
|
+
/** optional, if defined, allows select kubernetes nodes by label with `name` equal `key` */
|
|
522
|
+
"key"?: string;
|
|
523
|
+
/** optional, if defined, allows select kubernetes nodes by label with `value` in `values` */
|
|
524
|
+
"values"?: string[];
|
|
525
|
+
}
|
|
526
|
+
export interface PodDistributionItem {
|
|
527
|
+
/** you can define multiple affinity policy types */
|
|
528
|
+
"type"?: "" | "Unspecified" | "unspecified" | "ClickHouseAntiAffinity" | "clickhouseantiaffinity" | "ShardAntiAffinity" | "shardantiaffinity" | "ReplicaAntiAffinity" | "replicaantiaffinity" | "AnotherNamespaceAntiAffinity" | "anothernamespaceantiaffinity" | "AnotherClickHouseInstallationAntiAffinity" | "anotherclickhouseinstallationantiaffinity" | "AnotherClusterAntiAffinity" | "anotherclusterantiaffinity" | "MaxNumberPerNode" | "maxnumberpernode" | "NamespaceAffinity" | "namespaceaffinity" | "ClickHouseInstallationAffinity" | "clickhouseinstallationaffinity" | "ClusterAffinity" | "clusteraffinity" | "ShardAffinity" | "shardaffinity" | "ReplicaAffinity" | "replicaaffinity" | "PreviousTailAffinity" | "previoustailaffinity" | "CircularReplication" | "circularreplication";
|
|
529
|
+
/** scope for apply each podDistribution */
|
|
530
|
+
"scope"?: "" | "Unspecified" | "unspecified" | "Shard" | "shard" | "Replica" | "replica" | "Cluster" | "cluster" | "ClickHouseInstallation" | "clickhouseinstallation" | "Namespace" | "namespace";
|
|
531
|
+
/** define, how much ClickHouse Pods could be inside selected scope with selected distribution type */
|
|
532
|
+
"number"?: number;
|
|
533
|
+
/** use for inter-pod affinity look to `pod.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey`, more info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity" */
|
|
534
|
+
"topologyKey"?: string;
|
|
535
|
+
}
|
|
536
|
+
export interface PodTemplatesItem {
|
|
537
|
+
/** template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate` */
|
|
538
|
+
"name"?: string;
|
|
539
|
+
/** allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables */
|
|
540
|
+
"generateName"?: string;
|
|
541
|
+
/** allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity` */
|
|
542
|
+
"zone"?: Zone;
|
|
543
|
+
/** DEPRECATED, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity` */
|
|
544
|
+
"distribution"?: "" | "Unspecified" | "unspecified" | "OnePerHost" | "oneperhost";
|
|
545
|
+
/** define ClickHouse Pod distribution policy between Kubernetes Nodes inside Shard, Replica, Namespace, CHI, another ClickHouse cluster */
|
|
546
|
+
"podDistribution"?: PodDistributionItem[];
|
|
547
|
+
/** allows pass standard object's metadata from template to Pod More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
548
|
+
"metadata"?: Record<string, unknown>;
|
|
549
|
+
/** allows define whole Pod.spec inside StaefulSet.spec, look to https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates for details */
|
|
550
|
+
"spec"?: Record<string, unknown>;
|
|
551
|
+
}
|
|
552
|
+
export interface VolumeClaimTemplatesItem {
|
|
553
|
+
/** template name, could use to link inside top-level `chi.spec.defaults.templates.dataVolumeClaimTemplate` or `chi.spec.defaults.templates.logVolumeClaimTemplate`, cluster-level `chi.spec.configuration.clusters.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.templates.logVolumeClaimTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.shards.temlates.logVolumeClaimTemplate` replica-level `chi.spec.configuration.clusters.layout.replicas.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.replicas.templates.logVolumeClaimTemplate` */
|
|
554
|
+
"name"?: string;
|
|
555
|
+
/** defines `PVC` provisioner - be it StatefulSet or the Operator (case-insensitive) */
|
|
556
|
+
"provisioner"?: "" | "StatefulSet" | "statefulset" | "Operator" | "operator";
|
|
557
|
+
/** defines behavior of `PVC` deletion (case-insensitive). `Delete` by default, if `Retain` specified then `PVC` will be kept when deleting StatefulSet */
|
|
558
|
+
"reclaimPolicy"?: "" | "Retain" | "retain" | "Delete" | "delete";
|
|
559
|
+
/** allows to pass standard object's metadata from template to PVC More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
560
|
+
"metadata"?: Record<string, unknown>;
|
|
561
|
+
/** allows define all aspects of `PVC` resource More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims */
|
|
562
|
+
"spec"?: Record<string, unknown>;
|
|
563
|
+
}
|
|
564
|
+
export interface ServiceTemplatesItem {
|
|
565
|
+
/** template name, could use to link inside chi-level `chi.spec.defaults.templates.serviceTemplate` cluster-level `chi.spec.configuration.clusters.templates.clusterServiceTemplate` shard-level `chi.spec.configuration.clusters.layout.shards.temlates.shardServiceTemplate` replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate` */
|
|
566
|
+
"name"?: string;
|
|
567
|
+
/** allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables" */
|
|
568
|
+
"generateName"?: string;
|
|
569
|
+
/** allows pass standard object's metadata from template to Service Could be use for define specificly for Cloud Provider metadata which impact to behavior of service More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
|
|
570
|
+
"metadata"?: Record<string, unknown>;
|
|
571
|
+
/** describe behavior of generated Service More info: https://kubernetes.io/docs/concepts/services-networking/service/ */
|
|
572
|
+
"spec"?: Record<string, unknown>;
|
|
573
|
+
}
|
|
574
|
+
export interface Templates2 {
|
|
575
|
+
/** hostTemplate will use during apply to generate `clickhose-server` config files */
|
|
576
|
+
"hostTemplates"?: HostTemplatesItem[];
|
|
577
|
+
/** podTemplate will use during render `Pod` inside `StatefulSet.spec` and allows define rendered `Pod.spec`, pod scheduling distribution and pod zone More information: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatespodtemplates */
|
|
578
|
+
"podTemplates"?: PodTemplatesItem[];
|
|
579
|
+
/** allows define template for rendering `PVC` kubernetes resource, which would use inside `Pod` for mount clickhouse `data`, clickhouse `logs` or something else */
|
|
580
|
+
"volumeClaimTemplates"?: VolumeClaimTemplatesItem[];
|
|
581
|
+
/** allows define template for rendering `Service` which would get endpoint from Pods which scoped chi-wide, cluster-wide, shard-wide, replica-wide level */
|
|
582
|
+
"serviceTemplates"?: ServiceTemplatesItem[];
|
|
583
|
+
}
|
|
584
|
+
export interface UseTemplatesItem {
|
|
585
|
+
/** name of `ClickHouseInstallationTemplate` (chit) resource */
|
|
586
|
+
"name"?: string;
|
|
587
|
+
/** Kubernetes namespace where need search `chit` resource, depending on `watchNamespaces` settings in `clickhouse-operator` */
|
|
588
|
+
"namespace"?: string;
|
|
589
|
+
/** optional, current strategy is only merge, and current `chi` settings have more priority than merged template `chit` (case-insensitive) */
|
|
590
|
+
"useType"?: "" | "Merge" | "merge";
|
|
591
|
+
}
|
|
592
|
+
export interface ClickHouseInstallationSpec {
|
|
593
|
+
/** Allows to define custom taskID for CHI update and watch status of this update execution. Displayed in all .status.taskID* fields. By default (if not filled) every update of CHI manifest will generate random taskID */
|
|
594
|
+
"taskID"?: string;
|
|
595
|
+
/** Allows to stop all ClickHouse clusters defined in a CHI. Works as the following: - When `stop` is `1` operator sets `Replicas: 0` in each StatefulSet. Thie leads to having all `Pods` and `Service` deleted. All PVCs are kept intact. - When `stop` is `0` operator sets `Replicas: 1` and `Pod`s and `Service`s will created again and all retained PVCs will be attached to `Pod`s. */
|
|
596
|
+
"stop"?: Record<string, unknown>;
|
|
597
|
+
/** In case 'RollingUpdate' specified, the operator will always restart ClickHouse pods during reconcile. This options is used in rare cases when force restart is required and is typically removed after the use in order to avoid unneeded restarts. */
|
|
598
|
+
"restart"?: "" | "RollingUpdate" | "rollingupdate";
|
|
599
|
+
/** Suspend reconciliation of resources managed by a ClickHouse Installation. Works as the following: - When `suspend` is `true` operator stops reconciling all resources. - When `suspend` is `false` or not set, operator reconciles all resources. */
|
|
600
|
+
"suspend"?: Record<string, unknown>;
|
|
601
|
+
/** Allows to troubleshoot Pods during CrashLoopBack state. This may happen when wrong configuration applied, in this case `clickhouse-server` wouldn't start. Command within ClickHouse container is modified with `sleep` in order to avoid quick restarts and give time to troubleshoot via CLI. Liveness and Readiness probes are disabled as well. */
|
|
602
|
+
"troubleshoot"?: Record<string, unknown>;
|
|
603
|
+
/** Custom domain pattern which will be used for DNS names of `Service` or `Pod`. Typical use scenario - custom cluster domain in Kubernetes cluster Example: %s.svc.my.test */
|
|
604
|
+
"namespaceDomainPattern"?: string;
|
|
605
|
+
/** Optional, applicable inside ClickHouseInstallationTemplate only. Defines current ClickHouseInstallationTemplate application options to target ClickHouseInstallation(s)." */
|
|
606
|
+
"templating"?: Templating;
|
|
607
|
+
/** [OBSOLETED] Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side */
|
|
608
|
+
"reconciling"?: Reconciling;
|
|
609
|
+
/** Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side */
|
|
610
|
+
"reconcile"?: Reconcile;
|
|
611
|
+
/** define default behavior for whole ClickHouseInstallation, some behavior can be re-define on cluster, shard and replica level More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specdefaults */
|
|
612
|
+
"defaults"?: Defaults;
|
|
613
|
+
/** allows configure multiple aspects and behavior for `clickhouse-server` instance and also allows describe multiple `clickhouse-server` clusters inside one `chi` resource */
|
|
614
|
+
"configuration"?: Configuration;
|
|
615
|
+
/** allows define templates which will use for render Kubernetes resources like StatefulSet, ConfigMap, Service, PVC, by default, clickhouse-operator have own templates, but you can override it */
|
|
616
|
+
"templates"?: Templates2;
|
|
617
|
+
/** CHI-level security defaults, applied to every cluster that does not override them. Each cluster can shadow these via spec.configuration.clusters[].security. See docs/security_hardening.md for details. */
|
|
618
|
+
"security"?: Record<string, unknown>;
|
|
619
|
+
/** list of `ClickHouseInstallationTemplate` (chit) resource names which will merge with current `CHI` manifest during render Kubernetes resources to create related ClickHouse clusters" */
|
|
620
|
+
"useTemplates"?: UseTemplatesItem[];
|
|
621
|
+
}
|
|
622
|
+
export interface ClickHouseInstallationStatus {
|
|
623
|
+
/** Operator version */
|
|
624
|
+
"chop-version"?: string;
|
|
625
|
+
/** Operator git commit SHA */
|
|
626
|
+
"chop-commit"?: string;
|
|
627
|
+
/** Operator build date */
|
|
628
|
+
"chop-date"?: string;
|
|
629
|
+
/** IP address of the operator's pod which managed this resource */
|
|
630
|
+
"chop-ip"?: string;
|
|
631
|
+
/** Clusters count */
|
|
632
|
+
"clusters"?: number;
|
|
633
|
+
/** Shards count */
|
|
634
|
+
"shards"?: number;
|
|
635
|
+
/** Replicas count */
|
|
636
|
+
"replicas"?: number;
|
|
637
|
+
/** Hosts count */
|
|
638
|
+
"hosts"?: number;
|
|
639
|
+
/** Status */
|
|
640
|
+
"status"?: string;
|
|
641
|
+
/** Current task id */
|
|
642
|
+
"taskID"?: string;
|
|
643
|
+
/** Started task ids */
|
|
644
|
+
"taskIDsStarted"?: string[] | null;
|
|
645
|
+
/** Completed task ids */
|
|
646
|
+
"taskIDsCompleted"?: string[] | null;
|
|
647
|
+
/** Action */
|
|
648
|
+
"action"?: string;
|
|
649
|
+
/** Actions */
|
|
650
|
+
"actions"?: string[] | null;
|
|
651
|
+
/** Last error */
|
|
652
|
+
"error"?: string;
|
|
653
|
+
/** Errors */
|
|
654
|
+
"errors"?: string[] | null;
|
|
655
|
+
/** Unchanged Hosts count */
|
|
656
|
+
"hostsUnchanged"?: number;
|
|
657
|
+
/** Updated Hosts count */
|
|
658
|
+
"hostsUpdated"?: number;
|
|
659
|
+
/** Added Hosts count */
|
|
660
|
+
"hostsAdded"?: number;
|
|
661
|
+
/** Completed Hosts count */
|
|
662
|
+
"hostsCompleted"?: number;
|
|
663
|
+
/** Deleted Hosts count */
|
|
664
|
+
"hostsDeleted"?: number;
|
|
665
|
+
/** About to delete Hosts count */
|
|
666
|
+
"hostsDelete"?: number;
|
|
667
|
+
/** Pods */
|
|
668
|
+
"pods"?: string[] | null;
|
|
669
|
+
/** Pod IPs */
|
|
670
|
+
"pod-ips"?: string[] | null;
|
|
671
|
+
/** Pods FQDNs */
|
|
672
|
+
"fqdns"?: string[] | null;
|
|
673
|
+
/** Endpoint */
|
|
674
|
+
"endpoint"?: string;
|
|
675
|
+
/** All endpoints */
|
|
676
|
+
"endpoints"?: string[] | null;
|
|
677
|
+
/** Generation */
|
|
678
|
+
"generation"?: number;
|
|
679
|
+
/** Normalized resource requested */
|
|
680
|
+
"normalized"?: Record<string, unknown> | null;
|
|
681
|
+
/** Normalized resource completed */
|
|
682
|
+
"normalizedCompleted"?: Record<string, unknown> | null;
|
|
683
|
+
/** Action Plan */
|
|
684
|
+
"actionPlan"?: Record<string, unknown> | null;
|
|
685
|
+
/** List of hosts with tables created by the operator */
|
|
686
|
+
"hostsWithTablesCreated"?: string[] | null;
|
|
687
|
+
/** List of hosts with replica caught up */
|
|
688
|
+
"hostsWithReplicaCaughtUp"?: string[] | null;
|
|
689
|
+
/** List of templates used to build this CHI */
|
|
690
|
+
"usedTemplates"?: Record<string, unknown> | null;
|
|
691
|
+
}
|
|
692
|
+
//# sourceMappingURL=clickhouse.d.ts.map
|