ctritten / cnrm-headless-svc-operator

Operator that creates eponymous headless kubernetes services to config-connector resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cnrm-headless-svc-operator

Operator that creates eponymous headless kubernetes services to config-connector resources

This operator use shell-operator to sync Config Connector

This allow to create references in an application that will be stable accross environments.

For example, if you create a SQLInstance named mydb, in your application configuration file, you can use mydb as host instead of the SQLInstance IP.

By design we choose to operate on a single namespace, to limit the blast radius in case of an error. So you will have to deploy the operator in each namespace you want to operate.

This operator needs to be service and endpoint editor. It will have the ability to modify every services or endpoint in the namespace it will be deployed.

Only RedisInstance and SQLInstance are now supported.

Quickstart

kubectl apply -f https://raw.githubusercontent.com/pmialon/cnrm-headless-svc-operator/main/kustomize/install.yaml

See the created services:

kubectl get svc -l "kubectl get svc -l "app.kubernetes.io/managed-by=cnrm-headless-svc" -w

Build instructions

docker build -t "registry.mycompany.com/shell-operator:cnrm-headless-svc-operator" .
docker push "registry.mycompany.com/shell-operator:cnrm-headless-svc-operator"

About

Operator that creates eponymous headless kubernetes services to config-connector resources


Languages

Language:Shell 99.3%Language:Dockerfile 0.7%