elasticipd

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: MIT Imports: 10 Imported by: 0

README

elasticipd Build Status

As it is now common practice to run applications on top of a container-orchestration system, such as Kubernetes, there is no guarantee that a servive will always run on the same host. This can cause problems when a service requiring a public IP address gets rescheduled.

elasticipd automatically associates an Elastic IP address to the AWS EC2 instance running this service. It is designed to run as a sidecar container alongisde a service that requires a public IP address.

Usage

As elasticipd is currently configured to use AWS Instance Roles, the host will need to have AmazonEC2FullAccess.

The Elastic IP address is configured by setting the ELASTIC_IP environment variable.

Kubernetes

A simple multi-container Pod spec:

apiVersion: v1
kind: Pod
metadata:
  name: public-service
spec:
  containers:
  - name: public-service
    image: public-service
  - name: elasticipd
    image: danbondd/elasticipd:latest
    command:
    - elasticipd
    env:
    - name: ELASTIC_IP
      valueFrom:
        configMapKeyRef:
          name: public-service
          key: elastic-ip

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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