Skip to content

Commit 6c5b5ff

Browse files
hhhhsdxxxxHenry Huangclaudegaius-qi
authored
feat(seed-client): add storageHostPath support for dedicated physical machine deployments (#488)
* feat(seed-client): add storageHostPath support for dedicated physical machine deployments Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Henry Huang <henry.hj@antgroup.com> * feat: add persistence.hostPath for seed client Signed-off-by: Gaius <gaius.qi@gmail.com> --------- Signed-off-by: Henry Huang <henry.hj@antgroup.com> Signed-off-by: Gaius <gaius.qi@gmail.com> Co-authored-by: Henry Huang <henry.hj@antgroup.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Gaius <gaius.qi@gmail.com>
1 parent a046a0c commit 6c5b5ff

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

charts/dragonfly/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: dragonfly
33
description: Dragonfly is an intelligent P2P based image and file distribution system
44
icon: https://raw.githubusercontent.com/dragonflyoss/dragonfly/main/docs/images/logo/dragonfly.svg
55
type: application
6-
version: 1.6.20
6+
version: 1.6.21
77
appVersion: 2.4.3
88
keywords:
99
- dragonfly

charts/dragonfly/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ helm delete dragonfly --namespace dragonfly-system
586586
| seedClient.persistence.accessModes | list | `["ReadWriteOnce"]` | Persistence access modes. |
587587
| seedClient.persistence.annotations | object | `{}` | Persistence annotations. |
588588
| seedClient.persistence.enable | bool | `true` | Enable persistence for seed peer. |
589+
| seedClient.persistence.hostPath | object | `{}` | Use hostPath volume for persistence storage. When hostPath is configured, other persistence settings (such as size, accessModes, storageClass, etc.) will be ignored. |
589590
| seedClient.persistence.size | string | `"100Gi"` | Persistence persistence size. |
590591
| seedClient.podAnnotations | object | `{}` | Pod annotations. |
591592
| seedClient.podLabels | object | `{}` | Pod labels. |

charts/dragonfly/templates/seed-client/seed-client-statefulset.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,16 @@ spec:
150150
{{- if not (.Values.seedClient.persistence.enable) }}
151151
- name: storage
152152
emptyDir: {}
153+
{{- else if .Values.seedClient.persistence.hostPath }}
154+
- name: storage
155+
hostPath:
156+
path: {{ .Values.seedClient.persistence.hostPath.path }}
157+
type: {{ .Values.seedClient.persistence.hostPath.type | default "DirectoryOrCreate" }}
153158
{{- end }}
154159
{{- if .Values.seedClient.extraVolumes }}
155160
{{- toYaml .Values.seedClient.extraVolumes | nindent 6 }}
156161
{{- end }}
157-
{{- if .Values.seedClient.persistence.enable }}
162+
{{- if and .Values.seedClient.persistence.enable (not .Values.seedClient.persistence.hostPath) }}
158163
volumeClaimTemplates:
159164
- metadata:
160165
name: storage

charts/dragonfly/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,10 @@ seedClient:
789789
persistence:
790790
# -- Enable persistence for seed peer.
791791
enable: true
792+
# -- Use hostPath volume for persistence storage.
793+
# When hostPath is configured, other persistence settings
794+
# (such as size, accessModes, storageClass, etc.) will be ignored.
795+
hostPath: {}
792796
# -- Persistence annotations.
793797
annotations: {}
794798
# -- Persistence access modes.

0 commit comments

Comments
 (0)