Hi folks,
Here’s a quick tip on how to view Kubernetes resource of a specific API version. For example, there are different types of Network Policy resources that Kubernetes supports.
There’s the default network policy which has kind NetworkPolicy under apiVersion networking.k8s.io/v1.
Then let’s say there’s another resource of kind NetworkPolicy under apiVersion projectcalico.org/v3.
How do you view all network resources under apiVersion projectcalico.org/v3?
Here’s the command for it:
kubectl get networkpolicy.v3.projectcalico.org
That’s all for now. Happy Software Development.