/kube-dc:manage-accessfrom kube-dc
Manages Kube-DC Organization Groups and Project RBAC. Creates OrganizationGroup resources to assign teams standard or custom roles in selected Projects.
Ships in kube-dc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Identity and workload authorization are separate:
User CRD.Use these exact names:
| Role | Intended access |
|---|---|
admin | Broad lifecycle access to supported Project resources and namespaced RBAC; controller-owned quota remains read-only |
developer | Manage supported workloads, volumes, Services, VMs, and managed services; no RBAC management |
project-manager | Read and monitor Project resources, use the VM console, and perform selected managed-security updates |
user | Read-only Project visibility without raw Secret or VM-console access |
No standard role grants pod exec, attach, port-forward, VM/VMI port-forward, or NetworkPolicy management. Platform admission also blocks pod exec and attach in Project backing namespaces, so a custom Role is not a bypass.
No standard role can patch or update a pod, so pod labels and annotations
cannot be changed in place (kubectl label pod is refused). Change the
Deployment's or StatefulSet's pod template instead, which rolls the pods, or
delete the pod and let its controller recreate it.
The resource belongs in the Organization API namespace. Each project value is
the Project name, not its backing namespace.
apiVersion: kube-dc.com/v1
kind: OrganizationGroup
metadata:
name: application-team
namespace: "{organization}"
spec:
permissions:
- project: production
roles:
- developer
- project: staging
roles:
- admin
Apply org-group-template.yaml:
kubectl -n {organization} get project production staging
kubectl apply -f organization-group.yaml
The controller creates the matching Keycloak group and a RoleBinding for every Project/role pair. Membership changes affect newly issued identity tokens; sign out and back in when a change must take effect immediately.
OrganizationGroup.status currently has no readiness conditions. Verify the
declared resource and generated RoleBindings instead:
kubectl -n {organization} get organizationgroup application-team -o yaml
kubectl -n {organization}-production get rolebinding -l group=application-team -o custom-columns='BINDING:.metadata.name,ROLE:.roleRef.name,SUBJECT:.subjects[0].name'
kubectl -n {organization}-staging get rolebinding -l group=application-team -o custom-columns='BINDING:.metadata.name,ROLE:.roleRef.name,SUBJECT:.subjects[0].name'
A standard binding is named {role}-{group} and its subject is the identity
group {organization}:{group}.
Edit spec.permissions declaratively:
kubectl -n {organization} edit organizationgroup application-team
The controller adds, updates, and removes generated RoleBindings. Deleting the OrganizationGroup removes its Keycloak group and its generated RoleBindings:
kubectl -n {organization} delete organizationgroup application-team
Use a custom namespaced Kubernetes Role when the four standard roles are too
broad. Create the Role in every target Project's backing namespace before
referencing its name in OrganizationGroup.spec.permissions[].roles. See
rbac-roles.md for an example.
Custom roles remain subject to Kube-DC admission policy and cannot grant
cluster-scoped access. An Organization Group binds a custom Role only if it
grants nothing beyond the four standard Project roles combined, and only while
the Role exists. Otherwise the binding is skipped and the OrganizationGroup gets
a RoleNotBindable warning event; check it with
kubectl describe organizationgroup <name>.
Organization administrators use Manage Organization > Users in the console to create or remove users, approve join requests, and assign groups. Do not try to model these operations with Kubernetes User resources.
If a group does not grant access:
kubectl -n {organization} get organizationgroup application-team -o yaml
kubectl -n {organization}-production get rolebinding -l group=application-team -o yaml
kubectl -n {organization}-production get role developer
Check that the Project names and role names match exactly. The controller skips a referenced Project that does not exist. After fixing the resource, sign out and sign in again so the user's token contains current group claims.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dc18 skills in this plugin
/check-quotaCheck Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage./create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache in a Kube-DC Project as a ManagedService, deliver its credential to workloads with a ServiceBinding Secret, and prepare backup and restore workflows./create-projectCreate a Kube-DC Project inside an existing Organization. Covers network selection, quota preflight, the Project manifest, and readiness verification./create-vmCreate a KubeVirt virtual machine in a Kube-DC Project using the live OS catalog, Project networking, supported storage, and the generated SSH keypair./deploy-appDeploy a containerized application to a Kube-DC Project as an Application (apps.kube-dc.com) or a plain workload, with optional persistent storage, a managed database, external exposure, or gated Shared GPU acceleration; set up keyless deploys, builds on push and pull request previews from a GitHub repository, with a managed container registry or the user's own; roll back, pause and inspect builds./deploy-web-stackDeploy a complete web application in a Kube-DC Project — a managed database (PostgreSQL, MySQL or MariaDB) with delivered credentials, an optional persistent volume, and an HTTPS hostname with a platform certificate through the shared Gateway, without a public IP. Use for WordPress, CMSs, APIs and any app that needs a database and a URL.Other plugins' skills for the same job