Giter VIP home page Giter VIP logo

node-rotator's Introduction

Node Rotator

This repository contains the automated node rotator for managed kuberentes clusters.

Usage

Rotate the given cluster based on passed crietria.

$ rotate [OPTIONS] [CLUSTER]

Arguments:

  • [CLUSTER]: Name of the cluster (context) to run on. Default is current context. [default: default]

Options:

  • --version: Print the current CLI version.
  • --dry-run / --no-dry-run: Run the procedure in dry mode (simulated). [default: no-dry-run]
  • --provider [aws|oci|alibaba|self_managed|k3d]: The targe cloud provider: oci, aws, alibaba, k3d. [default: CloudProviders.self_managed]
  • --rotate-type [days]: The rotation criteria type. Currently only 'days' supported [default: RotationCriteria.days]
  • --rotate-value INTEGER: The rotation value. Currently only for how long in 'days'. [default: 60]
  • --provision-time INTEGER: The wait window between provider provision calls in seconds. Default: 1 minute [default: 60]
  • --oci-compartment-id TEXT: OCI compartment id of the cluster. Provider specific.
  • --oci-cluster-id TEXT: OCI cluster ocid. Provider specific.
  • --help: Show this message and exit.

Development

Initialize the working space:

python3 -m venv ./
source ./bin/activate
pip3 install -r requirements.txt

Once done, deactivate the environment:

deactivate

Roadmap

  • Support OCI.
  • Enhance the self_managed clusters support.
  • Add AWS provider.
  • Add GCP provider.
  • Add ABC provider.

License

MIT.

node-rotator's People

Contributors

abarrak avatar

Stargazers

 avatar

Watchers

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