forked from Altinity/clickhouse-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
15-hostNetwork-05-expanded-fixed-replicas.yaml
54 lines (51 loc) · 1.32 KB
/
15-hostNetwork-05-expanded-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
54
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "hostnet5"
spec:
defaults:
templates:
podTemplate: pod-distribution
configuration:
clusters:
- name: "hnet5"
layout:
shardsCount: 3
replicas:
- templates:
hostTemplate: replica-0
- templates:
hostTemplate: replica-1
- templates:
hostTemplate: replica-2
templates:
hostTemplates:
- name: replica-0
spec:
tcpPort: 10000
httpPort: 10001
interserverHTTPPort: 10002
- name: replica-1
spec:
tcpPort: 11000
httpPort: 11001
interserverHTTPPort: 11002
- name: replica-2
spec:
tcpPort: 12000
httpPort: 12001
interserverHTTPPort: 12002
podTemplates:
- name: pod-distribution
podDistribution:
- type: ShardAntiAffinity
- type: ReplicaAntiAffinity
- type: NamespaceAffinity
- type: ClickHouseInstallationAffinity
- type: PreviousTailAffinity
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: clickhouse
image: yandex/clickhouse-server:19.16