Skip to content

Instantly share code, notes, and snippets.

@dmc5179
Last active April 30, 2026 00:18
Show Gist options
  • Select an option

  • Save dmc5179/b18721a1d52cf9e270bdcdedda3e4f5a to your computer and use it in GitHub Desktop.

Select an option

Save dmc5179/b18721a1d52cf9e270bdcdedda3e4f5a to your computer and use it in GitHub Desktop.
Insights Cost Explorer On Prem Mirror Config

Disconnected Cost Explorer

Dependencies

Things to bring with

Deploying Keycloak

  • Not required
scripts/deploy_rhbk.sh

Deploying AMQ Streams

scripts/deploy-kafka.sh

Choosing Storage

ODF

USE_LOCAL_CHART=true LOCAL_CHART_PATH=/path/to/helm/chart/in/git/repo \
S3_CLI_IMAGE=myregistry.com:8443/amazon/aws-cli:2.34.3 \
./scripts/install-helm-chart.sh

AWS S3

  • DO NOT try to use the S3 ENV Vars. They only support ODF. Must update the values.yaml file
  • Must create S3 token and secrets before running the script like
oc new-project cost-onprem

oc create secret generic "cost-onprem-storage-credentials" \
   -n "cost-onprem" \
   --from-literal=access-key="$AWS_ACCESS_KEY_ID" \
   --from-literal=secret-key="$AWS_SECRET_ACCESS_KEY"
USE_LOCAL_CHART=true LOCAL_CHART_PATH=/path/to/helm/chart/in/git/repo \
S3_CLI_IMAGE=myregistry.com:8443/amazon/aws-cli:2.34.3 \
./scripts/install-helm-chart.sh
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v2alpha1
mirror:
platform:
channels:
- name: stable-4.21
type: ocp
minVersion: 4.21.10
maxVersion: 4.21.10
graph: true
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.21
packages:
- name: amq-streams
- name: amq-streams-console
- name: amq-streams-proxy
- name: rhbk-operator
helm:
repositories:
- name: insights-onprem
url: https://insights-onprem.github.io/cost-onprem-chart
charts:
- name: cost-onprem
version: 0.2.19
additionalImages:
- name: quay.io/insights-onprem/postgresql:16
- name: quay.io/redhat-services-prod/insights-management-tenant/insights-ocp-resource-optimization/ros-ocp-backend:45e36af
- name: quay.io/redhat-services-prod/cost-mgmt-dev-tenant/koku:917373e
- name: quay.io/redhat-services-prod/kruize-autotune-tenant/autotune:5eeae99
- name: quay.io/insights-onprem/insights-ingress-go:latest
- name: registry.redhat.io/rhel10/valkey-8:latest
- name: registry.redhat.io/openshift-service-mesh/proxyv2-rhel9:2.6
- name: registry.redhat.io/rhceph/oauth2-proxy-rhel9
- name: quay.io/insights-onprem/koku-ui-onprem:latest
- name: amazon/aws-cli:2.34.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment