Skip to content

ianzhang366/leaf-hub-status-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaf-Hub-Status-Sync

Go Report Card License

The leaf hub status sync component of Hub-of-Hubs.

How it works

Build and push the image to docker registry

  1. Set the REGISTRY environment variable to hold the name of your docker registry:

    $ export REGISTRY=...
    
  2. Set the IMAGE_TAG environment variable to hold the required version of the image.
    default value is latest, so in that case no need to specify this variable:

    $ export IMAGE_TAG=latest
    
  3. Run make to build and push the image:

    $ make push-images
    

Deploy on a leaf hub

  1. Set the REGISTRY environment variable to hold the name of your docker registry:

    $ export REGISTRY=...
    
  2. Set the IMAGE environment variable to hold the name of the image.

    $ export IMAGE=$REGISTRY/$(basename $(pwd)):latest
    
  3. Set the SYNC_SERVICE_PORT environment variable to hold the ESS port as was setup in the leaf hub.

    $ export SYNC_SERVICE_PORT=...
    
  4. Set the LH_ID environment variable to hold the leaf hub unique id.

    $ export LH_ID=...
    
  5. Run the following command to deploy the leaf-hub-status-sync to your leaf hub cluster:

    envsubst < deploy/leaf-hub-status-sync.yaml.template | kubectl apply -f -
    

Cleanup from a leaf hub

  1. Run the following command to clean leaf-hub-status-sync from your leaf hub cluster:
    envsubst < deploy/leaf-hub-status-sync.yaml.template | kubectl delete -f -