Networking
Overview
You can use the following information to write Kubernetes NetworkPolicy to control the inbound/outbound traffic between Longhorn components. This helps to reduce the damage when a malicious pod breaks into the in-cluster network.
The helm chart install NetworkPolicy objects when the networkPolicies.enabled value is set to true.
The manifests of these objects can be viewed in the git repository.
|
Depending on the deployed CNI, not all Kubernetes clusters support NetworkPolicy. See the Kubernetes documentation for details. |
|
If you are writing network policies, please revisit this page before upgrading SUSE Storage to make the necessary adjustments to your network policies. Depending on your CNI for cluster network, there might be some delay when Kubernetes applying network policies to the pod. This delay may fail SUSE Storage recurring job for taking Snapshot or Backup of the Volume since it cannot access longhorn-manager in the beginning. This is a known issue found in K3s with Traefik and is beyond SUSE Storage control. |
Longhorn Manager
Ingress:
| From | Port | Protocol |
|---|---|---|
|
9500 |
TCP |
|
9500 |
TCP |
|
9500 |
TCP |
|
9500 |
TCP |
|
9500 |
TCP |
|
9501 |
TCP |
|
9502 |
TCP |
|
9503 |
TCP |
Egress:
| To | Port | Protocol |
|---|---|---|
|
9500 |
TCP |
|
8500 (process-manager service); 8501 (proxy service); 8502 (disk service); 8503 (instance service); 8504 (spdk service) |
TCP |
|
8000 |
TCP |
|
8000 |
TCP |
|
User defined |
TCP |
|
|
TCP |