diff --git a/common/security/federation/templates/exareme-network-policy.yaml b/common/security/federation/templates/exareme-network-policy.yaml index 249237f..bad88d6 100644 --- a/common/security/federation/templates/exareme-network-policy.yaml +++ b/common/security/federation/templates/exareme-network-policy.yaml @@ -52,6 +52,9 @@ spec: - podSelector: matchLabels: app: exareme2-worker + namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: {{.Values.targetNamespace}} - to: - namespaceSelector: matchLabels: diff --git a/common/security/netpol.yaml b/common/security/netpol.yaml index 93810c6..99a8c01 100644 --- a/common/security/netpol.yaml +++ b/common/security/netpol.yaml @@ -54,7 +54,7 @@ spec: - name: networkPolicy.excludedSelector[0].key value: app - name: networkPolicy.excludedSelector[0].operator - value: In + value: NotIn - name: networkPolicy.excludedSelector[0].values[0] value: exareme2-worker destination: