Giter Club home page Giter Club logo

gke-example-go's Introduction

This repo hosts a tutorial on how to get started with Google Container Engine (GKE). It goes through setting up all the way to blue/green deployments using Kubernetes Deployments instead of the old replication controllers.

Slides - Quick Link

Go Talks Slides Link

Slides - Using Present Tool

Slides are using the Golang Present tool which can be installed into your GOPATH with:

go install golang.org/x/tools/cmd/present

Then to execute the slides:

cd slides
./present.sh

present.sh is a bash shorthand for executing the main.slide file with the present tool.

Go Code

There are two main Go programs here that can also be executed via the slides.

  1. API web application in main.go which hosts a health and a version endpoint
  2. Watcher app which does an HTTP GET at a designated endpoint every 2 seconds and outputs the values

The API application is meant to be built into a docker container and then pushed to Google Container Registry (GCR)

The watcher application is meant for demonstrating Kubernetes' blue/green deployment (see the slides).

Notes

This repo uses K8's deployments. The preferred way to manage these now is through a package manager such as Helm.

gke-example-go's People

Contributors

serinth avatar tonykqt avatar

Stargazers

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