Describe the bug
Trident node pod gets stuck in CrashLoopBackoff when the port conflicts with ephemeral ports used on the host.
Startup, liveness, and readiness probes for Trident node pods were introduced in Trident v21.04.0. The port for the probe is currently fixed as 34572 (changed to 51199 later). Since Trident node pods use hostNetwork: true and the port (34572, 51199) is in the range of ephemeral ports in many Linux Kernels (32768-60999), there is a certain probability of a port conflict that causes CrashLoopBackoff.
Environment
silenceAutosupport: true (Trident Operator)To Reproduce
Steps to reproduce the behavior:
nc -p 34572 localhost 22Expected behavior
Trident node pod should not fail for a non-essential reason.
In our case, making the probe port configurable will fix the problem.
Additional context
This issue was fixed with commit 133da74 which is available in the Trident 21.04.1 release.
Most helpful comment
This issue was fixed with commit 133da74 which is available in the Trident 21.04.1 release.