KubeSphere Core

SkillDev tools

Lets your agent manage KubeSphere clusters, tenants, and extensions by routing requests to the right sub-skill.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the KubeSphere Core skill

About this capability

KubeSphere central controller Skill. Routes to specific Skills based on user requests: multi-cluster management (kubesphere-cluster-management), multi-tenant management (kubesphere-multi-tenant-management), extension management (kubesphere-extension-management). Also provides core architecture, API

What this skill tells your AI

The instructions your AI receives, as published by kubesphere/kubesphere in skills/kubesphere-core/SKILL.md and read by ahel’s review.

Overview

KubeSphere is a distributed operating system for cloud-native application management built on Kubernetes. Version 4.x adopts a microkernel + extension architecture (codename LuBan) where the core provides essential functions and independent functional modules are delivered as extensions.

Core Architecture

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                              KubeSphere Console                                                 │
│                                   (React-based Web UI + Extension Framework)                                    │
└────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────┘
                                                             │
┌────────────────────────────────────────────────────────────▼────────────────────────────────────────────────────┐
│                                            KubeSphere Core (LuBan)                                              │
│  ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐  │
│  │ Multi-Cluster     │ │ Multi-Tenant      │ │ K8s Resource      │ │ Extension         │ │ Application       │  │
│  │ Management        │ │ Management        │ │ Management        │ │ Management        │ │ Management        │  │
│  └───────────────────┘ └───────────────────┘ └───────────────────┘ └───────────────────┘ └───────────────────┘  │
└────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────┘
                                                             │
┌────────────────────────────────────────────────────────────▼────────────────────────────────────────────────────┐
│                                      Underlying Kubernetes Clusters                                             │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Core Components

ComponentDescription
ks-apiserverAPI aggregation layer. Acts as the central API entry point for KubeSphere, aggregating APIs from core services and extensions. Handles authentication, authorization, and multi-cluster API routing.
ks-controller-managerResource controllers. Manages the lifecycle of KubeSphere custom resources (workspaces, projects, users, etc.). Reconciles desired state and handles event-driven operations.
ks-consoleWeb UI. React-based console providing visual management interface for all KubeSphere capabilities. Supports extension framework for custom UI components.

API

API Path Prefixes

KubeSphere provides two main API path prefixes with different routing behaviors:

Path PrefixRouted ToUse Case
/apis/kube-apiserver on target clusterDirect Kubernetes CRUD operations
/kapis/KubeSphere API serverKubeSphere-specific APIs, workspace-scoped operations

Multi-Cluster API Routing

Use the /clusters/{cluster-name}/ prefix to forward requests to specific member clusters:

# Access member-1 cluster
/clusters/member-1/kapis/tenant.kubesphere.io/v1beta1/workspaces/demo/namespaces

API Script Usage

Use the ks_api.py script to make API calls. The script handles authentication automatically.

Prerequisites:

pip install requests
export KUBESPHERE_HOST="http://<kubesphere-host>"
python scripts/ks_api.py --login --username admin --password <password>

Usage:

# Get token info
python scripts/ks_api.py

# List resources (GET)
python scripts/ks_api.py GET /kapis/tenant.kubesphere.io/v1beta1/workspacetemplates

# Query specific cluster
python scripts/ks_api.py GET /clusters/member-1/kapis/tenant.kubesphere.io/v1beta1/namespaces

# Clear cached token
python scripts/ks_api.py --clear-cache

Skill Routing

kubesphere-core routes to specific Skills based on user requests.

SkillCapabilitiesRestrictions
kubesphere-coreArchitecture, API routing, API utilitiesNo management operations
kubesphere-cluster-managementMulti-cluster managementCluster operations
kubesphere-multi-tenant-managementCreate user/workspace/project, assign rolesNo delete, No custom roles
kubesphere-extension-managementExtension install/upgrade/uninstallExtension-related only

References

Signals

GitHub stars
17k
Forks
3k
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
kubesphere-core
Source
github.com/kubesphere/kubesphere