rainbond icon indicating copy to clipboard operation
rainbond copied to clipboard

建议构建组件时[本地存储]可以指定节点及磁盘路径

Open cwq108 opened this issue 2 years ago • 5 comments

您的功能请求是否与问题有关?请描述 当构建的组件为 数据库,希望可以挂在到指定节点,的指定路径, 目前无法控制 本地存储 的所在节点

在此添加有关功能请求的任何其他上下文或屏幕截图。 image

cwq108 avatar Dec 08 '22 09:12 cwq108

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: It is recommended to specify the node and disk path when building components [local storage]

Is your feature request related to the issue? Please describe When the built component is a database, it is hoped that it can be linked to the specified node, the specified path, Currently unable to control the node where the local storage is located

Add any additional context or screenshots about the feature request here. image

Issues-translate-bot avatar Dec 08 '22 09:12 Issues-translate-bot

也许你可以在组件的其他设置-K8s属性中设置 nodeSelector ,选择需要调度到的节点。确认该组件调度到该节点后,再添加本地存储即可。

yangkaa avatar Dec 19 '22 02:12 yangkaa

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Maybe you can set nodeSelector in Other Settings-K8s Properties of the component to select the node to be dispatched to. After confirming that the component is dispatched to the node, add local storage.

Issues-translate-bot avatar Dec 19 '22 02:12 Issues-translate-bot

我是单节点运行的,然后储存类型为本地储存,我挂载在了/www/nodejs

真实落盘路径为/root/rainbonddata/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/196/fs/app/在这个目录下帮我创建了/www/nodejs文件夹,而不是系统根目录。

我写文件路径为/2.txt最终写在了/root/rainbonddata/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/196/fs/app/2.txt中,而不是我预想设置的系统根目录/www/nodejs

这种情况怎么解决?我想要读写系统根目录的/www/nodejs

DokiDoki1103 avatar Jul 13 '23 18:07 DokiDoki1103

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I am running on a single node, and the storage type is local storage, and I mounted it on /www/nodejs

The real placement path is /root/rainbonddata/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/196/fs/app/ in this directory to help me create `` `/www/nodejs``` folder, not the system root directory.

I wrote the file path as /2.txt and finally wrote it in /root/rainbonddata/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/196/fs/app /2.txt instead of the system root directory /www/nodejs I expected to set

How to solve this situation? I want to read and write /www/nodejs in the root directory of the system

Issues-translate-bot avatar Jul 13 '23 18:07 Issues-translate-bot