Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucretius/nomad-elastigroup-autoscaler
Nomad Autoscaler plugin for Spotinst Elastigroup's
https://github.com/lucretius/nomad-elastigroup-autoscaler
Last synced: 3 months ago
JSON representation
Nomad Autoscaler plugin for Spotinst Elastigroup's
- Host: GitHub
- URL: https://github.com/lucretius/nomad-elastigroup-autoscaler
- Owner: Lucretius
- Created: 2021-07-28T22:18:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T23:10:43.000Z (over 3 years ago)
- Last Synced: 2024-04-26T08:33:27.589Z (7 months ago)
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nomad - lucretius/nomad-elastigroup-autoscaler - Nomad Autoscaler plugin for [Spot.io Elastigroup](https://spot.io/products/elastigroup/). (Autoscaling)
README
# Nomad Spotinst Elastigroup Autoscaler
The `spotinst-elastigroup` target plugin allows for the scaling of the Nomad cluster clients via creating and destroying Spotinst Elastigroup instances.
## Documentation
### Agent Configuration Options
To use the `spotinst-elastigroup` plugin, the agent configuration needs to be populated with the appropriate target block. Required config properties are listed below.
```hcl
target "spotinst-elastigroup" {
driver = "spotinst-elastigroup"
config = {
token = "local/token"
account_id = "local/account_id"
}
}
```- `token` `(string: "")` - A Spotinst API Token. Can use environment variable `SPOTINST_TOKEN` instead.
- `account_id` `(string: "")` - A Spotinst Account ID. Can use environment variable `SPOTINST_ACCOUNT` instead.### Policy Configuration Options
```hcl
check "hashistack-allocated-cpu" {
# ...
target "spotinst-elastigroup" {
provider = "azure"
elastigroup_id = "sg-123456"
}
# ...
}
```- `provider` `(string: "")` - The cloud provider used by Spot. Can be one of `aws`, `azure` or `gcp`.
- `elastigroup_id` `(string: "")` - The elastigroup ID.