This GitOps pipeline is designed to prepare, test, build, and deploy a Python application to Kubernetes.
- GitLab account and access to a repository
- Kubernetes cluster with kubectl installed
- Docker registry to push container images
- Fork this repository and clone it to your local machine.
- Update the gitlab-ci.yml file to include your Docker registry and Kubernetes configuration.
- Commit and push the changes to your forked repository.
- Set up a GitLab CI/CD pipeline for your repository and watch the pipeline execute.
- Prepare the Python environment and install dependencies.
- Test the code quality with pylint, isort, black, and unittest.
- Build a Docker image and push it to the specified Docker registry.
- Deploy the Docker image to Kubernetes.
- Generate a quality report and display deployment information.
If you have suggestions for how to improve this GitOps pipeline, please submit an issue or pull request.