Signed-off-by: Derek Su <derek.su@suse.com> (cherry picked from commit 0dd86841f2a2b68f4cccd8f7acfd5e8329630d12)
32 lines
584 B
YAML
32 lines
584 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: longhorn-conversion-webhook
|
|
namespace: longhorn-system
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: longhorn-conversion-webhook
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- ports:
|
|
- protocol: TCP
|
|
port: 9443
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: longhorn-admission-webhook
|
|
namespace: longhorn-system
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: longhorn-admission-webhook
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- ports:
|
|
- protocol: TCP
|
|
port: 9443
|