-
Notifications
You must be signed in to change notification settings - Fork 468
/
Copy path02-templates-01-pod-template.yaml
44 lines (44 loc) · 1.19 KB
/
02-templates-01-pod-template.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
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "template-pod"
finalizers:
- finalizer.clickhouseinstallation.altinity.com
spec:
defaults:
templates:
podTemplate: pod-template
configuration:
settings:
http_port: 8124
tcp_port: 9001
interserver_http_port: 9010
clusters:
- name: "temp-pod"
layout:
shardsCount: 1
replicasCount: 1
templates:
podTemplates:
- name: pod-template
metadata:
labels:
custom.label: "label.value"
annotations:
custom.annotation: "annotation.value"
spec:
containers:
- name: clickhouse
image: clickhouse/clickhouse-server:23.8
# Container has explicitly specified resource requests
resources:
requests:
cpu: "1000m"
# Container has explicitly specified ports
ports:
- name: http
containerPort: 8124
- name: tcp
containerPort: 9001
- name: interserver
containerPort: 9010