Skip to content

support mountPoint on host for thinruntime - #4492

Merged
Syspretor merged 1 commit into
fluid-cloudnative:masterfrom
Syspretor:feature/support-hostvolume-mountpoint
Feb 18, 2025
Merged

support mountPoint on host for thinruntime#4492
Syspretor merged 1 commit into
fluid-cloudnative:masterfrom
Syspretor:feature/support-hostvolume-mountpoint

Conversation

@Syspretor

@Syspretor Syspretor commented Feb 11, 2025

Copy link
Copy Markdown
Collaborator

Currently, many storage products have not been adapted to cloud-native environments and only provide mounting clients suitable for traditional VM environments. In such scenarios, users can only manually mount on Kubernetes nodes and then mount to the Pod using HostPathVolume. For these users, to enable management of this type of mount through dataset orchestration, this PR introduces a fluid.fuse.hostvolume option in the dataset. This configuration will be converted into a hostVolume and related volumeMount of fuse pod in thinruntime, enabling the management of such mountPoints on HostPath through thinruntime. This approach allows users to leverage Fluid's features, such as fluid dataProcess and referenceDataset capabilities.

apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
  name: dataset-on-host
spec:
  mounts:
  - mountPoint: fsType://$fsId
    name: demo
    path: /
    options:
      fluid.fuse.hostvolume: /host-mountpoint

@Syspretor
Syspretor force-pushed the feature/support-hostvolume-mountpoint branch from a4a423f to 623152e Compare February 11, 2025 03:11
Comment thread pkg/common/dataset.go Outdated
Comment thread pkg/common/dataset.go Outdated
@Syspretor
Syspretor force-pushed the feature/support-hostvolume-mountpoint branch 5 times, most recently from 5157030 to 092c125 Compare February 12, 2025 05:53
Comment thread pkg/ddc/thin/transform_fuse.go
Comment thread pkg/ddc/thin/transform_fuse.go
Signed-off-by: jiuyu <guotongyu.gty@alibaba-inc.com>
@Syspretor
Syspretor force-pushed the feature/support-hostvolume-mountpoint branch from 092c125 to b47a3fb Compare February 18, 2025 07:49
@sonarqubecloud

Copy link
Copy Markdown

@cheyang cheyang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@fluid-e2e-bot

fluid-e2e-bot Bot commented Feb 18, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Syspretor
Syspretor merged commit f8cf228 into fluid-cloudnative:master Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants