Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

argocd

БесплатноБез исполняемых скриптовНе проверен

Argo CD is a declarative GitOps continuous delivery tool that keeps Kubernetes clusters in sync with manifests stored in Git. Use when a user asks to install…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub14 установок в других каталогах

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

Argo CD

Overview

Argo CD runs in the cluster, watches Git (or Helm) sources and compares the manifests with live resources. An Application links one source to one destination; ApplicationSet generates many Applications; AppProject limits which repos, clusters and namespaces a team may use. Drift is shown as OutOfSync and can be repaired automatically. This skill targets Argo CD 3.x (checked against v3.5.5).

Instructions

Installation

# Install Argo CD on Kubernetes (server-side apply: the ApplicationSet CRD is too large for client-side apply)
kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
# Production: pin a release instead of "stable", e.g. .../argo-cd/v3.5.5/manifests/install.yaml

# Install the CLI
brew install argocd
# Or download argocd-linux-amd64 from the GitHub release and check it against the release's cli_checksums.txt
# (sha256sum -c) before chmod +x and moving it onto your PATH.

# Initial admin password (delete the argocd-initial-admin-secret after changing it)
argocd admin initial-password -n argocd

# Login: through the API server, or straight to the cluster API with no server needed
argocd login argocd.novak-labs.dev --grpc-web
argocd login --core

Without an ingress, reach the UI and API with kubectl port-forward svc/argocd-server -n argocd 8080:443 and log in to localhost:8080 (add --insecure for the default self-signed certificate).

Application Definitions

# apps/web-app.yaml — Basic ArgoCD Application manifest
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: web-app
  namespace: argocd
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    repoURL: https://github.com/myorg/web-app.git
    targetRevision: main
    path: k8s/overlays/production
  destination:
    server: https://kubernetes.default.svc
    namespace: web-app
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - PrunePropagationPolicy=foreground
      - PruneLast=true
    retry:
      limit: 5
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
# apps/helm-app.yaml — Application using Helm chart source
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: monitoring
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://prometheus-community.github.io/helm-charts
    chart: kube-prometheus-stack
    targetRevision: 55.0.0
    helm:
      releaseName: monitoring
      valuesObject:
        grafana:
          enabled: true
        prometheus:
          prometheusSpec:
            retention: 30d
  destination:
    server: https://kubernetes.default.svc
    namespace: monitoring
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true

App of Apps Pattern

# apps/root-app.yaml — Root application that manages other apps
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: root-app
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/myorg/gitops-config.git
    targetRevision: main
    path: apps
  destination:
    server: https://kubernetes.default.svc
    namespace: argocd
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

ApplicationSet

# appsets/multi-cluster.yaml — Deploy to multiple clusters automatically
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: web-app-set
  namespace: argocd
spec:
  generators:
    - clusters:
        selector:
          matchLabels:
            environment: production
  template:
    metadata:
      name: "web-app-{{name}}"
    spec:
      project: default
      source:
        repoURL: https://github.com/myorg/web-app.git
        targetRevision: main
        path: k8s/overlays/production
      destination:
        server: "{{server}}"
        namespace: web-app
      syncPolicy:
        automated:
          prune: true
          selfHeal: true

Projects

# projects/team-a.yaml — ArgoCD project with RBAC restrictions
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
  name: team-a
  namespace: argocd
spec:
  description: "Team A applications"
  sourceRepos:
    - "https://github.com/myorg/team-a-*"
  destinations:
    - namespace: "team-a-*"
      server: https://kubernetes.default.svc
  clusterResourceWhitelist:
    - group: ""
      kind: Namespace
  roles:
    - name: developer
      policies:
        - p, proj:team-a:developer, applications, get, team-a/*, allow
        - p, proj:team-a:developer, applications, sync, team-a/*, allow
      groups:
        - team-a-devs

Sync Waves and Hooks

# k8s/namespace.yaml — Resource with sync wave annotation
apiVersion: v1
kind: N
Полный SKILL.md на GitHub

Установить argocd в Claude Code и Claude Desktop

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

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

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

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

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

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

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

_scores.json

FAQ

Что делает скилл argocd?

Argo CD is a declarative GitOps continuous delivery tool that keeps Kubernetes clusters in sync with manifests stored in Git. Use when a user asks to install Argo CD, define Application or ApplicationSet resources, configure sync policies and waves, restrict teams with AppProjects, roll back a deployment, or use the argocd CLI.

Как установить скилл argocd?

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

Скилл argocd запускает скрипты?

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

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

Сравнить argocd с