diff --git a/pages/common/kubectl-get.md b/pages/common/kubectl-get.md new file mode 100644 index 0000000000..60308e933d --- /dev/null +++ b/pages/common/kubectl-get.md @@ -0,0 +1,28 @@ +# kubectl get + +> Get Kubernetes objects and resources. +> More information: . + +- Get all namespaces in the current cluster: + +`kubectl get namespaces` + +- Get nodes in a specified namespace: + +`kubectl get nodes -n {{namespace}}` + +- Get pods in a specified namespace: + +`kubectl get pods -n {{namespace}}` + +- Get deployments in a specified namespace: + +`kubectl get deployments -n {{namespace}}` + +- Get services in a specified namespace: + +`kubectl get services -n {{namespace}}` + +- Get Kubernetes objects defined in a YAML manifest: + +`kubectl get -f {{path/to/manifest}}.yaml`