The spec transport bridge component of Hub-of-Hubs.
Go to the Contributing guide to learn how to get involved.
-
Set the
REGISTRY
environment variable to hold the name of your docker registry:$ export REGISTRY=...
-
Set the
IMAGE_TAG
environment variable to hold the required version of the image.
default value islatest
, so in that case no need to specify this variable:$ export IMAGE_TAG=latest
-
Run make to build and push the image:
$ make push-images
Set the DATABASE_URL
according to the PostgreSQL URL format: postgres://YourUserName:YourURLEscapedPassword@YourHostname:5432/YourDatabaseName?sslmode=verify-full&pool_max_conns=YourConnectionPoolSize
.
❗ Remember to URL-escape the password, you can do it in bash:
python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])" 'YourPassword'
-
Create a secret with your database url:
kubectl create secret generic hub-of-hubs-database-transport-bridge-secret -n open-cluster-management --from-literal=url=$DATABASE_URL
-
Set the
REGISTRY
environment variable to hold the name of your docker registry:$ export REGISTRY=...
-
Set the
IMAGE
environment variable to hold the name of the image.$ export IMAGE=$REGISTRY/$(basename $(pwd)):latest
-
Set the
TRANSPORT_TYPE
environment variable to "kafka" or "sync-service" to set which transport to use.$ export TRANSPORT_TYPE=...
-
Run the following command to deploy the
hub-of-hubs-spec-transport-bridge
to your hub of hubs cluster:envsubst < deploy/hub-of-hubs-spec-transport-bridge.yaml.template | kubectl apply -f -
- Run the following command to clean
hub-of-hubs-spec-transport-bridge
from your hub of hubs cluster:envsubst < deploy/hub-of-hubs-spec-transport-bridge.yaml.template | kubectl delete -f -