example: add network policy for recovery backend
Longhorn 4675 Signed-off-by: Derek Su <derek.su@suse.com>
This commit is contained in:
parent
d3660e5474
commit
97cb124f24
16
examples/network-policy/recovery-backend-network-policy.yaml
Normal file
16
examples/network-policy/recovery-backend-network-policy.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: longhorn-recovery-backend
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: longhorn-recovery-backend
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- ports:
|
||||
- protocol: TCP
|
||||
port: 9600
|
||||
|
Loading…
Reference in New Issue
Block a user