Skip to content

New Kubernetes Operator for easy setup and management of Microcks entities

License

Notifications You must be signed in to change notification settings

microcks/microcks-operator

microcks-operator

Kubernetes Operator for easy setup and management of Microcks installs and other entities (using Quarkus undercover 😉)

This Operator is meant to replace the existing microcks-ansible-operator that is kinda hard to maintain and to evolve.

GitHub Workflow Status Container License Project Chat

Installation

To Do once finalized

Usage

To Do once finalized

Build

The operator is made of 2 modules:

  • api contains the model for manipulating Custom Resources elements using Java,
  • operator contains the Kubernetes controller implementing the remediation logic. It is implemented in Quarkus.

Api module

Simply execute:

mvn clean install

Operator module

Produce a native container image with the name elements specified within the pom.xml:

mvn package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true

Local development

Be sure to be connected to a Kubernetes cluster first with a context set to a default namespace. From the operator/ folder, launch:

mvn quarkus:dev

The operator will generate and then install/update the latest version of the CRD and wait for reconciliation loop to be triggered.

From the deploy/ folder, create a new sample CRD using:

kubectl apply -f samples/microcks-microcks.io-v1alpha1.yml

You shall see the operator starting the reconciliation with a log like:

2023-03-24 15:43:34,969 INFO  [io.git.mic.ope.MicrocksReconciler] (ReconcilerExecutor-microcksreconciler-113) Starting reconcile operation for 'microcks' 

About

New Kubernetes Operator for easy setup and management of Microcks entities

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages