diff --git a/pages/common/kubectl-get.md b/pages/common/kubectl-get.md index 4fb10d5ffc..be1fa70767 100644 --- a/pages/common/kubectl-get.md +++ b/pages/common/kubectl-get.md @@ -5,27 +5,31 @@ - Get all namespaces in the current cluster: -`kubectl get namespaces` +`kubectl get {{[ns|namespaces]}}` - Get nodes in a specified namespace: -`kubectl get nodes {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}` - Get pods in a specified namespace: -`kubectl get pods {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}` - Get deployments in a specified namespace: -`kubectl get deployments {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[deploy|deployments]}} {{[-n|--namespace]}} {{namespace}}` - Get services in a specified namespace: -`kubectl get services {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{[svc|services]}} {{[-n|--namespace]}} {{namespace}}` -- Get all resources in a specified namespace: +- Get other resources: -`kubectl get all {{[-n|--namespace]}} {{namespace}}` +`kubectl get {{persistentvolumeclaims|secret}}` + +- Get all resources in all namespaces: + +`kubectl get all {{[-A|--all-namespaces]}}` - Get Kubernetes objects defined in a YAML manifest file: