Fix compute-kit netpol job

This patch set addresses a failure in the compute-kit network
policy failing as some application:nova to application:nova
pods communication is blocked.

Change-Id: I29cc044e0d4f10198c23c7c3e132ab0093f91e21
Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
Tin Lam 2020-01-23 08:49:33 -06:00
parent 402a72d74d
commit 8e72ff7630

View File

@ -3,6 +3,10 @@ manifests:
network_policy: network_policy:
nova: nova:
egress: egress:
- to:
- podSelector:
matchLabels:
application: nova
- to: - to:
- ipBlock: - ipBlock:
cidr: %%%REPLACE_API_ADDR%%%/32 cidr: %%%REPLACE_API_ADDR%%%/32
@ -11,9 +15,4 @@ network_policy:
port: %%%REPLACE_API_PORT%%% port: %%%REPLACE_API_PORT%%%
placement: placement:
egress: egress:
- to: - {}
- ipBlock:
cidr: %%%REPLACE_API_ADDR%%%/32
ports:
- protocol: TCP
port: %%%REPLACE_API_PORT%%%