As you all should know, VMware Tanzu is a popular tool for managing and deploying Kubernetes clusters. Whether you’re a seasoned pro or just getting started with Tanzu, knowing the right commands can save you time and help you get the most out of the platform.
In this blog post, we’ll walk through some of the most common commands you’ll use when working with VMware Tanzu, whether you’re a developer, an IT administrator, or just curious about Kubernetes, read on to learn more about these essential VMware Tanzu commands.
Command to list all services
# kubectl get svc
Command to list all endpoints
# kubectl get ep
Command to list replicas
# kubectl get rs
Command to list pods in current namespaces
# kubectl get pods
Command to list pods in all namespaces
# kubectl get pods -A
Command to push image to registry
docker push <registry-ip> / <namespace> / <image-name>
Command to list resource limits and consumption
# kubectl describe resourcequota
Command to list deployments in yaml
# kubectl get deployments -oyaml
Command to list virtual network services in namespaces
# kubectl get virtualnetwork
Command to list control plane IPs
# kubectl get nodes -owide
Command to login to TKG
# kubectl vsphere login
Command to list available contexts
# kubectl config get-contexts
Command to switch contexts
# kubectl config use-contexts
Command to list tanzu kubernetes clusters
# kubectl get tkc
Command to list tanzu kubernetes releases
# kubetctl get tkr
Command to list the clusters in the namespace
# kubectl get tkc
Command to list storage classes in current namespace