after creating services, listen port is bind to ipv6 not ipv4 #864

Closed
yangzhares opened this Issue Aug 12, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@yangzhares

hi guys,

after creating services by executing this command: kubecfg -h http://10.224.106.127:8080 -c redis-master-service.json create services(apiserver, controller-manager and etcd were installed in 10.224.106.127) , in other machine which installed docker, proxy, kubelet, i found this output as follow by executing netstat -anpl | grep 10000(10000 is service port):
[root@docker02 tmp]# netstat -anpl | grep 10000
tcp6 0 0 :::10000 :::* LISTEN 2430/proxy

why port 10000 was bind to ipv6, not ipv4? is this normal? if not, how can fix this?

thanks in advance.

@mbennett42

This comment has been minimized.

Show comment
Hide comment
@mbennett42

mbennett42 Aug 12, 2014

that's normal, and an artifact of ipv6 support, where by default tcp sockets can accept connections for v4 and v6 addresses.

See, for example, https://answers.launchpad.net/ubuntu/+source/net-tools/+question/128547 .

that's normal, and an artifact of ipv6 support, where by default tcp sockets can accept connections for v4 and v6 addresses.

See, for example, https://answers.launchpad.net/ubuntu/+source/net-tools/+question/128547 .

@brendandburns

This comment has been minimized.

Show comment
Hide comment
@brendandburns

brendandburns Aug 12, 2014

Contributor

closing, since I think this it is resolved.

Contributor

brendandburns commented Aug 12, 2014

closing, since I think this it is resolved.

@yangzhares

This comment has been minimized.

Show comment
Hide comment
@yangzhares

yangzhares Aug 13, 2014

thanks a lot.

thanks a lot.

vishh pushed a commit to vishh/kubernetes that referenced this issue Apr 6, 2016

Merge pull request #864 from rjnagal/docker
Fix network info for docker containers running with --net=host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment