Managing Infra
Infrastructure patterns for Kubernetes, Terraform, Helm, Kustomize, and GitHub Actions. Use when making K8s architectural decisions, choosing between Helm vs Kustomize, structuring Terraform modules, writing CI/CD workflows, or applying security best practices.
MCP get_skill({ skillId: "managing-infra-9d556dc4" })Use this skill with your agent
Create a free account and connect via MCP
# Infrastructure Patterns ## When to Use What | Tool | Use For | | ------------------ | --------------------------------------------------- | | **Raw K8s YAML** | Simple deployments, one-off resources | | **Kustomize** | Environment variations, overlays without templating | | **Helm** | Complex apps, third-party charts, heavy templating | | **Terraform** | Cloud resources, infrastructure lifecycle | | **GitHub Actions** | CI/CD, automated testing, releases | | **Makefile** | Build automation, self-documenting targets | | **Dockerfile** | Container builds, multi-stage, multi-arch | ## Quick Decisions **Kustomize** when: Simple env differences, readable manifests, patching YAML **Helm** when: Complex templating, third-party charts, release management ## K8s Security Defaults Every workload: non-root user, read-only filesystem, no privilege escalation, dropped capabilities, network policies. ## GitHub Actions Patterns - **CI workflow**: Lint, test, compile on PRs (run on both x86 + ARM) - **Release workflow**: Multi-arch Docker build on tags (native ARM runners) - Pin actions by SHA, least-privilege permissions ## References - [KUBERNETES.md](KUBERNETES.md) - K8s resource patterns - [TERRAFORM.md](TERRAFORM.md) - Terraform module patterns - [GITHUB-ACTIONS.md](GITHUB-ACTIONS.md) - CI/CD workflow patterns - [MAKEFILE.md](MAKEFILE.md) - Build automation patterns - [DOCKERFILE.md](DOCKERFILE.md) - Container build patterns - [templates/](templates/) - Ready-to-use templates ## Commands ```bash kubectl apply -k ./ # Apply kustomize helm upgrade --install NAME . # Install/upgrade chart terraform plan && terraform apply ``` --- ## Gotchas - **Terraform state lock contention**: default 10-min lock timeout; bumped timeout doesn't help if the lock holder hung — force-unlock only after confirming the process is dead. - **Helm release name reuse on uninstalled-but-not-purged release** fails install with "already exists" — use `--no-hooks` + explicit purge, or never reuse names. - **Kustomize patches that match nothing silently produce empty diffs** — verify with `kustomize build` after every patch addition. - **Terraform `for_each` over a computed value forces apply-time count** — can cause spurious re-creation of resources between plans. - **`helm upgrade --install` on a changed values schema** can silently drop fields that no longer match — diff the rendered output, not just the values file. - **`kubectl apply --server-side` vs client-side conflicts** when both have been used: client-side last-applied-config can shadow server-side managed fields without error.
Related Skills
More skills in DevOps & Cloud
1password Skill
1password Skill linked from Juliano Barbosa Claude Code Skills, with the upstream skill instructions available on GitHub.
Actions Manager
GitHub Actions command center -- view workflow runs, read logs, re-run failed jobs, manage workflows, and debug CI failures entirely from the editor. Bypasses the deeply nested, visually-dependent Actions UI that is largely inaccessible to screen readers.
Airunway Aks Setup
Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
Alz Accelerator
Deploy Azure Landing Zones using the ALZ Accelerator with AVM (Azure Verified Modules). Use this skill whenever the user mentions Azure Landing Zones, ALZ, Azure landing zone accelerator, AVM modules for landing zones, deploying management groups, hub-and-spoke networking, Virtual WAN, platform landing zones, or asks about Bicep vs Terraform for Azure infrastructure. Also trigger when the user wants to bootstrap CI/CD for Azure platform deployment, set up management groups hierarchy, or deploy connectivity/identity/management platform subscriptions.
Alz Accelerator Skill
Alz Accelerator Skill linked from Juliano Barbosa Claude Code Skills, with the upstream skill instructions available on GitHub.
Ansible Conventions and Best Practices
Ansible conventions and best practices
Explore Other Categories
Skills from other categories with shared topics
Python Design Patterns
Python design patterns including KISS, Separation of Concerns, Single Responsibility, and composition over inheritance. Use when making architecture decisions, refactoring code structure, or evaluating when abstractions are appropriate.
Atuin
Shell history management with Atuin. Use when configuring shell history, setting up history sync, searching command history, importing history from other shells, troubleshooting atuin issues, or optimizing history workflows. Covers installation, sync setup, search modes, statistics, and self-hosting.
Azure Ad Sso
Azure AD OAuth2/OIDC SSO integration for Kubernetes applications. Use when implementing Single Sign-On, configuring Azure AD App Registrations, restricting access by groups, or integrating tools (DefectDojo, Grafana, ArgoCD, Harbor, SonarQube) with Azure AD authentication.