Kubicus Documentation

Cluster's configuration

Introduction

Create each target cluster to use with the applications.

Example below with the creation of 2 clusters ocpdojo01 and ocpdojo02 to use with Mobility.

Cluster creation: ocpdojo01

On ocpdojo01

  1. Create a service account in the dojo (for example) namespace

oc create sa ocpdojo01
  1. Give it the clusterrole admin

oc create clusterrolebinding ocpdojo01-clusteradmin-binding --clusterrole=cluster-admin --serviceaccount=dojo:ocpdojo01
  1. Create a token for this service account

oc create token ocpdojo01 --duration 2600000s |base64 -w0

On ocpdojohub

This is the cluster where dojo operator is installed, here in the dojo namespace for example.

Create a secret with the previous token

oc apply -f - << EOF
kind: Secret
apiVersion: v1
metadata:
  name: ocpdojo01-token
  namespace: dojo
data:
  token: <token>
type: Opaque
EOF
  1. Add the cluster instance in the operator

image-20260211-125821.png

Cluster creation: ocpdojo02

On ocpdojo02

  1. Create a service account in the dojo (for example) namespace

oc create sa ocpdojo02
  1. Give it the clusterrole admin

oc create clusterrolebinding ocpdojo02-clusteradmin-binding --clusterrole=cluster-admin --serviceaccount=dojo:ocpdojo02
  1. Create a token for this service account

oc create token ocpdojo02 --duration 2600000s |base64 -w0

On ocpdojohub

This is the cluster where dojo operator is installed, here in the dojo namespace for example.

Create a secret with the previous token

oc apply -f - << EOF
kind: Secret
apiVersion: v1
metadata:
  name: ocpdojo02-token
  namespace: dojo
data:
  token: <token>
type: Opaque
EOF
  1. Add the cluster instance in the operator

image-20260211-135341.png

Check in the front end application

image-20260211-135503.png

=> Click on the button “Check Connectivity“ for each cluster as the status is not refreshed automatically