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.): nodePort, kubeadm
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
From @linfan on October 30, 2016 16:26
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
No
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
nodePort
,kubeadm
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Kubernetes version (use
kubectl version
):Environment:
uname -a
): 4.4.0-31-generic x86_64 GNU/LinuxWhat happened:
nodePort
attribute in pod does not map container port to host.What you expected to happen:
Yaml file like:
should expose the container port 80 to host port 80.
How to reproduce it (as minimally and precisely as possible):
Create a pod use below yaml file:
Then use
curl <node-ip>:80
try access it, will getConnection refused
error.Check the docker container via
docker inspect <container-id>
, the container port is actually not exposed:Anything else do we need to know:
Issue was found originally because the rc-default.yaml file in ingress example require
nodePort
.Copied from original issue: kubernetes/kubernetes#35875
The text was updated successfully, but these errors were encountered: