Files
nplus/samples/shared/shared-networkpolicy.yaml

38 lines
817 B
YAML
Raw Normal View History

2025-01-24 16:18:47 +01:00
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: sample-shared-interinstance
labels:
nplus/instance: sample-shared
spec:
podSelector:
matchLabels:
nplus/instance: sample-shared
nplus/type: core
policyTypes:
- Egress
egress:
#
# allow access from CORE components to a central nscale Storage Layer
#
- to:
- podSelector:
matchLabels:
nplus/instance: sample-shared-cs
nplus/type: nstl
ports:
- protocol: TCP
port: 3005
#
# allow access from CORE components to a central nscale Rendition Server
#
- to:
- podSelector:
matchLabels:
nplus/instance: sample-shared-cs
nplus/type: rs
ports:
- protocol: TCP
port: 8192
- protocol: TCP
port: 8193