First things first - how do we pronounce "kubectl" :) Based on what I heard right now, it's now (and officially) called as "Kube Control"
List Nodes
# Usual Outputkubectl get nodes# Wide variant (provided more fields w.r.t. node like internal & external IP, OS Image, Kernel version and container runtime etc.kubectl get nodes-o wide# Machine friendly outputkubectl get nodes-o yamlkubectl get nodes-o json# Awesome node monitoring and all other node info, also lists all pods across all namespaces running on that nodekubectl describe node/<node-name-from-nodes-command>
kubectl describe basically works with all resources in format as follows
kubectl describe"<resource-kind>/<resource-name>"
Get Services
Get's all deployed services that someone can "talk" to
kubectl get svc
Namespaces
# Get all namespaceskubectl get ns
Most commands can take -n or -A (for all namespaces) as a modifier to run command on
Get Pods
# Gets all pods across all namespaceskubectl get pods-A# Gets all pods in a specific namespacekubectl get pods-n"<namespace-name>"
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse