Category: Kubernetes, Docker, github, automation, ansible, bitbucket

In this post I am going to explain the creation of a simple Kubernetes Operator so that you can understand the main concepts behind it and what it is aimed for. Human operators who look after specific applications and services have deep knowledge of how the system ought to behave, how to deploy it, and how to react if there are problems.

With that in mind, it is very quick to go through many different Operator codes and understand what they are doing.

All right, now here we go, it is time for the hands-on so the idea is to create a simple CI/CD Operator where based on GitHub/Bitbucket repository information it will be able to get the source code, build the image, push it to docker registry and then deploy it on Kubernetes.

For the webhook to work we need to install Cert Manager on Kubernetes and set the environment property ENABLE_WEBHOOKS=true in the Dockerfile of the operator so that it can enable the webhook logic for the controllers.

Related Articles