Skip to content
/ kectl Public

Directly interact with etcd resources using kubectl-like commands

License

Notifications You must be signed in to change notification settings

kwok-ci/kectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kectl (Kubernetes Etcd Control)

Control Kubernetes objects from Etcd, used to prove concepts.

This project was inspired by jpbetz/auger and etcd-io/auger

Usage

Preparation cluster

Create a cluster and expose etcd port, to facilitate the creation of a cluster using kwokctl, this can be any other cluster

# brew install kwok
kwokctl create cluster --etcd-port 2379

Get a single resource

Get the kubernetes.default service

kectl get services -n default kubernetes

Get the all of the resource

kectl get leases -n kube-system

Get the all of the etcd

kectl get

Modify immutable data

# change the creation time to very long ago
kectl get services -n default kubernetes | sed 's/creationTimestamp: .*/creationTimestamp: "2006-01-02T15:04:05Z"/' | kectl put --path -
kubectl get services -n default kubernetes

Maybe patch subcommands can be added in the future

Delete data

kectl delete services -n default kubernetes

About

Directly interact with etcd resources using kubectl-like commands

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •