This Project runs a Voting web-app using Kubernetes Deployments and Services.
It uses Redis and Postgres as Database & Python and NodeJS for Frontend.
To run in local machine using Minikube
Install Minikube Kubectl and Docker
For Arch-Based:
- Use an AUR helper like yay or paru
yay -Syu minikube kubectl docker
- Secondly
sudo systemctl start docker
sudo usermod -aG docker $USER
- Lastly
minikube start --kubernetes-version=latest
For other distributions, you can install Docker and Kubectl using your package manager.
And for Minikube do the following:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start --kubernetes-version=latest
To deploy this project run the below command for each file:
kubectl apply -f <filename>
Or,
Put all the files in one folder and run:
kubectl apply -f <folder>