This is a simple kubernetes voting app deployment that was discussed in the kodekloud.com for "Kubernetes for the Absolute Beginners - Hands-on" course.
- Install Oracle VM
- Install kubectl
- Install minikube
- Deploy the k8s deployment and services a. kubectl create -f voting-app-deploy.yaml b. kubectl create -f voting-app-service.yaml c. kubectl create -f redis-deploy.yaml d. kubectl create -f redis-service.yaml e. kubectl create -f postgres-deploy.yaml f. kubectl create -f postgres-service.yaml g. kubectl create -f result-app-deploy.yaml h. kubectl create -f result-app.service.yaml i. kubectl create -f worker-app-deploy.yaml
Execute kubectl get deploy,svc
Execute kubectl scale deployment --replicas=<instended #replicas>
Identify the URL: minikube service --url
If the intended deployment is for the cloud, modify the voting-app-service and result-app-service to use a service type of LoadBalancer instead of NodePort. This is true for any cloud platform such as GCP, AWS and Azure.