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.
Works with
--- name: managing-infra description: 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. license: MIT --- # 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.
More Deployment & CI/CD skills
azure-enterprise-infra-planner
microsoft/azure-skills
Architect and provision enterprise Azure infrastructure from workload descriptions. For cloud architects and platform engineers planning networking, identity, security, compliance, and multi-resource topologies with WAF alignment. Generates Bicep or Terraform directly (no azd). WHEN: 'plan Azure infrastructure', 'architect Azure landing zone', 'design hub-spoke network', 'plan multi-region DR topology', 'set up VNets firewalls and private endpoints', 'subscription-scope Bicep deployment', 'Azure Backup for VM workloads'. PREFER azure-prepare FOR app-centric workflows.
azure-kubernetes-app-deploy
microsoft/azure-skills
Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.
finetuning
microsoft/azure-skills
Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

