Created
August 30, 2019 05:45
-
-
Save hulucc/ed1f6b17a3e6783bc7f16544fe25520b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k=kubectl $* | |
kps=kubectl get all $* & echo. & kubectl get ingress & echo. & kubectl get daemonset | |
kin=kubectl exec -it $1 bash | |
kin.=kubectl exec -it $1 sh | |
kconf=if "$1"=="" (kubectl config get-contexts) else (kubectl config set-context $1 && kubectl config use-context $1) | |
kns=if "$1"=="" (kubectl get ns) else (for /f "delims=" %A in ('kubectl config current-context') do @kubectl config set-context %A --namespace=$1) | |
krm=kubectl delete $* | |
krmf=kubectl delete $* --grace-period=0 --force | |
ki=kubectl describe $* | |
ka=kubectl apply $* | |
kp=kubectl port-forward $* | |
krun=kubectl run -i --tty --rm $1 --image=$1 --restart=Never -- sh | |
kdebug=kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh | |
ke=kubectl edit $* | |
kg=kubectl get $* | |
kr=kubectl rollout $* | |
klogs=kubectl logs $* --tail=1000 -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment