[英]List network policy rules kube-proxy on minikube
could you please help me?请你帮助我好吗? Where I can find list network policy rules kube-proxy on minikube?
我在哪里可以找到 minikube 上的 kube-proxy 列表网络策略规则? Thanks.
谢谢。
Could you specify what exactly you want to list ?你能具体说明你想列出什么吗? If it comes to listing network policies in all your namespaces, you can use the following command:
如果要列出所有命名空间中的网络策略,您可以使用以下命令:
kubectl get networkpolicies --all-namespaces
If you want to list all your kube-proxy
related resources, you can do it by running:如果要列出所有与
kube-proxy
相关的资源,可以通过运行:
kubectl get all --all-namespaces | grep kube-proxy
As you can see there are only Pods
and they are located in kube-system
namespace, so kubectl get pods --namespace kube-system
will also list them.正如你可以看到有只
Pods
和它们位于kube-system
命名空间,因此kubectl get pods --namespace kube-system
也将一一列举。
If you want to see their details, run:如果要查看它们的详细信息,请运行:
kubectl describe pod <kube-proxy-pod-name> -n kube-system
Please let me know if this is what you're looking for.如果这就是您要找的,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.