pilotswarm-aks-identity
Skill14 starsChanged 8 months agoMITView on GitHub
Use when setting up cross-cluster AKS access with Workload Identity, RBAC, and kubectl configuration for PilotSwarm workers.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Prefer Azure Workload Identity on the control cluster instead of relying on node identity.
- Distinctive: line 37
When documenting or implementing this flow, include validation from inside a control-plane pod:
- Distinctive: line 63
verify with that kubeconfig:
- Distinctive: line 71
keep control-cluster and workload-cluster operations separate in docs and env vars
- Distinctive: line 72
prefer explicit namespaces and label selectors for log collection
- Very specific: line 73
prefer kubectl create secret generic ...
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PilotSwarm AKS Identity & Cross-Cluster Access
How to wire Workload Identity, RBAC, and kubectl when PilotSwarm workers in a control AKS cluster need to manage a second AKS cluster.
Cross-Cluster AKS Access Pattern
Prefer Azure Workload Identity on the control cluster instead of relying on node identity.
Required pieces:
- control cluster with OIDC issuer enabled
- control cluster with workload identity enabled
- user-assigned managed identity
- Kubernetes service account annotated with:
azure.workload.identity/client-id: <client-id>
- worker pods labeled with:
azure.workload.identity/use: "true"
- federated credential for:
- control-cluster OIDC issuer
- subject
system:serviceaccount:<namespace>:<service-account> - audience
api://AzureADTokenExchange
Minimum Azure RBAC usually needed:
Azure Kubernetes Service Cluster User Roleon the workload AKS clusterStorage Blob Data Contributoron the storage account
Validation Pattern
When documenting or implementing this flow, include validation from inside a control-plane pod:
- confirm
AZURE_CLIENT_ID,AZURE_TENANT_ID,AZURE_FEDERATED_TOKEN_FILE, andAZURE_AUTHORITY_HOST - log in with:
az login \
--service-principal \
-u "$AZURE_CLIENT_ID" \
-t "$AZURE_TENANT_ID" \
--federated-token "$(cat "$AZURE_FEDERATED_TOKEN_FILE")" \
--allow-no-subscriptions- fetch target-cluster kubeconfig:
az aks get-credentials \
--subscription "$AZURE_SUBSCRIPTION_ID" \
--resource-group "$AZURE_RESOURCE_GROUP" \
--name "$WORKLOAD_CLUSTER_NAME" \
--file /tmp/workload-kubeconfig \
--overwrite-existing- verify with that kubeconfig:
kubectl auth can-i create pods- a short-lived probe pod can be created and deleted
kubectl Guidance
- from a workstation or CI host, use
kubectl --context <cluster-context> - from inside a control-plane pod, use a temporary kubeconfig file
- keep control-cluster and workload-cluster operations separate in docs and env vars
- prefer explicit namespaces and label selectors for log collection
- prefer
kubectl create secret generic ... --from-env-file=...for worker env injection
In this repository50 other files it gives its agents.
- packages/sdk/examples/repo-workspaces/seed/home/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-repair-loopSkill
- duroxide-orchestration-versioningSkill
- editorial-standardsSkill
- finance-research-standardsSkill
- valuation-methodsSkill
- pilotswarm-architectureSkill
- deployment-safetySkill
- incident-responseSkill
- add-activitySkill
- add-eventSkill
- add-testSkill
- add-toolSkill
- agent-versioningSkill
- azure-ps-test-runner-vmSkill
- debug-orchestrationSkill
- debug-testSkill
- horizondb-idiosyncrasiesSkill
- horizon-facts-eval-sweepSkill
- investigate-duroxide-runtimeSkill
- pilotswarm-aks-deploySkill
- pilotswarm-aks-resetSkill
- pilotswarm-new-env-deploySkill
- pilotswarm-perfSkill
- pilotswarm-portal-app-regSkill
- pilotswarm-portal-auth-assignmentsSkill
- pilotswarm-releaseSkill
- pilotswarm-tuiSkill
- pilotswarm-vpn-client-profileSkill
- schema-migrationSkill
- notesSkill
- share-a-fileSkill
- cost-latency-analysisSkill
- graph-debugSkill
- orchestration-session-lifecycleSkill
- resourcemgrSkill
- sweeperSkill
- canvas-appsSkill
- html-visualsSkill
- pilotswarm-agent-versioningSkill
- pilotswarm-azure-deployerSkill
- pilotswarm-azure-lessonsSkill
- pilotswarm-cli-builderSkill
- pilotswarm-duroxide-versioningSkill
- pilotswarm-hybrid-datastoreSkill
- pilotswarm-knowledge-harvesterSkill
- pilotswarm-portal-builderSkill
- pilotswarm-sdk-builderSkill
- pilotswarm-three-tierSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

