Difference between revisions of "Kubectl get networkpolicy"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  kubectl get networkpolicy -n prod
+
  kubectl get [[networkpolicy]] -n prod
 
  NAME                                    [[POD-SELECTOR]]              AGE
 
  NAME                                    [[POD-SELECTOR]]              AGE
 
  prod.elasticsearch.allow-apis          app=elasticsearch-master  28h
 
  prod.elasticsearch.allow-apis          app=elasticsearch-master  28h

Revision as of 13:07, 17 August 2022

kubectl get networkpolicy -n prod
NAME                                    POD-SELECTOR               AGE
prod.elasticsearch.allow-apis           app=elasticsearch-master   28h
prod.elasticsearch.allow-node-traffic   app=elasticsearch-master   28h
prod.elasticsearch.deny-all             app=elasticsearch-master   28h
kubectl get networkpolicy -A

Related

kubectl describe networkpolicy

See also

Advertising: