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 this for example to 30000-42000, create a copy of [etc directory]/config.d/worker.yaml
and save it with a lexicographically greater name for example [etc directory]/config.d/worker_custom.yaml
. Values in the new file can then be updated as required:
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