Skip to content

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

Notifications You must be signed in to change notification settings

pmialon/cnrm-headless-svc-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published