Kubernetes吊舱注入现有网络策略
我有一个Pod(例如a),我要求该Pod只允许来自Pod B和C的进入请求。同样,a只允许向B和C发送请求(出口)Kubernetes吊舱注入现有网络策略,kubernetes,kubernetes-networkpolicy,Kubernetes,Kubernetes Networkpolicy,我有一个Pod(例如a),我要求该Pod只允许来自Pod B和C的进入请求。同样,a只允许向B和C发送请求(出口) There are a few network policies already existing in the k8s cluster. However I am NOT allowed to create/update/delete a new/existing NW Policy. You can only "use/inject" the existi
There are a few network policies already existing in the k8s cluster.
However I am NOT allowed to create/update/delete a new/existing NW Policy. You can only "use/inject" the existing policy in the Pod.
注意-我知道我们可以创建网络策略和
将吊舱A用作吊舱选择器。然而,这个问题需要解决
不同的方法。无法创建新的NetPol或更新现有的NetPol
<强>请分享如何实现这个强>
你是否考虑使用PODPRESET?假设您的网络策略适合您的需求。