Command Palette

Search for a command to run...

Назад к скиллам
скилл № 48470

argocd-aks-cluster-registration

Register a private AKS cluster on a hub Argo CD with `argocd cluster add` in exec-provider form (argocd-k8s-auth azure, Entra workload identity, no…

БесплатноБез исполняемых скриптов
julianobarbosaот julianobarbosa★ 18 звёзд на GitHub

Установить argocd-aks-cluster-registration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

argocd-aks-cluster-registration

Gets a private AKS cluster from "not in Settings → Clusters" to "registered on the hub Argo CD with a secretless credential", and then to "an Application targets it by name". The hub's own workload identity is the credential, so nothing long-lived is stored and nothing is installed on the managed cluster.

Customization

Before executing, check for user customizations at: ~/.claude/lifeos/USER/CUSTOMIZATIONS/SKILLS/argocd-aks-cluster-registration/

If this directory exists, load and apply any PREFERENCES.md or Config found there (cluster and resource-group names, the Terraform output that carries the ids, the hub hostname, naming conventions). These override the placeholders in the workflows.

Voice Notification

When executing a workflow, do BOTH:

  1. Send voice notification:

    curl -s -X POST http://localhost:31337/notify \
      -H "Content-Type: application/json" \
      -d '{"message": "Running WORKFLOWNAME in argocd-aks-cluster-registration"}' \
      > /dev/null 2>&1 &
    
  2. Output text notification:

    Running **WorkflowName** in **argocd-aks-cluster-registration**...
    

Workflow Routing

Workflow Trigger File
RegisterCluster "add the cluster to ArgoCD", "argocd cluster add", "only in-cluster is listed", "register AKS on the hub" Workflows/RegisterCluster.md
TargetWorkload "deploy this app to the new cluster", "point the Application at it", "destination is in-cluster but should be the other cluster" Workflows/TargetWorkload.md

What done looks like

  • The cluster is listed by argocd cluster list under the agreed name, and its Secret holds an execProviderConfig and no bearerToken.
  • Exactly one cluster Secret exists for that API server URL.
  • The identity ids never appeared in the transcript, shell history, Git, or a pod spec.
  • The report says which claims were read live and which were not, and names the account each read ran as.
  • For a workload: the Application's destination is name: <cluster name>, its project allows that destination, and its first sync is a deliberate diff then sync.

The three ways to add a cluster

CLI, ServiceAccount token CLI, exec provider Declarative Secret
Command argocd cluster add <ctx> argocd cluster add <ctx> --exec-command … a Secret labelled argocd.argoproj.io/secret-type: cluster
Lands on the managed cluster ServiceAccount argocd-manager with cluster-level privileges nothing nothing
Stored credential long-lived bearer token none; a token is minted per call none; same as exec provider
In Git no no yes, when the Secret is produced from a vault or a manifest

The CLI decides between the first two by one flag: with --exec-command set it skips the ServiceAccount install entirely (cmd/argocd/commands/cluster.go, the switch before InstallClusterManagerRBAC). This skill uses the exec-provider form. The token form needs the principal's explicit decision, because it puts a standing cluster-admin token for the managed cluster on the hub.

Safety gates

  • Registering a cluster gives the hub the power to change it. Confirm the target cluster and the name with the principal before running argocd cluster add, and treat a production target as an auth change that is called out in whatever records the work.
  • One registration path per cluster. Before adding, list existing cluster Secrets and any Git-managed registration for the same server; if one exists, stop and ask which path wins.
  • Never print the client id or tenant id. Read them into a variable from their source of record and pass them by variable. Redact stderr of every vault call (see Gotchas).
  • argocd cluster rm while Applications target the cluster leaves them unable to reconcile. For a pause, annotate the Secret with argocd.argoproj.io/skip-reconcile=true instead.

Examples

Example 1: the cluster is missing from Settings → Clusters

User: "ArgoCD only shows in-cluster, we need the prd cluster there"
→ Invokes RegisterCluster
→ Preflight: federated credentials, role assignment, token mount, helper binary, DNS from the hub
→ argocd cluster add in exec-provider form, ids passed by variable
→ Reports the cluster list row, the Secret's shape, and what was not verified

Example 2: an Application deploys to the hub instead of the new cluster

User: "this app's destination is in-cluster, it should go to the new cluster"
→ Invokes TargetWorkload
→ Explains whether that Application is the registration itself (in-cluster is right) or a workload
→ Writes the project destination and the Application with destination.name, parked until its
  values have no open placeholders

Example 3: the cluster reads Unknown after a successful add

User: "it was added but the status is Unknown"
→ RegisterCluster, verification section
→ "Clu
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • Tools/.gitkeep
  • Workflows/RegisterCluster.md
  • Workflows/TargetWorkload.md

FAQ

Что делает скилл argocd-aks-cluster-registration?

Register a private AKS cluster on a hub Argo CD with `argocd cluster add` in exec-provider form (argocd-k8s-auth azure, Entra workload identity, no ServiceAccount token), prove the registration, then point a workload at it by destination name. USE WHEN add a cluster to ArgoCD, register AKS in ArgoCD, argocd cluster add, Settings Clusters only shows in-cluster, hub ArgoCD cannot see a cluster, deploy to another cluster from the hub, argocd-k8s-auth azure, cluster status Unknown. NOT FOR installing Argo CD, authoring the Terraform identity, or opening the PR (use ship).

Как установить скилл argocd-aks-cluster-registration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл argocd-aks-cluster-registration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить argocd-aks-cluster-registration с