steveteuber / kubectl-graph

A kubectl plugin to visualize Kubernetes resources and relationships.
Apache License 2.0
599 stars 31 forks source link

Add support to specify multiple namespaces #10

Closed steveteuber closed 3 years ago

steveteuber commented 3 years ago

I want to be able to query multiple namespaces at once.

  1. Create the required resources: Calico Policy Demo
  2. Fetch all networkpolicies to create a graph:
kubectl graph networkpolicies -n management-ui,client,stars | dot -T svg -o networkpolicies.svg