Installation
Deploying the Operator
Clone the operator curator repository.
Currently, we have two versions of the curator operator.
version 1 (production branch) - Curator operator with basic features (Periodic Reports, Custom reports)
version 2 (operator-additional-features branch) - Curator with additional features (Mailing services, S3 backup Optional)
To build and deploy Operator you can use one of the two branches.
First, update a project/namespace in config/default/kustomization.yaml. This is where we are going to deploy Curator Operator.
Before running the operator, the CRD must be registered with the Kubernetes apiserver:
#cd curator-operator/ #switch to production or operator-additional-features branch #you can use quay.io or docker.io to build and push operator image make install make docker-build docker-push IMG=quay.io/<user-name>/<image-name> make deploy IMG=quay.io/<user-name>/<image-name>
The operator curator is running but is not doing any work. We need to create a CR.
Create below two custom resources
Uninstall a CustomResourceDefinition
#cd curator-operator/ make uninstallWhen you uninstall a CRD, the server will uninstall the RESTful API endpoint and delete all custom objects stored in it.
Undeploy the Operator
#cd curator-operator/ make undeployThe above command will delete everything including the project.