Technical questionAccepted answer
Kubectl get pods - How to filter pods by partial name
Kiarash Alinasab
Dec 8
0 views1
The command kubectl get pods <POD NAME> will return the specific pod with that name. I wonder if there is a way that I can use part of the name, for instance, a command that returns all pods that start with j.
1 answer
Accepted answer · original discussion
Kiarash Alinasab
PermalinkDec 8
In Linux Bash:
kubectl get pods | grep ^j
In Windows PowerShell:
kubectl get pods | Select-String '^j'
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.