Hacker News new | ask | show | jobs
by kawsper 1 day ago
I will tell you a weirder story.

I experienced that my newly spawned DigitalOcean instances were being banned from accessing the DigitalOcean API by Cloudflare.

On boot my servers needed to join the cluster, so they were asking the DO api on what IPs their cluster leaders were on, and got banned, so that quickly killed my move to DO.

1 comments

What a missed opportunity for them to do split DNS and not send that API traffic over the Internet to begin with

And I hear you about not getting further tangled up with clowns, but https://docs.digitalocean.com/reference/api/metadata/floatin... is probably what you wanted for that goal

It was a Nomad cluster, so it uses https://github.com/hashicorp/go-discover to lookup other servers.

So you configure them like:

      "retry_join": ["provider=digitalocean tag_key=type tag_value=server"]
And you will get a list of instances with the tag type=server.

It uses the DOs own api-client to do the lookup: https://github.com/digitalocean/godo, maybe that local ip can be used to ask about the other servers on the account.