Nextjs k8s deploy

From NaveedTechLab/skills-library · View interactive version

Nextjs k8s deploy is an AI agent skill from the GitHub repository NaveedTechLab/skills-library. Containerize and deploy Next.js applications to Kubernetes. Use when Claude needs to create Dockerfiles, Kubernetes manifests, or Helm charts for Next.js applications. Dockerfile-driven builds, Kubernetes manifests or Helm only, no frontend feature design.

How to use this skill

Skill file

Next.js Kubernetes Deployment

This skill containerizes and deploys Next.js applications to Kubernetes. It generates a production-optimized multi-stage Dockerfile, Kubernetes Deployment/Service/Ingress manifests, and verifies the rollout — turning a Next.js codebase into a running Kubernetes service without manual YAML authoring.

Use this skill when you need to move a Next.js app from local development to a Kubernetes cluster.

Quick Start

# Deploy the Next.js app in the current directory
/nextjs-k8s-deploy namespace=frontend replicas=2 image_tag=v1.0.0

# Output files:
# - Dockerfile (multi-stage)
# - k8s/deployment.yaml
# - k8s/service.yaml
# - k8s/ingress.yaml
# Apply to cluster
kubectl apply -f k8s/
kubectl rollout status deployment/nextjs-app -n frontend

Key Features

Process

  1. Generate a production-ready Dockerfile
  2. Create Kubernetes manifests (Deployment, Service, Ingress)
  3. Apply the manifests to the cluster
  4. Verify deployment status before finishing

The deployment process is handled by supporting scripts that create and apply all manifests.

When NOT to Use This Skill

Common Mistakes

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.