Code Monkey home page Code Monkey logo

flockercert's Introduction

Flocker Node Cert Vault

docker run -p 9292:9292 -e FLOCKER_AGENT_DATASET_BACKEND=aws --volume /root/flocker:/etc/flocker:ro --name flockercert skord/flockercert

Where /root/flocker has your signing keys and certs. You can set the environmental variable FLOCKER_GENERATE_VAULT=true if you want this app to create all the credentials you need.

A auth token is generated when you start the container, use it to get the generated creds:

curl -O http://ip.add.re.ss:9292/credentials.tar -d AUTH_TOKEN=U146MNt0jQ1MxLhOsn48DoZHVfYyKoosRxYFQtmfJC4itqyoqOPY3Q -d region=us-east-2 -d zone=us-east-2"

The token is required for access, you can pass the region and zone as parameters so they're correct in the generated agent.yml file.

This, of course, will allow any node that has the token to connect to your cluster, so you should really be careful to have a lot of security around the machine that runs this service. This is primarily meant for sitations like AWS AutoScaling groups.

container environmental variables:

FLOCKER_KEY_DIR: Where in the container your flocker keys and certs are mounted. FLOCKER_CLUSTER_NAME: What your cluster's cert is named FLOCKER_CONTROL_HOST: Duh. This gets written into the generated agent.yml FLOCKER_GENERATE_VAULT: Generates all your keys and certs if set to "true" FLOCKER_AGENT_DATASET_*.: anything prefixed with FLOCKER_AGENT_DATASET_ like FLOCKER_AGENT_DATASET_BACKEND=aws will be have the prefix stripped, it will be downcased, and put into agent.yml in the dataset section. If your region and zone are set via HTTP parameters, the HTTP parameters win. This is a handy place to set your AWS keys.

flockercert's People

Contributors

skord avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.