kubectl-get

Get Kubernetes objects and resources.

TLDR

Get all namespaces in the current cluster

$ kubectl get namespaces
copy

Get nodes in a specified namespace

$ kubectl get nodes -n [namespace]
copy

Get pods in a specified namespace

$ kubectl get pods -n [namespace]
copy

Get deployments in a specified namespace

$ kubectl get deployments -n [namespace]
copy

Get services in a specified namespace

$ kubectl get services -n [namespace]
copy

Get Kubernetes objects defined in a YAML manifest

$ kubectl get -f [path/to/manifest].yaml
copy

Copied to clipboard
free 100$ digital ocean credit