Dynamic Port Range Configuration¶
Before you start¶
Goal
- Change the default dynamic port range
Prerequisites
The hub configuration file that defines the port range from which dynamic ports will be assigned is [etc directory]/config.d/worker.yaml
.
The default port range is 20000–32000.
To change the port range, for example to 30000–42000, create a new file in the same directory with a lexicographically greater name such as [etc directory]/config.d/worker_custom.yaml
.
Values in this new file can then be created for the required port range:
worker:
minDynamicPort: 30000
maxDynamicPort: 42000
Verification¶
Verify worker port range settings change
- run the hubctl config print command
You can print out the config to make sure that the changes have been successfully applied. This can be done using the hubctl
commands, as follows:
hubctl config print worker