This is a simple api made with python and flask
Need to have minikube and terraform installed.
If you dont know how to install them , means that this repo is not intended to you.
Contain the Helm chart inlcuding the dummy-pdf app deployment
Contain terraform code to deploy the helm chart to minikube
Just run the deploy-terraform-minikube.sh script with one of the following parameters ( are self-explanatory)
- plan
- deploy
- destroy
deploy-terraform-minikube.sh plan
Simple approach is to run port-forward:
ex.
kubectl port-forward service/api 8081:8080
Go to localhost:8081 with one of the following endoints:
- /stat - status
- /[0-9] - accesing pdf file from other pod
On every commit pushed to thi repo on main branch , it will start a github action workflow which will:
- create a docker image
- scan the docker image with Trivy
- push image to dockerhub
- update helm chart values.yaml file with new docker image.