forked from Altinity/clickhouse-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
15-hostNetwork-04-simple-fixed-replicas.yaml
53 lines (50 loc) · 1.21 KB
/
15-hostNetwork-04-simple-fixed-replicas.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
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "hostnet4"
spec:
defaults:
templates:
podTemplate: pod-distribution
configuration:
users:
default/networks/ip:
- "::/0"
clusters:
- name: "hnet4"
layout:
shardsCount: 3
replicas:
- templates:
hostTemplate: replica-0
- templates:
hostTemplate: replica-1
- templates:
hostTemplate: replica-2
templates:
hostTemplates:
- name: replica-0
spec:
tcpPort: 9000
httpPort: 8123
interserverHTTPPort: 9009
- name: replica-1
spec:
tcpPort: 9001
httpPort: 8124
interserverHTTPPort: 9010
- name: replica-2
spec:
tcpPort: 9002
httpPort: 8125
interserverHTTPPort: 9011
podTemplates:
- name: pod-distribution
podDistribution:
- type: CircularReplication
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: clickhouse
image: yandex/clickhouse-server:19.16