This practical demonstrates the deployment, management, scaling, debugging, and modification of a containerized Apache web server using Kubernetes. The entire workflow is executed using CLI-based operations, providing hands-on experience with real-world container orchestration practices.
kubectl run apache-pod –image=httpd
kubectl get pods kubectl describe pod apache-pod
kubectl port-forward pod/apache-pod 8081:80
kubectl delete pod apache-pod
kubectl create deployment apache –image=httpd
kubectl get deployments kubectl get pods
kubectl expose deployment apache –port=80 –type=NodePort kubectl get svc
kubectl port-forward service/apache 8082:80
kubectl scale deployment apache –replicas=2 kubectl get pods
kubectl set image deployment/apache httpd=wrongimage kubectl get pods
kubectl set image deployment/apache httpd=httpd kubectl get pods
kubectl exec -it
kubectl delete pod
kubectl delete deployment apache kubectl delete service apache
This practical demonstrates key Kubernetes capabilities including deployment management, service exposure, scaling, debugging, and self-healing. It provides a strong foundation for understanding real-world container orchestration workflows and operational control over distributed applications.