Quantcast
Channel: Hacker News
Viewing all articles
Browse latest Browse all 25817

DigitalOcean introduces Load Balancers

$
0
0

              ## Create Load Balancer
              curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"name":"lb-name","region":"nyc3","droplet_ids":[], "forwarding_rules": [
              {
                "entry_protocol": "http",
                "entry_port": 80,
                "target_protocol": "http",
                "target_port": 80
              }
              ]}' "https://api.digitalocean.com/v2/load_balancers"

              ## Add another droplet
              curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"droplet_ids":[]}' "https://api.digitalocean.com/v2/load_balancers//droplets"

Viewing all articles
Browse latest Browse all 25817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>