Giter Club home page Giter Club logo

kubeam's Introduction

kubeam-logo

Kubernetes Application and Workflow manager

Integrates directly with your CI (Jenkins BO/CircleCI/Bamboo) and allows you to have end to end CI/CD.

jenkins-bo-and-kubeam

TODO:

  • We need to Add available cluster detection to kubeAM. Redis (not fully featured yet)
  • Add samples of Jenkinsfile and circle.yaml
  • Add TLS mutual cert auth. If possible add suport for multiple certs validation (one per account)
  • Add Logic to parse application.json and return in structure. This will drive the logic of each rest endpoint.
  • convert from using kubectl to cliento-go For better error handling, retry with backoff and return information to caller rest endpoint. We have a PR for this need input on pros and cons on doing client-go way.
  • Better build system. Look at isakconf for a sample.
  • Reporting of cluster aviability.
  • getStatus should loop for each resource and generate a report. Right now is issuing a single call. If one resource is missing. Causes report to fail.
  • Health-check of kubeam
  • Add support for includes to templates. This is needed for suporting source CIDR restrictions.
  • Switch to go template from fast-template
  • Rename provision api to something with more meaning is supposed to be endpoint for resources that timeout.
  • Make /v1/provision work with generic applications using api.yaml file
  • make /v1/waitforready generic driven by api.yaml
  • Remove self-deploy endpoint. Now it can self deploy using api.yaml just like any other app.
  • /v1/waitforready should look for multiple resources and wait for all of them. This is for complex applications

API

Create a brand new cluster
curl -X POST -k https://admin:{password}@localhost:8443/v1/create/sampleapp/QA/67/rhel7-1718-02/300

Recreates (Delete then create) a resource using cluster selector; A cluster will be selected for you (Resources have TTL)
curl -X POST -k https://admin:{password}@localhost:8443/v1/provision/sampleapp/QA/rhel7-170918-02

Deploys to expecified
curl -X POST -k https://admin:{password}@localhost:8443/v1/deploy/sampleapp/qa/rhel7-170918-02

Gets status of a cluster
curl -X GET -k https://admin:{password}@localhost:8443/v1/provision/sampleapp/QA/67

List active clusters from Redis
curl -X GET -k https://admin:{password}@localhost:8443/v1/listclusters/sampleapp/QA

Wait for resource to be active
wget --no-check-certificate --user=admin --password=$SECRET https:/localhost:443/v1/waitforready/sampleapp/QA/66 -q -O - PS. wget due to limitations in how curl does timeout

Get detail on running cluster
curl -X GET -k https://admin:${SECRET}@localhost:443/v1/getclusterdetail/sampleapp/QA/66

Get detail on all running clusters
curl -X GET -k https://admin:${SECRET}@localhost:443/v1/getallclustersdetail/sampleapp/QA

Event Tracker

PAYLOAD="
{
   name: "Deployed",
   msg: "Passed all tests",
   ts: "2018-01-01 01:01:01"
}
curl -X POST -k https://admin:${SECRET}@localhost:443/v1/event/sampleapp/QA/66/{docker-TAG}

TODO: TAGS

PAYLOAD="
{
   name: "BATS-OK",
   msg: "PASSED sampleapp-BATS",
   ts: "2018-01-01 01:01:01"
}
curl -X POST -k https://admin:${SECRET}@localhost:443/v1/settag/sampleapp/QA/66/{docker-TAG}

KEYS are:  <APPLICATION>/<ENVIRONMENT>/<SHARD>/<DOCKER-TAG>

Other:

Self deployment
/v1/provision/self/{environment}/{tag}

Health-check TCP:8081/health-check

kubeam's People

Contributors

llimon avatar samkeet avatar

Watchers

James Cloos avatar  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.