mirror of https://github.com/status-im/consul.git
docs:add documentation for Linode cloud auto-join (#6719)
The go-discover library supports Linode. This adds support for discovering other Consul agents running on Linode. Consul has supported this since [66b8c20
][1] was merged, so this commit just updates the documentation to match current features. [1]:66b8c20990
This commit is contained in:
parent
de366cc5a4
commit
ca6e866232
|
@ -369,6 +369,29 @@ $ consul agent -retry-join "provider=packet auth_token=token project=uuid url=..
|
|||
- `url` (optional) - a REST URL for packet
|
||||
- `address_type` (optional) - the type of address to check for in this provider ("private_v4", "public_v4" or "public_v6". Defaults to "private_v4")
|
||||
|
||||
### Linode
|
||||
|
||||
This returns the first private IP address of all servers for the given `region` with the given `tag_name`.
|
||||
|
||||
```sh
|
||||
$ consul agent -retry-join "provider=linode region=us-east tag_name=consul-server"
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"retry-join": ["provider=linode region=us-east tag_name=consul-server"]
|
||||
}
|
||||
```
|
||||
|
||||
- `provider` (required) is `linode`
|
||||
- `api_token` (required) - The Linode API token to use
|
||||
- `region` (optional) - The Linode region to filter on
|
||||
- `tag_name` (optional) - The tag name to filter on
|
||||
- `address_type` (optional) - the type of address to check for in this provider ("private_v4", "public_v4" or "public_v6". Defaults to "private_v4")
|
||||
|
||||
Variables can also be provided by environment variables:
|
||||
|
||||
- `LINODE_TOKEN` for `api_token`
|
||||
|
||||
### Kubernetes (k8s)
|
||||
|
||||
|
|
Loading…
Reference in New Issue