This project demonstrates deploying a simple Flask web application to a Kubernetes cluster using minikube.
- Docker Desktop installed and running
- minikube installed
- kubectl installed
-
Start the minikube cluster: minikube start --driver=docker
-
Build the Flask Docker image: docker build -t myimage .
-
Apply the Kubernetes deployment and service: kubectl apply -f flask-deployment.yaml -f service.yaml
-
Port forward to access the app: kubectl port-forward service/my-flask-service 5000:5000
-
Access the running app at http://localhost:5000
kubectl delete deployment my-deployment kubectl delete service my-service minikube stop
- Configure CI/CD workflows