मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)17k · #10777

kubesphere-multi-tenant-management

यह क्या करती है

यह स्किल AI एजेंट को KubeSphere में tenants सेट करने में मदद करती है, जिसमें उपयोगकर्ता, workspaces, projects और role bindings शामिल हैं। यह उन एडमिनिस्ट्रेटरों के लिए है जो साझा क्लस्टर में तय करते हैं कि कौन किस चीज़ तक पहुँच सकता है।

कब इस्तेमाल करें

  • ✓जब आपको बुनियादी भूमिका के साथ KubeSphere में नया उपयोगकर्ता जोड़ना हो।
  • ✓जब किसी नई टीम को सही सदस्यों के साथ workspace या project चाहिए।
  • ✓जब आप किसी व्यक्ति को ज़रूरी सबसे निचले स्तर की project पहुँच देना चाहते हैं।

Skill का लिंक

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-multi-tenant-management/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-multi-tenant-management/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मारिया के लिए एक नया उपयोगकर्ता बनाइए जिसकी सामान्य पहुँच हो, और उसे marketing workspace में सामान्य सदस्य के रूप में आमंत्रित कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट उपयोगकर्ता, workspace या project बनाता या पढ़ता है, फिर मेल खाती अंतर्निहित भूमिका बाँधता है। वह सबसे कम पहुँच स्तर से शुरू करता है और केवल आपके माँगने पर उसे बढ़ाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

KubeSphere Multi-Tenant Management

Security Guidelines

  1. Never use kubectl edit/delete - Do NOT use kubectl edit, kubectl delete, or similar commands to modify or delete workspaces, projects, users, roles, or role bindings. These operations are sensitive and should be performed via KubeSphere Console with proper approval workflow.

  2. Never perform delete operations via API - Do NOT delete users, workspaces, projects, roles, or role bindings via API. These operations must be performed manually via KubeSphere Console with proper approval workflow. Only use this skill for creating and querying resources.

  3. Never create custom roles - Do NOT create custom roles (Role, WorkspaceRole, GlobalRole). Only use built-in roles provided by KubeSphere. If custom permissions are needed, instruct the user to configure them via KubeSphere Console.

  4. Default to least privilege - When creating users or assigning permissions, always use the minimum required access level:

    • New user creation: default to platform-regular (not platform-admin)
    • Inviting user to workspace: default to <workspace-name>-regular (not admin)
    • Inviting user to project: default to viewer (not admin)
    • Only escalate permissions when explicitly requested

Core Concepts

Workspace

The top-level organizational unit in KubeSphere, representing a team, department, or business unit. A workspace can contain multiple projects and serves as the basic boundary for resource grouping and access control. Workspaces can span multiple clusters, enabling centralized management of resources distributed across different clusters.

Project

KubeSphere's enhanced Kubernetes namespace, representing a specific application, environment, or workload within a workspace. Each project maps to a separate namespace.

User & Role

  • User: KubeSphere account entity, can be platform admin, workspace member, or project member
  • Role: Permission set defined in KubeSphere's three-tier RBAC:

Project Roles (roles.iam.kubesphere.io):

  • admin: Full access to all resources
  • operator: Create/update/delete resources, cannot manage roles
  • viewer: Read-only access

Workspace Roles (WorkspaceRole, workspaceroles.iam.kubesphere.io):

  • <workspace-name>-admin: Full access to workspace and all projects
  • <workspace-name>-regular: Limited workspace access
  • <workspace-name>-self-provisioner: Create projects in workspace
  • <workspace-name>-viewer: Read-only access to workspace

Platform Roles (GlobalRole, globalroles.iam.kubesphere.io):

  • platform-admin: Full access to all resources
  • platform-regular: Limited platform access
  • platform-self-provisioner: Can create workspaces

Role Binding (KubeSphere API endpoints, binds roles to Users):

  • Project-level: /namespacemembers API, binds roles.iam.kubesphere.io to User
  • Workspace-level: /workspacemembers API, binds workspaceroles.iam.kubesphere.io to User
  • Platform-level: /users/<username> API, binds globalroles.iam.kubesphere.io to User via annotation

Step-by-Step Guide

Prerequisites

Set up authentication using the provided CLI tool. First, navigate to the scripts directory:

# Navigate to the skill's scripts directory
# Example path (replace with your actual kubesphere-skills location):
cd ~/kubesphere-skills/core/kubesphere-core/scripts

# Install required Python package
pip install requests


# Set host endpoint (optional, defaults to http://ks-apiserver.kubesphere-system)
export KUBESPHERE_HOST="http://<kubesphere-host>"

# Login to get token (token will be cached)
python ks_api.py --login --username admin --password <your-password>

# Token is cached in ~/.kubesphere_token and auto-refreshed

# Optional: Clear cached token
python ks_api.py --clear-cache

1. Create Workspace

Required parameters:

  • workspace-name: Name for the workspace (maps to metadata.name)
  • manager: Workspace manager (maps to spec.template.spec.manager, default to current login user)
  • creator: Creator name (maps to metadata.annotations["kubesphere.io/creator"])
  • clusters: List of cluster names to host this workspace (maps to spec.placement.clusters)
# Create workspace via Python CLI
python ks_api.py POST /kapis/tenant.kubesphere.io/v1beta1/workspacetemplates '{
  "apiVersion": "iam.kubesphere.io/v1beta1",
  "kind": "WorkspaceTemplate",
  "metadata": {
    "name": "<workspace-name>",
    "annotation
अक्सर पूछे जाने वाले सवाल

क्या एजेंट उपयोगकर्ता या projects मिटा सकता है?

नहीं। स्किल कहती है कि हटाने के काम KubeSphere कंसोल में हाथ से करने होंगे।

क्या यह कस्टम भूमिकाएँ बना सकती है?

नहीं। यह केवल अंतर्निहित भूमिकाएँ इस्तेमाल करती है, और कस्टम भूमिकाएँ कंसोल में सेट करनी चाहिए।

डिफ़ॉल्ट पहुँच स्तर क्या है?

डिफ़ॉल्ट रूप से न्यूनतम पहुँच, जैसे नए उपयोगकर्ता के लिए regular और project के लिए viewer।

जानकारी

लेखक का मूल विवरण

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.

repo: kubesphere/kubesphere

लोकप्रियता

GitHub स्टार
17k
रैंकिंग में स्थान
#10777
लाइसेंस
—
अपडेट की गई
14/7/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills