Category: Kubernetes

Often, when we work around Kubernetes, we have to reference the documentation for a few things but to save some time from journey from terminal to browser and back. Kubectl offers a great set of help in itself. The command shows all fields from pod resource along with its type and information about it.

for example, while kubectl explainis pretty useful to know all fields and their type and usage, when you are building some cool stuff like some CLI tool, plugin or maybe operator, you might have to explore and learn about APIs and JSON structures, you can do that with kubectlright from the terminal, raw flag for kubectl get comes handy for it. We can also explore subpath, as shown in the above gif.

Related Articles