Skip to content

Commit 27d5acb

Browse files
authored
Merge pull request #625 from bcgov/yj
chore: gateway netpol
2 parents 0adb476 + 8c29673 commit 27d5acb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

gateway/networkpolicy.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
kind: NetworkPolicy
2+
apiVersion: networking.k8s.io/v1
3+
metadata:
4+
name: enable-gateway-to-backend
5+
spec:
6+
podSelector:
7+
matchExpressions:
8+
- key: app.kubernetes.io/name
9+
operator: In
10+
values:
11+
- strdss-dev-backend
12+
- strdss-test-backend
13+
- strdss-uat-backend
14+
- strdss-prod-backend
15+
ingress:
16+
- from:
17+
- namespaceSelector:
18+
matchLabels:
19+
environment: test
20+
name: cc9a8a
21+
- from:
22+
- namespaceSelector:
23+
matchLabels:
24+
environment: prod
25+
name: cc9a8a

0 commit comments

Comments
 (0)