Skip to content
kubesphere-network-extension-operations logo

KubeSphere Network Extension Operations

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.

kubesphere/kubesphere0installs17.1Kstars

SKILL.md

Full skill instructions

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

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:

{
  "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:

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.

More skills from kubesphere

KubeSphere multi-tenant management Skill. Use when user requests to create users, workspaces, projects, or assign roles/permissions. Supports user lifecycle management, workspace configuration, project creation, role binding. Do not perform any delete operations, do not create custom roles.

17.1K 0
View
kubesphere-fluid logo
kubesphere/kubesphere

kubesphere-fluid

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.

17.1K 0
View
kubesphere-gateway-api logo
kubesphere/kubesphere

kubesphere-gateway-api

KubeSphere Gateway API extension management Skill (Traefik based, uses Kubernetes Gateway API + GatewayProxy CRD gatewayapi.kubesphere.io/v1alpha1). This is the newer Kubernetes Gateway API standard. For the older Ingress API based gateway (ingress-nginx + Gateway CRD gateway.kubesphere.io/v2alpha2), see the kubesphere-gateway skill instead. Covers installation, uninstallation, status checks, GatewayProxy status inspection, and troubleshooting.

17.1K 0
View
frontend-forge-fi-operations logo
kubesphere/kubesphere

frontend-forge-fi-operations

Operate FrontendIntegration resources and the frontend-forge extension. Use when Codex needs to create a FrontendIntegration from FrontendIntegration YAML, update or patch FI lifecycle state, inspect or troubleshoot FI build output, or create, enable, disable, uninstall, and inspect the frontend-forge extension through its InstallPlan and extension resources.

17.1K 0
View
kubesphere-extension-management logo
kubesphere/kubesphere

kubesphere-extension-management

KubeSphere extension management Skill. Use when user requests to install, configure, upgrade, uninstall extensions, or query extension info/troubleshoot issues. Includes extension discovery, dependency management, install configuration, version management.

17.1K 0
View
opensearch logo
kubesphere/kubesphere

opensearch

This skill handles OpenSearch deployment on KubeSphere for storing logs, events, auditing data, and notification history.

17.1K 0
View
whizard-telemetry-ruler logo
kubesphere/kubesphere

whizard-telemetry-ruler

This handles WizTelemetry Ruler setup and management in KubeSphere, focusing on alerting for events, audit logs, and container logs.

17.1K 0
View
kubesphere-cluster-management logo
kubesphere/kubesphere

kubesphere-cluster-management

KubeSphere cluster query Skill (read-only). Use when user requests to view cluster list, cluster status, cluster details, or cluster version info. Do not perform any write operations (create, delete, update). Use KubeSphere Console for management operations.

17.1K 0
View
whizard-notification logo
kubesphere/kubesphere

whizard-notification

This handles the notification layer for KubeSphere's observability stack, routing alerts from Prometheus, Kubernetes events, audit logs,...

17.1K 0
View
whizard-telemetry logo
kubesphere/kubesphere

whizard-telemetry

This is the foundation piece for KubeSphere's WizTelemetry observability stack.

17.1K 0
View
openpitrix logo
kubesphere/kubesphere

openpitrix

KubeSphere OpenPitrix application management Skill. Use when users ask about KubeSphere App Store, OpenPitrix, Helm/YAML application templates, application repositories, app versions, app releases, categories, review states, repository sync, or troubleshooting application installation and upgrade issues.

17.1K 0
View
kubesphere-devops-argocd logo
kubesphere/kubesphere

kubesphere-devops-argocd

Handles ArgoCD configuration within KubeSphere's DevOps platform, which bundles ArgoCD v2.11.7 for GitOps deployments.

17.1K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View