Added restrictive network policy
This commit is contained in:
1 parent
6af724b376
commit
4c29110a7e
1 file changed
+26
@@ -0,0 +1,26 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: backend-pull-notifications-access
|
||||
namespace: app-notifications
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: backend-pull-notifications
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: backend-api-internal
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8101
|
||||
|
||||
- from:
|
||||
- ipBlock:
|
||||
cidr: 193.24.210.114/32
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 9000
|
||||
Reference in new issue
Block a user