Announce Sync Daemon Address

This section will walk you through configuring the sync daemon to announce its external address to other peers.

What You’ll Need

Procedure

  1. Go to your GitOps repository, inside your rok-tools management environment:

    root@rok-tools:/# cd ~/ops/deployments
  2. Obtain the address of the LoadBalancer Service and copy it to your clipboard as you are going to use it in the next step. Choose one of the following options, based on your cloud provider.

    root@rok-tools:~/ops/deployments# export SYNC_ADDRESS=$(kubectl get service \ > -n rok rok-sync -o json \ > | jq -r '.status.loadBalancer.ingress[].hostname') && echo ${SYNC_ADDRESS?} aec548e66d375461783b1625b014cac8-1225056029.us-east-1.elb.amazonaws.com

    This section is a work in progress.

    root@rok-tools:~/ops/deployments# export SYNC_ADDRESS=$(kubectl get service \ > -n rok rok-sync -o json \ > | jq -r '.status.loadBalancer.ingress[].ip') && echo ${SYNC_ADDRESS?} 198.51.100.1
  3. Edit rok/rok-cluster/overlays/deploy/patches/configvars.yaml to specify the external address that the sync daemon will announce to other peers. Choose one of the following options, based on your cloud provider.

    spec: configVars: ... daemons.throwerd.announce_host: aec548e66d375461783b1625b014cac8-1225056029.us-east-1.elb.amazonaws.com # <-- Update this line with your SYNC_ADDRESS

    This section is a work in progress.

    spec: configVars: ... daemons.throwerd.announce_host: 198.51.100.1 # <-- Update this line with your SYNC_ADDRESS
  4. Commit your changes:

    root@rok-tools:~/ops/deployments# git commit \ > -am "Configure the announce address of the sync daemon"
  5. Apply the kustomization:

    root@rok-tools:~/ops/deployments# rok-deploy --apply rok/rok-cluster/overlays/deploy

Verify

  1. Verify that the sync daemon is properly configured and reports the expected Announce host. Choose one of the following options, based on your cloud provider.

    root@rok-tools:# kubectl exec -n rok svc/rok -- rok-thr info ... | Announce host | aec548e66d375461783b1625b014cac8-1225056029.us-east-1.elb.amazonaws.com |

    This section is a work in progress.

    root@rok-tools:# kubectl exec -n rok svc/rok -- rok-thr info ... | Announce host | 198.51.100.1 |

Summary

You have successfully configured your Rok cluster to be able to sync datasets and environment with other users.

What’s Next

Check out the rest of the maintenance operations that you can perform on your cluster.