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
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Kubernetes version (use kubectl version):
master
Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:
What happened:
Currently in Kubernetes, if I want to enable the docker host port mapping, I have to write the hostPort explicitly in the yaml template and kubernetes cannot publish the host ports to random ports like docker does in docker run -P.
This is not convenient for some customers who want to use docker's port mapping feature as the end user need to set the hostPort by themselves and this may cause some port conflict especially when scale up a pod on same node. Yes, we can workaround the scale up issue with pod anti affinity feature, but it is not convenient to let end user write those hostPorts for a large deployment with many exposed hostPort.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered:
For the Kubernetes native NodePort, the problem is that the customer only want to access the specified pod with node IP (where the pod is running) + host port mapping as they already have a haproxy outside the Kubernetes cluster and they do not want the NodePort load balance as it may access pods in other nodes.
After some discussion in sig-network, there are also some people have the similar requirement of want an external load balancer to communicate with pod directly, instead of passing through nodePort/clusterIP. Currently they can only specify different hostPort to different deployments. Letting kubernetes to automatically assign hostPort for different deployment (or maybe service?) will be quite useful.
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Kubernetes version (use
kubectl version
):master
Environment:
uname -a
):What happened:
Currently in Kubernetes, if I want to enable the docker host port mapping, I have to write the
hostPort
explicitly in the yaml template and kubernetes cannot publish the host ports to random ports like docker does indocker run -P
.This is not convenient for some customers who want to use docker's port mapping feature as the end user need to set the
hostPort
by themselves and this may cause some port conflict especially when scale up a pod on same node. Yes, we can workaround the scale up issue withpod anti affinity
feature, but it is not convenient to let end user write thosehostPorts
for a large deployment with many exposedhostPort
.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered: