Code Monkey home page Code Monkey logo

krud's Introduction

krud

krud is a kubernetes rolling-update service for use with docker registry webhook pushes.

For example, when you push a new image to Quay.io, you can configure a HTTP POST webhook. When krud gets the webhook, it does a rolling update of a kubernetes replication controller (almost identical to kubectl rolling-update). krud can run in a separate kubernetes service along side your other services.

WARNING: krud is an early product. It has no authentication, can easily be DDoS'd, and is not widely tested. It is open source so we can improve it and remove this message in the future.

Usage

Configure the webhook to connect to /push at the address it's running, for example: http://krud.company.com/push.

A bad UI exists at / showing status of past update attempts.

Configuration

The following environment variables are used to configure krud:

Required:

  • KRUD_CONTROLLER_NAME: name of the replication controller to update

Optional:

  • KRUD_DEPLOYMENT_KEY: key to use to differentiate between two different controllers; defaults to deployment
  • KRUD_K8S_ENDPOINT: kubernetes endpoint; defaults to http://localhost:8080
  • KRUD_LISTEN: listen address; defaults to :9500
  • KRUD_NAMESPACE: namespace of the replication controller; defaults to the kubernetes default

These options can also be specified on the command line. See krud -help for usage.

Supported Registries

Running on kubernetes

There are example rc.yaml and svc.yaml files. The only required change is setting the KRUD_CONTROLLER_NAME environment variable in rc.yaml.

krud's People

Contributors

darkcrux avatar maddyblue 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.