From 846bf3985199456d42257110556d58370b95c09a Mon Sep 17 00:00:00 2001 From: Eki9 <63522474+Eki9@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:39:48 +0300 Subject: [PATCH] kubectl: add option placeholders (#17608) --- pages/common/kubectl-get.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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: