Command Palette

Search for a command to run...

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

GitOps Patterns

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

ArgoCD ApplicationSets, progressive delivery, Harness GitX, and multi-cluster GitOps patterns

TheLobbiот TheLobbi★ 22 звезды на GitHub

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

GitOps Patterns Skill

When to Use This Skill

Use this skill when you need to:

  • Design ApplicationSet generators for multi-environment deployments
  • Implement progressive delivery strategies (canary, blue-green, A/B testing)
  • Configure Harness GitX for bi-directional Git synchronization
  • Set up sync policies and health assessment patterns
  • Design multi-cluster deployment architectures
  • Implement fleet management for Kubernetes clusters
  • Configure automated rollback and promotion strategies
  • Establish GitOps best practices for enterprise deployments

GitOps Pattern Capabilities

1. ApplicationSet Generators

ApplicationSets enable automated generation of multiple Applications from templates, supporting multi-environment and multi-cluster deployments.

List Generator: Static Environment Lists

Use Case: Fixed set of environments with explicit configuration per environment.

Pattern:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: multi-environment-app
  namespace: argocd
spec:
  generators:
    - list:
        elements:
          - environment: dev
            cluster: https://dev-cluster.example.com
            namespace: app-dev
            replicas: 1
            domain: dev.example.com
          - environment: staging
            cluster: https://staging-cluster.example.com
            namespace: app-staging
            replicas: 2
            domain: staging.example.com
          - environment: prod
            cluster: https://prod-cluster.example.com
            namespace: app-prod
            replicas: 5
            domain: example.com
  template:
    metadata:
      name: '{{environment}}-app'
    spec:
      project: default
      source:
        repoURL: https://github.com/org/app-manifests
        targetRevision: HEAD
        path: overlays/{{environment}}
        helm:
          parameters:
            - name: replicaCount
              value: '{{replicas}}'
            - name: ingress.host
              value: '{{domain}}'
      destination:
        server: '{{cluster}}'
        namespace: '{{namespace}}'
      syncPolicy:
        automated:
          prune: true
          selfHeal: true

Best For:

  • Small number of well-defined environments
  • Environment-specific configuration
  • Explicit control over deployment targets
  • Testing new environments before automation

Git Generator: Directory-Based Discovery

Use Case: Automatically discover applications from Git repository structure.

Pattern:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: git-directory-discovery
  namespace: argocd
spec:
  generators:
    - git:
        repoURL: https://github.com/org/kubernetes-manifests
        revision: HEAD
        directories:
          - path: apps/*
          - path: infrastructure/*
  template:
    metadata:
      name: '{{path.basename}}'
      labels:
        app-type: '{{path[0]}}'
    spec:
      project: default
      source:
        repoURL: https://github.com/org/kubernetes-manifests
        targetRevision: HEAD
        path: '{{path}}'
      destination:
        server: https://kubernetes.default.svc
        namespace: '{{path.basename}}'
      syncPolicy:
        automated:
          prune: true
          selfHeal: true
        syncOptions:
          - CreateNamespace=true

Directory Structure:

kubernetes-manifests/
├── apps/
│   ├── frontend/
│   │   └── kustomization.yaml
│   ├── backend/
│   │   └── kustomization.yaml
│   └── worker/
│       └── kustomization.yaml
└── infrastructure/
    ├── monitoring/
    │   └── kustomization.yaml
    └── logging/
        └── kustomization.yaml

Best For:

  • Microservices architectures with many applications
  • Self-service application onboarding
  • Standardized application structure
  • Reducing manual ApplicationSet management

Git Generator: File-Based Discovery

Use Case: Discover applications from JSON/YAML files with metadata.

Pattern:

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: git-file-discovery
  namespace: argocd
spec:
  generators:
    - git:
        repoURL: https://github.com/org/app-registry
        revision: HEAD
        files:
          - path: "apps/**/app.json"
  template:
    metadata:
      name: '{{app.name}}-{{environment}}'
      labels:
        team: '{{app.team}}'
        tier: '{{app.tier}}'
    spec:
      project: '{{app.project}}'
      source:
        repoURL: '{{app.repoUrl}}'
        targetRevision: '{{app.branch}}'
        path: '{{app.path}}'
        helm:
          valueFiles:
            - values-{{environment}}.yaml
      destination:
        server: '{{cluster.url}}'
        namespace: '{{app.namespace}}'
      syncPolicy:
        automated:
          prune: true
          selfHeal: true

Application Registry File (apps/frontend/app.json):

{
  "app": {
    "name": "frontend",
    "team": "platform",
    "tier": "p
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

Что делает скилл GitOps Patterns?

ArgoCD ApplicationSets, progressive delivery, Harness GitX, and multi-cluster GitOps patterns

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

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

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

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

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

Сравнить GitOps Patterns с