kubectl Kubernetes command-line tool
kubectx Faster way to switch between clusters and namespaces in kubectl
krew Excellent kubectl plugin manager. Well worth it!
| 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> |
| <!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> |
| # 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" |