kectl

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0

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

Directories

Path Synopsis
cmd
hack
pkg
cmd
Package ctl is A simple command line client for directly access data objects stored in etcd by Kubernetes.
Package ctl is A simple command line client for directly access data objects stored in etcd by Kubernetes.
old/apis/flowcontrol/v1alpha1
Package v1alpha1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io".
Package v1alpha1 holds api types of version v1alpha1 for group "flowcontrol.apiserver.k8s.io".
old/apis/resource/v1alpha1
Package v1alpha1 is the v1alpha1 version of the resource API.
Package v1alpha1 is the v1alpha1 version of the resource API.
old/apis/resource/v1alpha2
Package v1alpha2 is the v1alpha2 version of the resource API.
Package v1alpha2 is the v1alpha2 version of the resource API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL