Giter Site home page Giter Site logo

briangershon / kubernetes-deploy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unity-technologies/kubernetes-deploy

0.0 1.0 0.0 17 KB

A Go module for deploying to Kubernetes and retrieving status of that deploy. Useful for deploy bots.

License: Apache License 2.0

Go 100.00%

kubernetes-deploy's Introduction

kubernetes-deploy

A Go module for deploying to Kubernetes and retrieving status of that deploy.

Useful for deploy bots.

Includes main.go sample app demonstrates its features.

Build Status

How does it work?

Calls Kubernetes API to update the image of an existing deployment and checks that new images are running successful.

Authorization for Kubernetes API via Authorization: Bearer <token> header. Offers a BearerTokenRetriever interface to provide flexibility -- either grab a long-lived token once from an environment variables, or refresh and retrieve short-lived tokens prior to each call.

NOTE that you need to have a running deployment of your app in your Kubernetes cluster first. Deploying only changes an existing deployment's image to a new Docker image.

Getting Started with Sample Program

Copy the sample .env file and fill in your values.

cp .env-sample .env

The sample main.go program supports two commands:

# list current pods in deployment
go run main.go ls     

# deploy container with this specific tag
go run main.go deploy 77d0ea51fdc30234918f2726d26479c66b7f777   

Run tests

go test ./...

kubernetes-deploy's People

Contributors

briangershon 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.