Git Product home page Git Product logo

k's Introduction

k

All kubectl aliases in one function. Also initializes kubectl completion if it was not initialized.

usage: k <keys> [args...]

The keys parameter is composed of:

  • 1 command key
  • 0 or more resource keys
  • 0 or more option keys
  • 0 or 1 suffix key

all typed sequentially without spaces. Longer keys have precedence over shorter keys. E.g pvc has precedence over pv.

Commands

Key Command
a apply
c create
d describe
e edit
g get
k kustomize
l logs
t top
v version
x delete

Resources

Key Resource
apis apiservice
bi binding
cj cronjob
cm configmap
cr clusterrole
crb clusterrolebinding
crd customresourcedefinition
crv controllerrevision
cs componentstatus
csid csidriver
csin csinode
csisc csistoragecapacity
csr certificatesigningrequest
de deployment
ds daemonset
ep endpoint
eps endpointslice
ev event
fs flowschema
hpa horizontalpodautoscaler
ic ingressclass
ing ingress
jo job
le lease
lr limitrange
lsarv localsubjectaccessreview
mwc mutatingwebhookconfiguration
no node
np networkpolicy
ns namespace
pc priorityclass
pdb poddisruptionbudget
plc prioritylevelconfiguration
po pod
psp podsecuritypolicies
pt podtemplate
pv persistentvolume
pvc persistentvolumeclaim
rb rolebinding
rc replicationcontroller
ro role
rq resourcequota
rs replicaset
rtc runtimeclass
sa serviceaccount
sarv subjectaccessreview
sc storageclass
sec secret
ssarv selfsubjectaccessreview
ssrrv selfsubjectrulesreview
sts statefulset
svc service
tr tokenrequest
trv tokenreview
va volumeattachment
vo volume
vwc validatingwebhookconfiguration

Options

Key Option
A --all-namespaces
a --all
oj -o=json
on -o=name
ow -o=wide
oy -o=yaml
sl --show-labels
w --watch

Suffixes

Key Suffix
f -f
k -k
l -l

Examples

Input Output
k af pod.json kubectl apply -f pod.json
k dpol name=myLabel kubectl describe pod -l name=myLabel
k gk dir/ kubectl get -k dir/
k gpoowA kubectl get pod -o=wide --all-namespaces
k gsvcrc kubectl get service,replicationcontroller
k xpoa kubectl delete pod --all

k's People

Contributors

ericbn 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.