Git Product home page Git Product logo

zero-downtime-kubernetes's Introduction

Zero-downtime rolling update deployments with Istio

Running the example

Note
To run the deployment scripts, kontemplate is required.
  • Build the project via Maven (mvn clean package).

  • Build and push a Docker image to a registry of your choice.

  • Change some behavior and re-build the project and Docker image with another Docker tag and re-push the image.

  • Change the image definition in deployment/coffee-shop/deployment.tpl.yaml (the part before the version variable)

  • Change the IP address definition in deployment/coffee-shop/service-entry.yaml to the public IP address of your ingress gateway.

  • Run deployment/deploy-v1.sh

  • Test the running version

  • Run deployment/exec-zero-downtime.sh <old-version> <new-version> <new-image> to perform a deployment using version subsets (v1, v2, โ€ฆโ€‹). Example: deployment/exec-zero-downtime.sh v1 v2 2

  • Run kubectl port-forward <fortio-pod> 8080:8080, and run ./curl-test.sh or ./load-test.sh to test your application

  • Browse http://localhost:8080/fortio/browse to see the load test results.

  • Perform a deployment during a load test and see what happens

zero-downtime-kubernetes's People

Contributors

sdaschner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zero-downtime-kubernetes's Issues

License

Hey, I really liked your last Q&A :)

Could you please add a LICENSE for your dotfiles repository?

Thanks :)

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.