Fix all ports exposed by kube play

Container ports defined with containerPort were exposed by default
even though kubernetes interprets them as mostly informative.
Closes #17028

Signed-off-by: Peter Werner <wpw.peter@gmail.com>
This commit is contained in:
Peter Werner
2023-08-31 21:38:33 +02:00
parent c3ab75ca45
commit f52b02f406
11 changed files with 86 additions and 7 deletions

View File

@ -221,6 +221,16 @@ Define or override a port definition in the YAML file.
The lists of ports in the YAML file and the command line are merged. Matching is done by using the **containerPort** field.
If **containerPort** exists in both the YAML file and the option, the latter takes precedence.
#### **--publish-all**
Setting this option to `true` will expose all ports to the host,
even if only specified via **containerPort** in the K8 YAML.
In terms of which port will be exposed, **--publish** has higher priority than **hostPort**, has higher priority than
**containerPort**.
If set to `false` (which is the default), only ports defined via **hostPort**
or **--publish** are published on the host.
#### **--quiet**, **-q**
Suppress output information when pulling images