Skip to content

Commit

Permalink
Explicitly specify namespace in network policy allow rule
Browse files Browse the repository at this point in the history
  • Loading branch information
IceWreck committed Jun 30, 2023
1 parent 027f617 commit 841a4a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/kube-prometheus/common-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ local kp =
},
{
from: [{
namespaceSelector: {
matchLabels: {
'kubernetes.io/metadata.name': 'mattermost',
},
},
podSelector: {
matchLabels: {
'k8id.io/permissions': 'allow-prometheus',
Expand Down

0 comments on commit 841a4a8

Please sign in to comment.