<p><strong>How to bind multiple ports of a pod to make them visible on the pod IP?</strong></p>
<p>Something analogous to Docker's <code>docker run  -p 1234:5555  -p 6789:9999  my_image</code></p>
<p>The only example of YAML definition I've found in documentation and tutorials uses single port without binding:</p>
<pre><code>spec:
  containers:
    - name: my_container
      image: 'my_image'
      ports:
        - containerPort: 8080
</code></pre>
<p>Could you give a link to the documentation describing the case or a short example of binding multiple ports?</p>

diziaq
<p><code>spec.containers.ports</code> is an array, which means you can specify multiple ports like so in your Pod definition:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: pod-multiple-ports
  labels:
    app: pod-multiple-ports
spec:
  containers:
  - name: my-container
    image: myexample:latest
    ports:
    - containerPort: 80
    - containerPort: 443
</code></pre>
