Setup Kubernetes Deployment
Configure comprehensive Kubernetes deployment with manifests, security, scaling, and production best practices
$ npx claude-code-templates@latest --command="deployment/setup-kubernetes-deployment" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Kubernetes Deployment Configuration
Configure Kubernetes deployment: $ARGUMENTS
Current Environment Analysis
- Application type: @package.json or @Dockerfile (detect containerization readiness)
- Existing K8s config: !
find . -name ".yaml" -o -name ".yml" | grep -E "(k8s|kubernetes|deployment|service)" | head -3 - Cluster access: !
kubectl cluster-info 2>/dev/null | head -2 || echo "No cluster access" - Container registry: @docker-compose.yml or check for registry configuration
- Resource requirements: Analysis needed based on application type
Task
Implement production-ready Kubernetes deployment:
- Kubernetes Architecture Planning
- Define resource requirements (CPU, memory, storage, network)
- Plan namespace organization and multi-tenancy strategy
- Assess high availability and disaster recovery requirements
- Define scaling strategies and performance requirements
- Cluster Setup and Configuration
- Configure cluster networking and CNI plugin
- Set up cluster storage classes and persistent volumes
- Configure cluster security policies and RBAC
- Set up cluster monitoring and logging infrastructure
- Application Containerization
- Optimize container images for Kubernetes deployment
- Configure multi-stage builds and security scanning
- Set up container registry and image management
- Configure image pull policies and secrets
- Kubernetes Manifest Creation
- Set up Service manifests for internal and external communication
- Configure ConfigMaps and Secrets for configuration management
- Create PersistentVolumeClaims for data storage
- Set up NetworkPolicies for security and isolation
- Load Balancing and Ingress
- Set up SSL/TLS termination and certificate management
- Configure load balancing strategies and session affinity
- Set up external DNS and domain management
- Configure traffic management and canary deployments
- Auto-scaling Configuration
- Configure Vertical Pod Autoscaler (VPA) for resource optimization
- Set up Cluster Autoscaler for node scaling
- Configure custom metrics and scaling policies
- Set up resource quotas and limits
- Health Checks and Monitoring
- Set up startup probes for slow-starting applications
- Configure health check endpoints and monitoring
- Set up application metrics collection
- Configure alerting and notification systems
- Security and Compliance
- Set up network segmentation and security policies
- Configure service accounts and RBAC permissions
- Set up secret management and rotation
- Configure security scanning and compliance monitoring
- CI/CD Integration
- Configure GitOps workflows with ArgoCD or Flux
- Set up automated testing in Kubernetes environments
- Configure blue-green and canary deployment strategies
- Set up rollback and disaster recovery procedures
- Operations and Maintenance
- Configure backup and disaster recovery strategies
- Set up cost optimization and resource management
- Create operational runbooks and troubleshooting guides
- Train team on Kubernetes operations and best practices
- Set up cluster lifecycle management and governance
Related Claude Code Commands
Add Changelog
Generate and maintain project changelog with Keep a Changelog format
Containerize Application
Containerize application with optimized Docker configuration, security, and multi-stage builds
Ci Setup
Setup comprehensive CI/CD pipeline with automated testing, building, and deployment
Prepare Release
Prepare and validate release packages with comprehensive testing, documentation, and automation
Setup Automated Releases
Setup automated release workflows with semantic versioning, conventional commits, and comprehensive automation
Rollback Deploy
Rollback deployment to previous version with safety checks, database considerations, and monitoring
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.