跳到正文
Skillpedia
部署与云(DevOps)17k · #10762

frontend-forge-fe-operations

它能做什么

这个技能帮助 AI 智能体通过 kubectl 处理 KubeSphere 集群中的前端扩展。适合创建、重建、发布或排查前端扩展包的集群管理员。

适用场景

  • ✓当你需要创建或更新前端扩展并生成其安装包时。
  • ✓当前端扩展卡在打包或发布阶段(Packaging),并且你想找出原因时。
  • ✓当你需要发布、取消发布或删除扩展,并检查其状态时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/frontend-forge-fe-operations/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我们的前端扩展一直卡在 Packaging 状态。请帮我检查它的状态,并找出原因。”

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

工作原理

智能体使用 kubectl 在目标集群中读取扩展的状态、条件、任务和产物。然后它会按生命周期步骤进行重建、发布或取消发布,并检查结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Frontend Forge FE Operations

When to use

Use this skill for operational work around FrontendExtension resources:

  • Create or update an FE manifest
  • Trigger or inspect package generation
  • Force a rebuild with the rebuild-token annotation
  • Download the generated package artifact
  • Publish, unpublish, or delete an extension
  • Inspect FE status, conditions, labels, Jobs, artifact ConfigMaps, and publish targets
  • Debug FE package phases such as Packaging, Ready, and Failed, plus publish/unpublish phases such as Pending, Running, Succeeded, and Failed

If the task is about FrontendIntegration runtime JSBundle creation, use the FI operations skill instead. FE package/publish does not create a runtime JSBundle in the current cluster.

Quick Entry

  • Create or update FE -> read references/lifecycle.md
  • Rebuild package -> read references/lifecycle.md
  • Publish, unpublish, delete-with-unpublish, list through API, or download -> read references/api.md
  • Inspect package Job, artifact ConfigMap, publish Job, labels, or conditions -> read references/inspection.md
  • Debug stuck or failed state -> read references/inspection.md, then check controller logs

Preconditions

  • The current Kubernetes context is pointed at the target cluster.
  • The FE CRD exists: frontendextensions.frontend-forge.kubesphere.io.
  • The FE controller is installed, usually as the extension-controller component.
  • The FE API is installed when using download, publish, unpublish, or delete-with-unpublish HTTP operations.
  • The build service configured by BUILD_SERVICE_BASE_URL is reachable from package Jobs.
  • Publish target data exists when publishing, normally ConfigMap/ksbuilder-publish-config in extension-frontend-forge.

Source of truth

Prefer live cluster state for operations and repo docs for expected behavior:

  • kubectl get fe <name> -o yaml
  • kubectl get jobs -n <work-namespace> -l frontend-forge.kubesphere.io/fe-name=<name>
  • spec/frontend-extension-design.md
  • spec/crds.md
  • spec/k8s-resources.md
  • config/samples/frontendextension-inspecttask.yaml
  • crates/api/src/fe.rs
  • crates/frontend-extension-controller
  • crates/frontend-forge-extension-api

Resource Model

  • FrontendExtension
    • cluster-scoped
    • short name: fe
    • source object for package, artifact, download, publish, and unpublish state
  • Package Job
    • namespaced
    • default namespace: extension-frontend-forge
    • typical name: fe-<fe-name>-package-<artifact-key-12>-a<attempt>
  • Artifact ConfigMap
    • namespaced
    • default namespace: extension-frontend-forge
    • referenced by status.artifact.storage.ref
    • contains binaryData["package.tgz"], data["artifact.json"], and data["files.json"]
  • Publish or unpublish Job
    • namespaced
    • default namespace: extension-frontend-forge
    • typical names:
      • fe-<fe-name>-publish-<request-id-hash-short>
      • fe-<fe-name>-unpublish-<request-id-hash-short>
  • Publish target
    • ConfigMap or Secret
    • default chart target is usually ConfigMap/ksbuilder-publish-config in the release namespace

Default names and namespaces can change through Helm values and controller environment variables. Use FE status, Job labels, and controller deployment env vars before assuming defaults.

Common Commands

Inspect FE:

kubectl get fe <name> -o yaml
kubectl get fe <name> -o jsonpath='{.status}{"\n"}'
kubectl get fe <name> -o jsonpath='{.status.phase}{" "}{.status.publish.phase}{" "}{.status.unpublish.phase}{"\n"}'
kubectl get fe -l frontend-forge.kubesphere.io/package-state=ready
kubectl get fe -l frontend-forge.kubesphere.io/publish-state=published

Create or update:

kubectl apply -f <file.yaml>
kubectl apply -f config/samples/frontendextension-inspecttask.yaml

Find package Job and logs:

kubectl get fe <name> -o jsonpath='{.status.packageJob.namespace}{" "}{.status.packageJob.name}{"\n"}'
kubectl -n <job-namespace> get job <job-name> -o yaml
kubectl -n <job-namespace> logs job/<job-name>

Find artifact ConfigMap:

kubectl get fe <name> -o jsonpath='{.status.artifact.storage.ref.namespace}{" "}{.status.artifact.storage.ref.name}{" "}{.status.artifact.storage.key}{"\n"}'
kubectl -n <artifact-namespace> get cm <artifact-configmap-name> -o yaml

Force a rebuild:

kubectl annotate fe <name> frontend-forge.kubesphere.io/rebuild-token="$(date +%s)" --overwrite

Inspect publish or unpublish J

常见问题

智能体在哪个集群上工作?

它使用你的 kubectl 上下文所指向的集群,因此你应先确认该上下文。

这个技能会创建运行时包吗?

不会。该技能说明,打包和发布不会在当前集群中创建运行时包。

它能处理其他类型的扩展吗?

不能。对于 FrontendIntegration 资源,该技能会指引你使用单独的集成技能。

详情

作者的原始描述

Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download packages, publish, unpublish, delete, and debug package/publish controller behavior. Use this skill whenever the user mentions FE operations, FrontendExtension lifecycle, extension package/download/publish/unpublish, artifact ConfigMaps, package Jobs, publisher Jobs, publish target ConfigMaps or Secrets, rebuild-token, package-state/publish-state labels, or troubleshooting FE status in a Kubernetes cluster.

repo: kubesphere/kubesphere

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能