Deploy a simple Node.js app to Kubernetes with a Deployment and Service, then validate pod health and traffic flow.
Practice deploying a real application instead of a generic demo container.
Use a containerized Node.js app ready for Kubernetes deployment.
Build or reuse a Node.js Docker image
Push it to a registry if needed
Document the image reference
Define the Deployment and Service resources.
Write deployment.yaml
Write service.yaml
Set image and port correctly
Apply manifests and verify workload health.
Run kubectl apply
Check pods and service
Inspect logs
Check rollout status
Prepare a Node.js container image.
Write Deployment and Service manifests.
Apply resources to the cluster.
Inspect pods, logs, and service.
Document deployment validation.
Pods reach Running state
Service is created successfully
Logs show application startup
The app is reachable through the chosen service method
Deployment YAML
Service YAML
README with deployment and validation steps
Shows you can deploy a real application workload to Kubernetes and validate it properly.
Wrong image reference
Mismatch between container port and service targetPort
Incorrect labels and selectors
Assuming deployment success without checking logs
Add readiness and liveness probes
Use ConfigMap and Secret
Expose the app through Ingress
Add Horizontal Pod Autoscaler