Repository navigation
Expand file tree
/
Copy pathcmpd-compute.yaml
More file actions
92 lines (92 loc) · 2.97 KB
/
Copy pathcmpd-compute.yaml
File metadata and controls
92 lines (92 loc) · 2.97 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: apps.kubeblocks.io/v1
kind: ComponentDefinition
metadata:
name: {{ include "risingwave-compute.cmpdName" . }}
labels:
{{- include "risingwave.labels" . | nindent 4 }}
annotations:
{{- include "risingwave.annotations" . | nindent 4 }}
spec:
provider: Community
description: {{ .Chart.Description }}
serviceKind: risingwave
serviceVersion: {{ .Chart.AppVersion }}
services:
- name: default
spec:
ports:
- port: 5688
targetPort: svc
name: svc
- port: 1222
targetPort: metrics
name: metrics
configs:
{{- include "risingwave.conftpl.default" . | indent 4 }}
updateStrategy: BestEffortParallel
vars:
{{- include "risingwave.vars.connector" . | indent 4 }}
{{- include "risingwave.vars.meta" . | indent 4 }}
- name: RISINGWAVE_COMPUTE_COMPONENT_NAME
valueFrom:
componentVarRef:
optional: false
componentName: Required
- name: CLUSTER_NAMESPACE
valueFrom:
clusterVarRef:
namespace: Required
- name: CLUSTER_DOMAIN
value: {{ .Values.clusterDomain | quote }}
runtime:
containers:
- name: compute
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- include "risingwave.securityContext" . | indent 8 }}
command:
- /risingwave/bin/risingwave
- compute-node
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: RUST_BACKTRACE
value: "1"
- name: RW_CONFIG_PATH
value: /risingwave/config/risingwave.toml
- name: RW_LISTEN_ADDR
value: 0.0.0.0:5688
- name: POD_FQDN
value: $(POD_NAME).$(RISINGWAVE_COMPUTE_COMPONENT_NAME)-headless.$(CLUSTER_NAMESPACE).svc$(CLUSTER_DOMAIN)
- name: RW_ADVERTISE_ADDR
value: $(POD_FQDN):5688
- name: RW_META_ADDR
value: load-balance+http://$(META_SVC)-headless:5690
- name: RW_METRICS_LEVEL
value: "1"
- name: RW_CONNECTOR_RPC_ENDPOINT
value: $(CONNECTOR_SVC):50051
- name: RW_PROMETHEUS_LISTENER_ADDR
value: 0.0.0.0:1222
- name: RW_PARALLELISM
valueFrom:
resourceFieldRef:
containerName: compute
resource: limits.cpu
- name: RW_TOTAL_MEMORY_BYTES
valueFrom:
resourceFieldRef:
containerName: compute
resource: limits.memory
ports:
- containerPort: 5688
name: svc
protocol: TCP
- containerPort: 1222
name: metrics
protocol: TCP
volumeMounts:
{{- include "risingwave.volumeMount.conftpl.default" . | indent 10 }}
{{- include "risingwave.probe.liveness" . | indent 8 }}
{{- include "risingwave.probe.readiness" . | indent 8 }}