Giter VIP home page Giter VIP logo

spot-aks-cluster-upgrade's Introduction

spot-aks-cluster-upgrade

Provides a CLI and programmatic interface to Spot by NetApp Ocean API once an AKS cluster upgrade was performed in the AKS clusters which managed by Spot Ocean.

Flow

In order to run, There is a programmatic CLI with the name of init.sh, and may run with the next command: ./init.sh

The next usage screen will be on the stdout:

        [-i, --ids]: If present, list the required virtual node group(s) to roll (vng-xxxxxxxx,...)
        [-p, --percentage]: If present, list the required percentage you want to roll the cluster. Integer 0-100
        [-d, --default]: If present, will roll with the default cluster roll (all cluster will be rolled, 20% per batch) - accepts true/1 in order to run.

Scenarios

  1. In order to deploy cluster with all VNGs, and 30% of the cluster will be rolled on each batch, run ./init.sh -i ALL -p 30
  2. In order to deploy specific VNG, with 20% of the VNG on each batch, run ./init.sh -i "vng-xxxxxxxx" -p 20

Under the hood

The script will apply a k8s job, called ocean-aks-cluster-upgrade, which consists of two containers.

get-waagent-data // initContainer

This container will execute a script that will will read information from one of the Kubernetes nodes and then create an Ocean metadata that matches the configuration. On AKS cluster upgrades, the metadata of the nodes in the cluster may change.

ocean-aks-upgrade-cluster // container

This container will read the secrets of spot and will roll the cluster according the configuration that provided in the bootstrap script.

spot-aks-cluster-upgrade's People

Contributors

yarinpinyan avatar gal-azulay avatar

Stargazers

Juan David Correa avatar  avatar

Watchers

 avatar

Forkers

gal-azulay

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.