-
Notifications
You must be signed in to change notification settings - Fork 573
Expand file tree
/
Copy path02-templates-02-service-template.yaml
More file actions
64 lines (64 loc) · 1.86 KB
/
Copy path02-templates-02-service-template.yaml
File metadata and controls
64 lines (64 loc) · 1.86 KB
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
55
56
57
58
59
60
61
62
63
64
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "template-service"
spec:
defaults:
templates:
serviceTemplate: svc-template-1
serviceTemplates:
- svc-template-2
- svc-template-3
configuration:
settings:
http_port: 8124
tcp_port: 9001
interserver_http_port: 9010
templates:
serviceTemplates:
- name: svc-template-1
generateName: chendpoint1-{chi}
metadata:
labels:
custom.label.1: "custom.label.value.1"
annotations:
cloud.google.com/load-balancer-type: "Internal"
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
service.beta.kubernetes.io/cce-load-balancer-internal-vpc: "true"
spec:
ports:
- name: http
port: 8123
- name: tcp
port: 9000
type: LoadBalancer
- name: svc-template-2
generateName: chendpoint2-{chi}
metadata:
labels:
custom.label.2: "custom.label.value.2"
annotations:
custom.annotation.2: "custom.annotation.value.2"
spec:
ports:
- name: http
port: 8123
- name: tcp
port: 9000
type: LoadBalancer
- name: svc-template-3
generateName: chendpoint3-{chi}
metadata:
labels:
custom.label.3: "custom.label.value.3"
annotations:
custom.annotation.3: "custom.annotation.value.3"
spec:
ports:
- name: http
port: 8123
- name: tcp
port: 9000
type: LoadBalancer