Giter Site home page Giter Site logo

etcdhelper-nfs's Introduction

Double-tap Enhanced version of etcdhelper

This is a modified version of etcdhelper from OpenShift and a subsequent modifications made by Flant.

One new function in this release: changeStorageClassNFSServer

This repo has a new functionality described in the article:

For the original Flant team article see:

In short, it is designed to change the PV NFS Sever coordinates when using https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner

Using etcdhelper

Build

The fastest way is to use official golang image:

docker run --rm -v $(pwd):/app -w /app -e CGO_ENABLED=0 -e GOOS=linux golang:1.15-alpine go build etcdhelper.go

etcdhelper binary will be created in the current directory. Use GOOS=darwin to build MacOS executable.

Using

Change NFS Server IP/DNS for a given StorageClass

./etcdhelper -cacert /etc/kubernetes/pki/etcd/ca.crt -cert /etc/kubernetes/pki/etcd/server.crt -key /etc/kubernetes/pki/etcd/server.key -endpoint https://127.0.0.1:2379 change-storage-class-nfs-server <StorageClassName> <new IP/DNS>

Status

This Double-tap enhanced version of etcdhelper is PoC (proof of concept). Use it on your own risk. Before making any changes please make sure you BACKUP your etcd server.

etcdhelper-nfs's People

Contributors

rliwoch avatar

Stargazers

Jean Lucas avatar NazgulSenpai 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.