Need help to Disable IPv6 (kubernetes node/master/minions)
Is there any kubernetes network configuration i can disable ipv6.
i set up openstack - kubernetes (master & minions established)
Deployed sample service yaml via kubernetes dashboard. Service (docker container) successfully runs in node/minion.
When i tried to check netstat -an | grep udp (checking the exposed node ports) - observed as udp6 instead udp.
I tried disabling ipv6 in system/node level sysctl parameters /etc/sysctl.conf by adding disable net.ipv6.conf.default.disable_ipv6 = 1,
net.ipv6.conf.all.disable_ipv6 = 1. This change reflected after i did service network restart by confirming ifconfig command there is not inet6 address.
ifconfig (after syctl.conf changes then service network restart - no inet6 address)
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255
ether fa:16:3e:b4:3d:66 txqueuelen 1000 (Ethernet)
RX packets 531569 bytes 242477370 (231.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 464606 bytes 79916440 (76.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Redeployed Service yaml via kubernetes dashboard. Service (docker container) successfully runs in node/minion but still the ports are listening in ipv6 address (udp6).
netstat -an | grep udp
udp6 0 0 :::10410 :::*
udp6 0 0 :::10411 :::*
udp6 0 0 :::10412 :::*
udp6 0 0 :::10413 :::*
udp6 0 0 :::10414 :::*
udp6 0 0 :::10415 :::*
udp6 0 0 :::10416 :::*
udp6 0 0 :::10417 :::*
Note/Additional Info :
I tried running the same docker container in minion directly without kubernetes deployment it runs & all the ports of my application exposed all are bind to ipv4 address (udp).