Skip to content

izphi78/etcdhelper-nfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%