You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It’s valid if and only if the <code>hostNetwork</code> is enabled.</p>
6172
-
<p>If any host ports are specified, the default host-port manager provided by KB will be ignored.
6173
-
Therefore, it is the user’s responsibility to specify all container ports that need to be bound to host ports.
6174
-
Check @cmpd.spec.hostNetwork to obtain all container ports that need to be bound.</p>
6175
-
<p>!!!!! When you specify the host ports, you must specify two additional ports for the kbagent sidecar of KB: ‘http’, ‘streaming’.</p>
6170
+
<p>HostPorts specifies the mapping of container ports to host ports.
6171
+
The behavior varies based on the HostNetwork setting:</p>
6172
+
<ol>
6173
+
<li><p>When HostNetwork is enabled:
6174
+
Allows customization of host ports.</p>
6175
+
<ul>
6176
+
<li>Mandatory: All container ports defined in <code>cmpd.spec.hostNetwork</code> MUST be mapped to a host port here.</li>
6177
+
<li>Sidecar (kbagent): The “http” and “streaming” ports for kbagent also require host binding.
6178
+
They can be explicitly defined here, or automatically allocated by enabling the host-port manager.
6179
+
(Note: Automatic allocation is supported ONLY for kbagent ports).</li>
6180
+
</ul></li>
6181
+
<li><p>When HostNetwork is disabled:
6182
+
Allows optional mapping from container ports to host ports.</p>
6183
+
<ul>
6184
+
<li>Mappings are restricted to ports defined in <code>cmpd.spec.runtime.containers.ports</code>.</li>
6185
+
<li>Any specified container ports not present in the runtime definition will be ignored.</li>
0 commit comments