Categorygithub.com/wzshiming/kectl
module
0.0.2
Repository: https://github.com/wzshiming/kectl.git
Documentation: pkg.go.dev

# README

kectl (Kubernetes Etcd Control)

Control Kubernetes objects from Etcd, used to prove concepts.

It may be merged with etcd-io/auger#62, or it may be moved to etcd as a new repo, or it may just stay as it is now.

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 del services -n default kubernetes

# Packages

No description provided by the author
No description provided by the author
No description provided by the author