moved autospotting to infra and added spot instance helper (#636)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# AWS Spot Instance Helper
|
||||
|
||||
### Info
|
||||
This is a simple service that runs globally. It monitors the state of the host, if the host is running on a spot instance it will check to see if the host is scheduled for termination then it will automatically deactive the host and evaculate the containers.
|
||||
|
||||
The source code is available at [https://www.github.com/chrisurwin/aws-spot-instance-helper](https://www.github.com/chrisurwin/aws-spot-instance-helper)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
aws-spot-instance-helper:
|
||||
image: chrisurwin/aws-spot-instance-helper:v0.1.0
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.create_agent: 'true'
|
||||
io.rancher.container.agent.role: environment
|
||||
io.rancher.container.pull_image: always
|
||||
io.rancher.scheduler.global: 'true'
|
||||
@@ -0,0 +1,16 @@
|
||||
.catalog:
|
||||
name: "AWS Spot Instance Helper"
|
||||
version: "v0.1.0"
|
||||
description: "AWS Spot Instance Helper"
|
||||
minimum_rancher_version: v1.5.5
|
||||
|
||||
|
||||
aws-spot-instance-helper:
|
||||
health_check:
|
||||
port: 9777
|
||||
interval: 2000
|
||||
unhealthy_threshold: 3
|
||||
strategy: recreate
|
||||
response_timeout: 2000
|
||||
request_line: GET /ping HTTP/1.0
|
||||
healthy_threshold: 2
|
||||
Reference in New Issue
Block a user