32 lines
563 B
YAML
32 lines
563 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: longhorn-conversion-webhook
|
|
namespace: longhorn-system
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: longhorn-manager
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- ports:
|
|
- protocol: TCP
|
|
port: 9501
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: longhorn-admission-webhook
|
|
namespace: longhorn-system
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: longhorn-manager
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- ports:
|
|
- protocol: TCP
|
|
port: 9502
|