跳到正文
Skillpedia
数据库17k · #10774

kubesphere-fluid

它能做什么

这个技能帮助 AI 智能体管理 Fluid,这是一款面向 KubeSphere 的数据缓存扩展。适合希望在集群内更快访问大型数据集的平台和数据团队。

适用场景

  • ✓当你想在 KubeSphere 中安装或升级 Fluid 扩展时。
  • ✓当你需要为一组文件创建数据集和缓存运行时时。
  • ✓当你希望在任务运行前预热数据集的缓存,或调整其运行时规模时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-fluid/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-fluid/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我设置 Fluid,让我们的训练数据集在集群中缓存,并在任务开始前预热缓存。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会安装或检查 Fluid 扩展,然后编写包含挂载设置的数据集和运行时清单。它可以运行数据加载来预热缓存,并检查 Pod 和日志。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

KubeSphere Fluid Management

Use this skill for the full Fluid lifecycle in KubeSphere:

  • Install or upgrade the Fluid extension through InstallPlan
  • Query extension status, CRDs, Pods, and logs
  • Generate Dataset manifests with mount configuration
  • Generate AlluxioRuntime, JuiceFSRuntime, or ThinRuntime manifests for caching
  • Perform DataLoad for cache warming
  • Scale runtime replicas
  • Uninstall the Fluid extension
  • Troubleshoot Fluid Pods, CRDs, and mount issues

Out of scope by default:

  • Advanced Fluid operations not requested by the user, such as DataBackup or GooseFS
  • Deep tiered storage configuration without user requirements

If the user explicitly asks for those, acknowledge that they are Fluid capabilities but treat them as a follow-up task.

Response Rules

  • Prefer executable output: InstallPlan YAML, Dataset YAML, AlluxioRuntime YAML, kubectl commands, or a short ordered procedure.
  • Verify the extension name and exact version before generating a final InstallPlan.
  • Default the extension name to fluid only if the user context or cluster output does not expose a different resource name.
  • Use upgradeStrategy: Manual unless the user explicitly asks for something else.
  • Omit optional fields instead of guessing values.
  • Before generating Dataset or Runtime, prefer checking the installed API versions:
kubectl api-resources --api-group data.fluid.io
  • If the cluster version is unknown and the user only wants an example, use:
    • Dataset: data.fluid.io/v1alpha1
    • AlluxioRuntime: data.fluid.io/v1alpha1
    • JuiceFSRuntime: data.fluid.io/v1alpha1
    • ThinRuntime: data.fluid.io/v1alpha1
  • For uninstall requests, warn that deleting CRDs or CR instances can remove application configuration.

CRITICAL: Parameter Handling

ALWAYS use the exact values provided by the user. Never substitute or guess values.

When generating YAML manifests:

Parameter Rule
name MUST use user's value exactly
namespace MUST use user's value exactly
mountPoint MUST use user's value exactly (e.g., s3://bucket, oss://bucket, pvc://, https://)
replicas MUST use user's value exactly
quota MUST use user's value exactly
mediumType Use user's value, default to MEM if not specified
path Use user's value, default to /dev/shm if not specified

WRONG: Using pvc:// when user specified s3://mybucket/spark-data RIGHT: Using exactly what user provided: s3://mybucket/spark-data

CRITICAL: Operation Scope

Each operation has a specific scope. Do NOT create additional resources unless user explicitly asks.

User Request Output Scope
"Create Dataset" Only Dataset YAML
"Create AlluxioRuntime" Only AlluxioRuntime YAML (NOT Dataset)
"Create JuiceFSRuntime" Only JuiceFSRuntime YAML (NOT Dataset)
"Create ThinRuntime" Only ThinRuntime YAML (NOT Dataset)
"Create Dataset with Runtime" Both Dataset + Runtime YAML
"Create DataLoad" Only DataLoad YAML

Example:

  • User says: "Create an AlluxioRuntime" → Output ONLY AlluxioRuntime YAML
  • User says: "Create a Dataset with AlluxioRuntime" → Output both Dataset and AlluxioRuntime YAML

Version Mapping Discovery

When the user asks for precision, prove the version mapping first:

# Discover KubeSphere extension version
kubectl get extensionversions.kubesphere.io -l kubesphere.io/extension-ref=fluid
kubectl get extensionversion fluid-<version> -o yaml

# Discover Fluid runtime image or controller version
kubectl get pods -n fluid-system -o wide
kubectl get deploy -n fluid-system alluxio-runtime-controller -o jsonpath='{.spec.template.spec.containers[*].image}'
kubectl describe pod -n fluid-system <fluid-pod>

If these commands disagree with assumed mappings, prefer cluster output over defaults.

Discovery Commands

This section provides three approaches for querying Fluid status:

  1. KubeSphere API (curl) - for extension management and multi-cluster queries
  2. kubectl - for direct Kubernetes resource operations
  3. ksctl CLI - KubeSphere command-line tool

Option 1: Using KubeSphere API (curl)

Use curl with environment variables for querying KubeSphere extension status and multi-cluster resources.

Environment Variables:

export KS_HOST="http://<kubesphere-host>"     # KubeSphere console URL (required)
export KS_USERNAME="admin"      
常见问题

该技能涵盖哪些运行时?

涵盖用于缓存的 Alluxio、JuiceFS 和 Thin 运行时。

智能体会猜测运行时设置吗?

它会省略可选字段,而不是猜测,并且会先检查已安装的 API 版本。

包含高级功能吗?

默认不包含。数据备份等功能会被视为后续任务,除非你特别要求。

详情

作者的原始描述

KubeSphere Fluid management Skill. Use when user asks to install or enable Fluid, check Fluid status, view Fluid pods/logs/CRDs, create or update Dataset, AlluxioRuntime, JuiceFSRuntime, or ThinRuntime, perform DataLoad or cache warming, scale runtime, or troubleshoot Fluid issues in KubeSphere.

repo: kubesphere/kubesphere

热度

GitHub 星标
17k
排名
#10774
许可证
—
更新时间
2026/7/14

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能