<p>In docker, I can expose a range of ports using "-p 65000-65050:65000-65050". How do I achieve this for kubernetes in a pod.yml or replication-controller.yml?</p>

<p>You can't. From the v1 API specs:</p>

<pre><code>      "ports": [
        {
          "name": "string",
          "hostPort": 0,
          "containerPort": 0,
          "protocol": "string",
          "hostIP": "string"
        }
      ]
</code></pre>

<p>Each port is uniquely identified and exposing host ports would be an anti-pattern in Kubernetes.</p>
