Requirements

To run Curator Operator, the users are expected to meet the prerequisites listed below.

Prerequisite

Admin access to OpenShift 4.5+

Currently, we are using Operator-SDK v1.17.0, Go v1.17.6, Postgres v13.4, and koku-metrics-operator v1.1.7

Install Koku Metrics Operator

  • You need to install koku-metrics-operator either via operator-hub or command line.

  • We are currently using koku-metrics-operator version 1.1.7 with koku-metric config specified here.

  • Run koku-metrics-operator config

    #Documentation/kokumetris-cfg.yaml
    $ oc apply -f Documentation/kokumetris-cfg.yaml
    

Install PostgreSQL Image

  • Need to have Postgres database up and running in a cluster to store all information.

  • We are currently using Postgres version 13.4 and config file specified sample.

Create database secrets

  • First, create project/namespace using below command or web console

    $ oc new-project <project_name>
    
  • We need to create base64 encoded database secrets. To encode a string to base64 from the command-line use the below command

    $ echo -n "curator" | base64
    
  • For creating secrets run below commmand. Sample file is here.

    #Documentation/db-secret-file.yaml
    $ oc apply -f Documentation/db-secret-file.yaml