The manager component of Hub-of-Hubs.
Go to the Contributing guide to learn how to get involved.
The following environment variables are required for the most tasks below:
REGISTRY
, for examplequay.io/open-cluster-management-hub-of-hubs
.IMAGE_TAG
, for examplelatest
orv0.1.0
.
make build
Disable the currently running controller in the cluster (if previously deployed):
kubectl scale deployment hub-of-hubs-manager -n open-cluster-management --replicas 0
Run with hub-of-hubs kubeconfig:
./bin/hub-of-hubs-manager --kubeconfig $TOP_HUB_CONFIG --process-database-url=$PROCESS_DATABASE_URL --transport-bridge-database-url=$TRANSPORT_BRIDGE_DATABASE_URL
make build-images
-
Create two secrets with your database url:
kubectl create secret generic hub-of-hubs-database-secret -n open-cluster-management --from-literal=url=$PROCESS_DATABASE_URL kubectl create secret generic hub-of-hubs-database-transport-bridge-secret -n open-cluster-management --from-literal=url=$TRANSPORT_BRIDGE_DATABASE_URL
-
Deploy the operator:
TRANSPORT_TYPE=kafka REGISTRY=quay.io/open-cluster-management-hub-of-hubs IMAGE_TAG=latest envsubst < deploy/operator.yaml.template | kubectl apply -n open-cluster-management -f -