This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!
Please refer to the link above to get access to our updated API documentation and examples.
#!/bin/sh | |
# $FreeBSD$ | |
# PROVIDE: dogstatsd | |
# KEYWORD: shutdown | |
. /etc/rc.subr | |
name=dogstatsd | |
rcvar=${name}_enable |
This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!
Please refer to the link above to get access to our updated API documentation and examples.
According to this cloudflare blog article "Load Balancing without Load Balancers", we can build a rock-solid load balancer only using a router. All the magic comes from BGP and Equal-Cost Multi-Path routing.
In this howto, I will use bird
as BGP router on linux instance (ie. servers).
I use GNS3 with this architecture :
{ | |
"ignition": { | |
"version": "2.0.0", | |
"config": {} | |
}, | |
"storage": { | |
}, | |
"systemd": {}, | |
"networkd": {}, | |
"passwd": { |
This is a really great brownie recipe, originally taken from this BuzzFeed article. Here, have my version of it, without all the fuzz and ads.
$ curl -u dataplaneapi:mypassword \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"name": "consul-server", | |
"address": "consul.local", | |
"port": 8500, | |
"enabled": true, | |
"retry_timeout": 10 | |
}' http://localhost:5555/v2/service_discovery/consul |