Categorygithub.com/stolostron/insights-client
repositorypackage
2.5.0-ACM+incompatible
Repository: https://github.com/stolostron/insights-client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

insights-client

Uses Red Hat Connected Customer Experience (CCX) to provide health check insights for all managed cluster (clusters have to be Openshift versioned >= 4.X). The insights-client will create a Custom Resource (PolicyReport) for each cluster that contains all Insight violations.

Development

  1. Install dependencies
    make deps
    
  2. Generate self-signed certificate for development
    sh setup.sh
    
  3. Log into your development cluster with oc login ....

    Alternative: set the KUBECONFIG environment variable to some other kubernetes config file.

  4. Run the program
    make run
    

Environment Variables

Control the behavior of this service with these environment variables.

NameRequiredDefault ValueDescription
HTTP_TIMEOUTno1800003 minute timeout to process a single requests
CCX_SERVERnohttp://localhost:8080/api/v1/clustersCCX server url (prod will use: https://cloud.redhat.com/api/insights-results-aggregator/v1)
CCX_TOKENnoNot setIf not set client will get cloud.openshift.com token from secret openshift-config
POLL_INTERVALno3030 minute default polling interval cloud.redhat.com
REQUEST_INTERVALno11 second Interval between 2 consecutive Insights requests
CACERTnoNot setUsed for dev & test ONLY

Rebuild: 2022-05-12