rafay-operator-redhat

by joaquinito2051

Helm chartv0.2.3App 1.16.0

A Helm chart for Kubernetes

About this chart

Overview

This chart allows Rafay’s Kubernetes Operation platform operator to be installed on a Openshift cluster.

Usage

  • First create an imported type cluster in Rafay console and download the bootstrap yaml.
helm repo add rafay-helm-charts https://rafaysystems.github.io/rafay-helm-charts/

helm repo update

helm search repo rafay-helm-charts

# Apply the CRDs
kubectl apply -f https://raw.githubusercontent.com/RafaySystems/rafay-helm-charts/main/charts/rafay-operator-redhat/crds-backup/crds.yaml

export BOOTSTRAP_FILE=<location of the downloaded bootstrap file>

TOKEN=`cat $BOOTSTRAP_FILE |yq '.data.token | select(document_index == 19)'`
API_ADDR=`cat $BOOTSTRAP_FILE |yq '.data.apiAddr | select(document_index == 19)'`
CONTROL_ADDR=`cat $BOOTSTRAP_FILE |yq '.data.controlAddr| select(document_index == 19)'`
CLUSTER_ID=`cat $BOOTSTRAP_FILE |yq '.data.clusterID| select(document_index == 14)'`
RELAYS=`cat $BOOTSTRAP_FILE |yq '.data.relays| select(document_index == 14)'| sed 's/,/\\\\,/g'`

helm install v2-infra  rafay-helm-charts/rafay-operator-redhat --set token=$TOKEN --set api_addr=$API_ADDR --set control_addr=$CONTROL_ADDR --set cluster_id=$CLUSTER_ID --set relays=$RELAYS -n rafay-system --create-namespace

Note: Release name should be v2-infra so that Rafay can take over of managing the release.

Deploy rafay-operator-redhat with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rafay-operator-redhat on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrafay-operator-redhat is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply