You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by li...@apache.org on 2026/03/30 04:33:36 UTC
(skywalking-banyandb-helm) 01/01: Shard lifecycle report volume between lifecycle and FODC agent
This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch fodc-lifecycle-shard
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-helm.git
commit 281d5d9477a266b73d644ff97974356bd3d54f69
Author: mrproliu <74...@qq.com>
AuthorDate: Mon Mar 30 12:33:23 2026 +0800
Shard lifecycle report volume between lifecycle and FODC agent
---
chart/templates/cluster_data_statefulset.yaml | 20 ++++++++++++++++++--
chart/templates/cluster_liaison_statefulset.yaml | 1 +
chart/templates/standalone_statefulset.yaml | 1 +
3 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/chart/templates/cluster_data_statefulset.yaml b/chart/templates/cluster_data_statefulset.yaml
index b7df673..18c04ef 100644
--- a/chart/templates/cluster_data_statefulset.yaml
+++ b/chart/templates/cluster_data_statefulset.yaml
@@ -315,6 +315,7 @@ spec:
- --container-names=data,lifecycle
- --poll-metrics-ports=2121,17915
- --cluster-state-ports=17912,17914
+ - --lifecycle-port=17912
- --poll-metrics-interval={{ $.Values.cluster.fodc.agent.config.pollMetricsInterval }}
- --cluster-state-poll-interval={{ $.Values.cluster.fodc.agent.config.pollClusterStateInterval }}
- --prometheus-listen-addr=:{{ $.Values.cluster.fodc.agent.metricsPort }}
@@ -352,6 +353,11 @@ spec:
{{- end }}
{{- end }}
{{- end }}
+ {{- if $roleConfig.lifecycleSidecar.enabled }}
+ volumeMounts:
+ - name: lifecycle-report-shared
+ mountPath: /tmp/lifecycle-reports
+ {{- end }}
{{- end }}
{{- if $roleConfig.backupSidecar.enabled }}
- name: backup
@@ -428,8 +434,9 @@ spec:
{{- if $roleConfig.lifecycleSidecar.reportDir }}
- "--report-dir={{ $roleConfig.lifecycleSidecar.reportDir }}"
{{- end }}
- {{- if $.Values.storage.data.enabled }}
+ {{- if or $.Values.storage.data.enabled $.Values.cluster.fodc.enabled }}
volumeMounts:
+ {{- if $.Values.storage.data.enabled }}
{{- range $claim := $.Values.storage.data.persistentVolumeClaims }}
{{- if eq $claim.nodeRole $roleName }}
{{- if $claim.existingClaimName }}
@@ -447,6 +454,11 @@ spec:
{{- end }}
{{- end }}
{{- end }}
+ {{- end }}
+ {{- if $.Values.cluster.fodc.enabled }}
+ - name: lifecycle-report-shared
+ mountPath: /tmp/lifecycle-reports
+ {{- end }}
{{- end }}
{{- with $roleConfig.lifecycleSidecar.resources }}
resources:
@@ -501,7 +513,7 @@ spec:
{{- end }}
{{- end }}
- {{- if or $roleConfig.tls $schemaClientTls.secretName $schemaServerTls.secretName $nodeDiscoveryFileMode }}
+ {{- if or $roleConfig.tls $schemaClientTls.secretName $schemaServerTls.secretName $nodeDiscoveryFileMode (and $roleConfig.lifecycleSidecar.enabled $.Values.cluster.fodc.enabled) }}
volumes:
{{- if $roleConfig.tls }}
{{- if $roleConfig.tls.grpcSecretName }}
@@ -533,6 +545,10 @@ spec:
- key: {{ include "banyandb.nodeDiscoveryFileKey" $ }}
path: nodes.yaml
{{- end }}
+ {{- if and $roleConfig.lifecycleSidecar.enabled $.Values.cluster.fodc.enabled }}
+ - name: lifecycle-report-shared
+ emptyDir: {}
+ {{- end }}
{{- end }}
{{- if $roleConfig.tolerations }}
diff --git a/chart/templates/cluster_liaison_statefulset.yaml b/chart/templates/cluster_liaison_statefulset.yaml
index 78c59eb..bed1a36 100644
--- a/chart/templates/cluster_liaison_statefulset.yaml
+++ b/chart/templates/cluster_liaison_statefulset.yaml
@@ -289,6 +289,7 @@ spec:
- --container-names=liaison
- --poll-metrics-ports=2121
- --cluster-state-ports=18912
+ - --lifecycle-port=18912
- --cluster-state-poll-interval={{ .Values.cluster.fodc.agent.config.pollClusterStateInterval }}
- --poll-metrics-interval={{ .Values.cluster.fodc.agent.config.pollMetricsInterval }}
- --prometheus-listen-addr=:{{ .Values.cluster.fodc.agent.metricsPort }}
diff --git a/chart/templates/standalone_statefulset.yaml b/chart/templates/standalone_statefulset.yaml
index 4935aa8..231c0b3 100644
--- a/chart/templates/standalone_statefulset.yaml
+++ b/chart/templates/standalone_statefulset.yaml
@@ -250,6 +250,7 @@ spec:
- --container-names=standalone
- --poll-metrics-ports=2121
- --cluster-state-ports=17912
+ - --lifecycle-port=17912
- --cluster-state-poll-interval={{ .Values.cluster.fodc.agent.config.pollClusterStateInterval }}
- --poll-metrics-interval={{ .Values.cluster.fodc.agent.config.pollMetricsInterval }}
- --prometheus-listen-addr=:{{ .Values.cluster.fodc.agent.metricsPort }}