Skip to content

Instantly share code, notes, and snippets.

View runlevl4's full-sized avatar

runlevl4 runlevl4

View GitHub Profile
alias k=kubectl
alias kgp='k get po'
alias kgpo='k get po -o wide'
alias kgps='k get po --show-labels'
alias kdp='k delete po --grace-period=0 --force'
alias kaf='k apply -f'
alias kdf='k delete -f'
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1606081399" LAST_MODIFIED="1606237173" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3>
<DL><p>

Kubernetes Tools

kubectl Kubernetes command-line tool

kubectx Faster way to switch between clusters and namespaces in kubectl

krew Excellent kubectl plugin manager. Well worth it!

krew plug-ins

@runlevl4
runlevl4 / ckad-bookmarks.html
Last active February 27, 2023 08:55
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
<DL><p>
@runlevl4
runlevl4 / create-resource-variants.sh
Created January 4, 2020 18:08
Describes how to easily create multiple Kubernetes resources
# Note: All examples have aliased kubectl to k --> alias k=kubectl
# Create a NGINX pod
k run nginx --image=nginx --restart=Never
# Create a NGINX deployment with 3 replicas
k run nginx --image=nginx --replicas=3
# Create a Job based on the busybox image. Execute the command "sleep 4800"
k run bb-job --image=busybox --restart=OnFailure -- /bin/sh -c "sleep 4800"