agent

package
v0.0.0-...-ceafe3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

README

aws-spot-instance-helper

A simple service for rancher hosts running on spot instances

Info

This service runs as a container under a Rancher cattle environment, it monitors the state of the host. If the host is a spot instance and becomes marked for termination then this service will automatically deactivate the host and evacuate the containers.

This is an alpine based image that deploys globally

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent - Struct for Agent

func NewAgent

func NewAgent(probePeriod time.Duration, cattleURL, cattleAccessKey, cattleSecretKey, slackWebhookURL string) *Agent

NewAgent - Function to expose NewAgent

func (*Agent) Start

func (a *Agent) Start() error

Start - Function to start agent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL