38 lines
817 B
YAML
38 lines
817 B
YAML
|
|
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
|