-
Notifications
You must be signed in to change notification settings - Fork 69
/
deploy_a_starrocks_cluster_with_fe_proxy.yaml
53 lines (52 loc) · 1.6 KB
/
deploy_a_starrocks_cluster_with_fe_proxy.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
# This manifest deploys a StarRocks cluster with FE, BE, FE Proxy
# To load data from outside the Kubernetes cluster into StarRocks deployed within the Kubernetes
# cluster, you can deploy the FE Proxy component. So that External data import tools, like flink,
# can use the STREAM LOAD syntax to import data into StarRocks clusters.
# see https://docs.starrocks.io/docs/loading/Flink-connector-starrocks/ for more information
# about how to use flink to import data into StarRocks.
apiVersion: starrocks.com/v1
kind: StarRocksCluster
metadata:
name: a-starrocks-with-fe-proxy # change the name if needed.
spec:
starRocksFeSpec:
image: starrocks/fe-ubuntu:latest
replicas: 3
limits:
cpu: 8
memory: 16Gi
requests:
cpu: 8
memory: 16Gi
service:
type: NodePort # export fe service
ports:
- name: query # fill the name from the fe service ports
nodePort: 32755
port: 9030
containerPort: 9030
starRocksBeSpec:
image: starrocks/be-ubuntu:latest
replicas: 3
limits:
cpu: 16
memory: 64Gi
requests:
cpu: 16
memory: 64Gi
starRocksFeProxySpec:
replicas: 1
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
service:
type: NodePort # export fe proxy service
ports:
- name: http-port # fill the name from the fe proxy service ports
containerPort: 8080
nodePort: 30180 # The range of valid ports is 30000-32767
port: 8080
resolver: "kube-dns.kube-system.svc.cluster.local" # this is the default dns server.