Kubesphere Network Extension Operations logo

Kubesphere Network Extension Operations

OrganizationPopular
kubesphere
kubesphere-network-extension-operations

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.

Overview

Publisherkubesphere
Repositorykubesphere
Skill namekubesphere-network-extension-operations
Stars
17.1K
Forks
2.8K
Bundled files
7
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kubesphere on GitHub. Read the source before you install it.

Installation

Install the Kubesphere Network Extension Operations AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kubesphere/kubesphere.git /tmp/kubesphere
mkdir -p .claude/skills
cp -r /tmp/kubesphere/skills/kubesphere-network-extension-operations .claude/skills/kubesphere-network-extension-operations
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kubesphere Network Extension Operations in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kubesphere Network Extension Operations on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kubesphere Network Extension Operations is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

bash
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:
bash
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:
bash
kubectl get crd ippools.crd.projectcalico.org
  • Before any network isolation mutation, inspect one live object of the same type first:
bash
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:

yaml
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:

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

Prefer this inspection flow before install or upgrade:

bash
kubectl get extension network -o yaml
kubectl get extensionversion network-<exact-version> -o yaml
kubectl get installplan network -o yaml

IPPool Operations

Treat Calico IPPools as the CRUD source of truth:

  • Create, update, delete: /apis/crd.projectcalico.org/v1/ippools
  • IP usage and occupancy details:
    • /kapis/network.kubesphere.io/v1alpha2/ippools
    • /kapis/network.kubesphere.io/v1alpha2/ippools/{name}
  • Migration:
    • POST /kapis/network.kubesphere.io/v1alpha2/ippoolmigrations
    • GET /kapis/network.kubesphere.io/v1alpha2/ippools/{name}/migrate
  • Namespace available IPPools:
    • GET /kapis/network.kubesphere.io/v1alpha2/namespaces/{namespace}/ippools

Operational rules:

  • Do not recreate old KubeSphere-managed IPPool CRDs from network.kubesphere.io.
  • Before binding or unbinding a namespace to an IPPool, inspect a currently bound namespace and preserve the live label or annotation format already used by the cluster.
  • Before migrating an IPPool, inspect the source IPPool, bound namespaces, and current pod allocations first.
  • Use the examples in references/api_doc.md for bound-namespace and pod-occupancy query shapes instead of inventing new label selectors.

Suggested live inspection commands:

bash
kubectl get ippools.crd.projectcalico.org
kubectl get ippools.crd.projectcalico.org <ippool-name> -o yaml
kubectl get namespace <namespace-name> -o yaml
kubectl get pods -A -o wide

NetworkPolicy Operations

Cluster-Scope and Namespace-Scope Kubernetes NetworkPolicy

Use Kubernetes networking.k8s.io/v1 endpoints for standard NetworkPolicy CRUD:

  • List:
    • /kapis/networking.k8s.io/v1/networkpolicies
    • /kapis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies
  • Create:
    • POST /kapis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies
  • Delete:
    • DELETE /kapis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}

Workspace and Project Isolation

The bundled API document uses inconsistent prose for the annotation key: its status-check text mentions kubesphere.io/workspace-isolate, while its patch examples use kubesphere.io/network-isolate.

Follow this rule:

  • Inspect the live workspace or namespace annotations before patching.
  • Unless the live cluster proves otherwise, use the example payload key kubesphere.io/network-isolate: enabled.

Typical patch body:

json
{
  "metadata": {
    "annotations": {
      "kubesphere.io/network-isolate": "enabled"
    }
  }
}

Namespace-Level Network Isolation Policies

Use the KubeSphere API for project-specific isolation policies:

  • List:
    • GET /kapis/network.kubesphere.io/v1alpha1/namespaces/{namespace}/namespacenetworkpolicies
  • Create:
    • POST /kapis/network.kubesphere.io/v1alpha1/namespaces/{namespace}/namespacenetworkpolicies
  • Update:
    • PUT /kapis/network.kubesphere.io/v1alpha1/namespaces/{namespace}/namespacenetworkpolicies/{name}
  • Delete:
    • DELETE /kapis/network.kubesphere.io/v1alpha1/namespaces/{namespace}/namespacenetworkpolicies/{name}

When creating or filtering these policies, preserve these labels exactly:

  • kubesphere.io/policy-type=egress
  • kubesphere.io/policy-type=ingress
  • kubesphere.io/policy-traffic=inside
  • kubesphere.io/policy-traffic=outside

Troubleshooting

When the extension install or upgrade is stuck, gather state in this order:

bash
kubectl describe extension network
kubectl describe installplan network
kubectl get installplan network -o jsonpath='{.status.targetNamespace}{"\n"}'
kubectl get pods,svc -n <target-namespace>
kubectl get jobs -A | rg 'helm-upgrade-network|network'
kubectl get pods -n kubesphere-system

If the InstallPlan already points to a target namespace, inspect the Helm job pod logs and any extension pods in that namespace before changing manifests again.

Rules

  • Keep answers grounded in the bundled references and current live resource state.
  • Prefer exact version numbers and explicit resource reads over assumptions such as "latest" or "default" without verification.
  • Surface ambiguity when the copied docs and the live cluster object shape disagree.
  • Treat extension, installplan, Calico IPPools, and the live workspace or namespace objects as the source of truth.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Kubesphere Network Extension Operations AI skill do?

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.

Why use Kubesphere Network Extension Operations on TypingMind?

Because you install it once and use it with any model. Kubesphere Network Extension Operations is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kubesphere Network Extension Operations in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kubesphere/kubesphere/tree/master/skills/kubesphere-network-extension-operations. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Kubesphere Network Extension Operations?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kubesphere Network Extension Operations?

As many as you like. As long as a model supports skills, you can use Kubesphere Network Extension Operations with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kubesphere Network Extension Operations AI skill free?

It is published on GitHub by kubesphere. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇