prerequisites: - kind (k8s cluster to deploy image and test it) - docker - python - modules to install: kubernetes, docker - helm
app folder
- contains the pizza app
helm folder
- contains the helm chart - deploys a service, namespace and a deployment
Dockerfile
- builds the docker images
automation.py
- runs the automation for the repo:
- runs unit tests
- builds the image
- pushes it to a repository
- creates a kind cluster if not exists already
- uninstall helm chart if existed on the cluster
- deploys the helm chart
- checks deployment is ready
- sends an api request to the pizza app
- tags the image as tested
- pushes the image with tested tag to a repository
- destroys the kind cluster
kindClusterConfig.yaml - a config being used when creating the kind cluster