kubectl get- Display one or many resources
Prints a table of the most important information about the specified resources. You can filter the
list using…
- A label selector and
- The –selector flag
- If the desired resource type is namespaced you will only see results in your current namespace unless you pass –all-namespaces.
- Uninitialized objects are not shown unless –include-uninitialized is passed.
- By specifying the output as ‘template’ and providing a Go template as the value of the –template
flag, you can filter the attributes of the fetched resources. - Use “kubectl api-resources” for a complete list of supported resources.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals