Application built with microservices that handles the process of selling and buying of tickets.
- Install Docker.
- Install WSL2.
- Enable Kubernetes in the Docker settings.
- Clone this repo inside WSL.
- Build and push projects that do not exist on DockerHub.
Each Dockerfile needs to be published to DockerHub for skaffold to work. Navigate to directories that contain a Dockerfile and run:
docker build -t <username>/<project_name> .
docker push <username>/<project_name>
The images must exist on DockerHub for skaffold to work.
- Install Nginx Ingress Controller.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
- Create a JWT_KEY environment variable required by microservices.
kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<secret_key>
- Install Skaffold with Chocolatey.
choco install skaffold
- Edit hosts file in C:/Windows/System32/Drivers/etc/ by adding this line at the end.
127.0.0.1 ticketing.com
- Finally, run
skaffold dev
in the ticketing directory.