Public Information
This commit is contained in:
38
samples/shared/shared-networkpolicy.yaml
Normal file
38
samples/shared/shared-networkpolicy.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
Reference in New Issue
Block a user