Implementing CI/CD with GitOps
To implement a real-world CI/CD GitOps scenario, we need an application that no longer uses mocked data but instead utilizes concrete data.
In this section, we will expose a backend service for a weather application that fetches data from a real weather service, such as OpenWeatherMap (https://openweathermap.org/), to the public internet.
Given that the requirements for setting up our GitOps environment (installing a Kubernetes cluster and choosing your environment, verifying installation, and installing your GitOps tool) have already been met in the previous section of this chapter, the next step is to create a new GitHub repository. For example, you might create gitops-for-real-world
, with a directory named Step-01
. This directory will be used to add the code and files for subsequent steps.
Before proceeding, you need to create a free account with the OpenWeatherMap
service or another similar service of your choice. Services like these typically...