After this part you will be able to:
After you set up your Kubernetes cluster and control repository it is now time to deploy the first Building Block.
As the Building Blocks are heavily optimized for production-ready environments, their interdependencies come naturally.
One of the core dependencies is the Observability Building Block. It ensures that following Building Blocks integrate automatically into your environment and can be added to your Monitoring and Logging seamlessly.
This Step will be explained by using the bash shell in unix like environments,
so we have a single window to work with. Please adapt to your needs accordingly.
As MetaKube Accelerator focuses on DevOps people, we expect you to have enough experience to work with the common tool set for administration tasks on unix.
Furthermore, we will use "syseleven" as Project and Company name, "showcase" as our control repository name as well as "development" as our environment.
Please configure this accordingly.
If you haven't done it already, clone your control repository and add a suitable folder for the incoming building block:
# Make sure you are in a suitable directory for a new folder, clone your own control-repository
git clone firstname.lastname@example.org:/syseleven/showcase
# When listing the files you should see the .gitlab-ci.yml you created on the previous step, e.g.
# -rw-r--r-- 1 user staff 1647 8 Feb 16:27 .gitlab-ci.yml
.gitlab-ci.yml to this folder with the following content to include the JobDevelopment.yaml which includes the best practices for a development environment:
- project: syseleven/building-blocks/helmfiles/kube-prometheus-stack
values-kube-prometheus-stack.yaml with the following content to specify all global settings:
Now include environment-specific settings in
After adding all these file your control repo should look like this:
Finally, you can include the
.gitlab-ci.yml from your syseleven-kube-prometheus-stack to your CI/CD pipeline.
.gitlab-ci.yml in your root folder of your project workspace should now look like this:
Now you can commit your changes and your pipeline will start testing and deploying your Building Block.
git add .
git commit -m "add kube-prometheus-stack as building block"
and watch the output of your pipeline on SysEleven Code!