/devops-skills:multi-tenancyfrom devops-skills
Guides implementing Kubernetes multi-tenancy: namespace isolation, ResourceQuota, LimitRange, NetworkPolicy tenant boundaries, per-tenant RBAC, noisy-neighbor control, and soft vs hard tenancy decisions.
Ships in devops-skills. 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.
None: SKILL.md is the whole skill.
A namespace is an organizational boundary in the Kubernetes API, not a security or resource boundary by itself. Left alone, tenants in different namespaces on the same cluster can still see each other's Services via DNS, exhaust shared node capacity, and — depending on RBAC — read each other's resources entirely. Multi-tenancy is the work of turning that organizational boundary into an actual isolation boundary, one control at a time.
Decide up front how much isolation each tenant actually needs, because that decision changes everything downstream — quotas, network policy, and whether namespaces are even enough. Namespaces are the unit of ownership; isolation has to be built on top of them deliberately.
Soft multi-tenancy assumes tenants are mutually trusted (different teams in the same org) and namespaces plus quotas/RBAC are sufficient. Hard multi-tenancy assumes tenants are mutually untrusted (external customers, regulated separation requirements) and needs isolation namespaces can't provide alone — separate node pools, or separate clusters entirely, because a shared kernel and shared control plane are themselves an attack surface between untrusted tenants.
cost-optimization for that tradeoff once the isolation requirement is fixed.Done when: the tenancy model is written down as a decision (soft or hard) with the trust assumption that justifies it, not left implicit.
Without a ResourceQuota, one tenant's runaway Deployment can consume all schedulable capacity on shared nodes, starving every other tenant — this is the single most common multi-tenancy incident and it's entirely preventable with a quota set at namespace creation, not after the first incident.
apiVersion: v1
kind: ResourceQuota
metadata:
name: tenant-quota
namespace: team-a
spec:
hard:
requests.cpu: "20"
requests.memory: 40Gi
limits.cpu: "40"
pods: "50"
LimitRange so pods that specify no resources at all get sane per-container
defaults instead of being unbounded — a missing request in a quota-bound namespace fails to
schedule confusingly otherwise.Done when: every tenant namespace has both a ResourceQuota and a LimitRange applied before the first workload is deployed into it.
Kubernetes' flat pod network means, absent NetworkPolicy, every tenant can reach every other
tenant's pods by IP or Service DNS regardless of namespace boundaries. This is the same
default-deny pattern covered in kubernetes-networking, applied specifically per-tenant: each
tenant namespace gets a default-deny policy plus explicit allows only for its own traffic and
whatever shared platform services (ingress controller, DNS, observability agents) it legitimately
needs.
Done when: a pod in one tenant's namespace cannot reach a pod in another tenant's namespace except through an explicitly allowed, documented path.
Namespaced RBAC (Role + RoleBinding) keeps a tenant's permissions inside their own namespace, but cluster-scoped resources — CustomResourceDefinitions, StorageClasses, ClusterRoles, some CRD instances themselves — aren't namespace-bound and need a separate answer, usually a platform team owning them exclusively and tenants only referencing them, not modifying them.
ClusterRole bindings unless the resource genuinely requires cluster scope and
the tenant is trusted for it — this repeats the least-privilege rule from kubernetes-security
but is worth re-checking specifically at tenant onboarding time, since it's the easiest guardrail
to skip under time pressure.Done when: no tenant's service account or user role has cluster-scoped write access.
Quota bounds compute, but shared control-plane resources — API server request rate, etcd write throughput, DNS query volume — aren't covered by ResourceQuota at all, and one tenant's misbehaving controller or CRD watch loop can degrade the API server for everyone on the cluster.
kubectl responsiveness.operators-and-crds) doing excessive reconciles
— this is a common, easy-to-miss source of control-plane load in shared clusters.Done when: you've confirmed no single tenant's workload can degrade API server responsiveness for other tenants, either by APF configuration or by architectural separation.
State the tenancy model chosen (soft or hard) and the trust assumption behind it, the quota and LimitRange applied per tenant, the NetworkPolicy default-deny posture, and whether any tenant holds cluster-scoped RBAC. Call out any shared control-plane resource (API server, etcd, DNS) still unprotected against one tenant's excess load — naming that shared-fate risk is more useful than declaring tenants fully isolated.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.