This is a demo project to show how to deploy a two tier application using a K8s cluster ( minikube )
- Minikube installed and running.
- Virtualization enabled in the host.
- Docker installed.
- Kubectl CLI installed.
- execute below command using Minikube. :
minikube start
- clone the github repo using :
git clone https://github.com/yadhugit/demoflask.git
- change directory k8s_resources/flaskapp :
cd demoflask/k8s_resources/flaskapp
- Execute deployment file inside the k8s_resources/flaskapp folder respectively using k8s.
kubectl create -f deployment-svc-conf.yaml
- change directory k8s_resources/mysql :
cd demoflask/k8s_resources/mysql
- Execute deployment file inside the k8s_resources/mysql folder respectively using k8s.
kubectl create -f mysql-deploy-svc-pv.yaml
will create flask app deployment, services in your PC
- Use below command to get your service url,
minikube service demoflask-service --url
and open url up your default browser.