Announce Sync Daemon Address¶
This section will walk you through configuring the sync daemon to announce its external address to other peers.
Overview
What You’ll Need¶
- A configured management environment.
- Your clone of the Arrikto GitOps repository.
- A working Rok deployment.
- An exposed sync daemon.
Procedure¶
Go to your GitOps repository, inside your
rok-tools
management environment:root@rok-tools:/# cd ~/ops/deploymentsObtain the address of the Load Balancer Service and copy it to your clipboard as you are going to use it in the next step:
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.comEdit
rok/rok-cluster/overlays/deploy/patches/configvars.yaml
to specify the external address that the sync daemon will announce to other peers:spec: configVars: ... daemons.throwerd.announce_host: aec548e66d375461783b1625b014cac8-1225056029.us-east-1.elb.amazonaws.com # <-- Update this line with your SYNC_ADDRESSCommit your changes:
root@rok-tools:~/ops/deployments# git commit -am \ > "Configure the announce address of the sync daemon"Apply the kustomization:
root@rok-tools:~/ops/deployments# rok-deploy --apply rok/rok-cluster/overlays/deploy
Verify¶
Verify that the sync daemon is properly configured and reports the expected Announce host:
root@rok-tools:# kubectl exec -n rok svc/rok -- rok-thr info ... | Announce host | aec548e66d375461783b1625b014cac8-1225056029.us-east-1.elb.amazonaws.com |
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.