mcpField
M
managing-infra

managing-infra

github.com/julianobarbosaCloud & DevOps14114 installsUpdated 2d ago
Repository

About managing-infra

An infrastructure patterns skill for teams working with Kubernetes, Terraform, CI/CD, and containers. It helps select tools for common infrastructure tasks and includes security defaults, workflow patterns, templates, and operational caveats.

Key features

  1. 01Tool selection for infrastructure tasks
  2. 02Kubernetes security defaults
  3. 03GitHub Actions CI/CD patterns
  4. 04References and ready-to-use templates
  5. 05Operational gotchas for common tools

Use cases

  1. 01Choosing between Kustomize and Helm
  2. 02Planning Terraform cloud resource changes
  3. 03Building CI and multi-architecture releases
  4. 04Reviewing Kubernetes workload security

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/julianobarbosa/claude-code-skills --skill managing-infra

After installing, type/managing-infrain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

DOCKERFILE.md
GITHUB-ACTIONS.md
KUBERNETES.md
MAKEFILE.md
TERRAFORM.md
templates/
ci.yml
deployment.yaml
release.yml

Details

From the project README

Infrastructure Patterns

When to Use What

ToolUse For
Raw K8s YAMLSimple deployments, one-off resources
KustomizeEnvironment variations, overlays without templating
HelmComplex apps, third-party charts, heavy templating
TerraformCloud resources, infrastructure lifecycle
GitHub ActionsCI/CD, automated testing, releases
MakefileBuild automation, self-documenting targets
DockerfileContainer 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

Commands

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.

Comments

Markdown supported