Updates to Spot Instance helper (#647)

This commit is contained in:
chrisurwin 2017-10-30 16:05:19 +00:00 committed by Bill Maxwell
parent 141cfd9171
commit 8b8d29c6e4
4 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# 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)
This version support notification to slack.

View File

@ -0,0 +1,10 @@
aws-spot-instance-helper:
image: chrisurwin/aws-spot-instance-helper:v0.2.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'
environment:
SLACK_WEBHOOK: "${SLACK_WEBHOOK}"

View File

@ -0,0 +1,21 @@
.catalog:
name: "AWS Spot Instance Helper"
version: "v0.2.0"
description: "AWS Spot Instance Helper"
minimum_rancher_version: v1.5.5
questions:
- variable: "SLACK_WEBHOOK"
description: "Slack Webhook"
label: "Slack Webhook"
required: false
type: "string"
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

View File

@ -1,5 +1,5 @@
name: AWS Spot Instance Helper
description: |
Automatically evacuates spot instances that are marked for termination
version: v0.1.0
version: v0.2.0
category: Rancher Services