Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)17k · #10778

kubesphere-network-extension-operations

Skill này làm gì

Skill này giúp agent AI vận hành mở rộng mạng trong cụm KubeSphere. Skill dành cho người vận hành quản lý IP pool, chính sách mạng và cô lập giữa các workspace hoặc dự án.

Khi nào nên dùng

  • ✓Khi bạn muốn cài đặt, nâng cấp, bật hoặc tắt mở rộng mạng.
  • ✓Khi bạn cần tạo hoặc kiểm tra các IP pool Calico và cách chúng được gắn với namespace.
  • ✓Khi bạn cần thiết lập cô lập mạng cho một cụm, workspace hoặc dự án.

Liên kết skill

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-network-extension-operations/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-network-extension-operations/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra trạng thái mở rộng mạng và liệt kê các IP pool Calico được gắn với namespace staging của chúng tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc trạng thái trực tiếp của cụm bằng kubectl và các ghi chú tham khảo đi kèm. Sau đó nó điều chỉnh cài đặt hoặc liên kết IP pool, và đọc đối tượng trước khi thay đổi bất kỳ điều gì.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

KubeSphere Network Extension Operations

Operate the network extension and its related resources with kubectl plus the bundled references in this skill. Prefer the live cluster state first, then use the copied extension references here to resolve packaging details, API shapes, and product behavior.

When to Use

  • Install, upgrade, enable, disable, or inspect the network extension
  • Edit InstallPlan.spec.config for IPPool or NetworkPolicy feature toggles
  • Verify packaging details such as version, images, dependencies, or installation mode
  • Manage Calico IPPool resources, namespace bindings, occupancy, and migration flows
  • Manage cluster, workspace, or project network isolation behavior
  • Create, inspect, or troubleshoot Kubernetes NetworkPolicy and namespace-level network isolation policies

Do Not Use

  • Manage unrelated extensions
  • Assume deprecated network.kubesphere.io IPPool CRDs are still the CRUD source of truth
  • Assume a non-Calico IPPool backend; the extension values currently support only calico
  • Patch workspace, namespace, or IPPool binding metadata without reading the current live object first

Read First

Read only the references needed for the current request:

Useful rg patterns for the larger references:

rg -n "ippool|networkpol|isolate" skills/kubesphere-network-extension-operations/references/api_doc.md
rg -n "^  /(kapis|apis)/.*(ippool|networkpol)" skills/kubesphere-network-extension-operations/references/swagger.yaml

Fixed Facts

  • Extension name: network
  • InstallPlan name: network
  • Installation mode from packaging: Multicluster
  • Current packaged version in the copied reference: 1.3.0
  • Supported IPPool backend in values: global.ippool.type=calico
  • Main feature toggles:
    • global.ippool.enable
    • global.ippool.webhook
    • global.networkPolicy.enable

Workflow

  1. Read the matching bundled references for the request.
  2. Inspect the current live extension, InstallPlan, and relevant cluster resources.
  3. Apply the smallest change that satisfies the request.
  4. Re-read the changed resources and verify the post-change state.

Preflight Checks

  • kubectl must already be configured for the target cluster.
  • Before any mutation, confirm the live extension state:
kubectl get extension network
kubectl get installplan network -o yaml
kubectl get extensionversion.kubesphere.io -l kubesphere.io/extension-ref=network
  • Before any IPPool CRUD, confirm the Calico CRD exists:
kubectl get crd ippools.crd.projectcalico.org
  • Before any network isolation mutation, inspect one live object of the same type first:
kubectl get workspace <workspace-name> -o yaml
kubectl get namespace <namespace-name> -o yaml

Extension Management

Use fixed resource names:

  • extension: network
  • InstallPlan: network

When creating or updating an InstallPlan:

  • Use the exact version requested by the user.
  • Keep metadata.name and spec.extension.name both equal to network.
  • Use upgradeStrategy: Manual.
  • Add clusterScheduling only when the user explicitly needs agent placement in member clusters.
  • Omit spec.config unless the user asked for non-default settings.
  • On upgrade, inspect the current config first and remove or update any pinned old image tags. The bundled README warns that stale tags can block new images from being deployed.

Minimal default example:

apiVersion: kubesphere.io/v1alpha1
kind: InstallPlan
metadata:
  name: network
spec:
  enabled: true
  extension:
    name: network
    version: <exact-version>
  upgradeStrategy: Manual

Optional config snippet when the user asks to customize features:

config: |
  global:
    ippool:
      enable: true
      type: calico
      webhook: true
    networkPolicy:
      enable: true

Prefer this inspection flow before install or upgrade:

kubectl get extension network -o yaml
kubectl get ext
Câu hỏi thường gặp

Backend IP pool nào được hỗ trợ?

Skill nói mở rộng hiện chỉ hỗ trợ Calico cho IP pool.

Agent có thay đổi liên kết mà không kiểm tra không?

Không. Skill nói phải đọc đối tượng đang chạy hiện tại trước khi patch metadata của workspace, namespace hoặc pool.

Nó có thiết lập được chính sách mạng không?

Có. Nó bao gồm việc tạo và kiểm tra chính sách mạng Kubernetes và cô lập namespace.

Chi tiết

Mô tả gốc của tác giả

Operate the KubeSphere network extension. Use when Codex needs to install, upgrade, configure, enable, disable, or inspect the `network` extension; manage Calico `IPPool` resources, namespace bindings, migrations, or network isolation flows; or consult the bundled network extension references in this skill.

repo: kubesphere/kubesphere

Độ phổ biến

Sao GitHub
17k
Vị trí xếp hạng
#10778
Giấy phép
—
Cập nhật
14/7/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự