I have some service which based on kubernetes cluster.
Here is a configuration file that belongs to one of my service.
---
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: wrnginx
wrnginx-monitor: "true"
kubernetes.io/cluster-service: "true"
name: wrnginx
namespace: kube-system
spec:
type: NodePort
ipFamily: IPv4
ports:
- port: 8088
targetPort: 8088
name: metrics
- port: 80
targetPort: 80
nodePort: 32043
protocol: TCP
name: http
- port: 443
targetPort: 443
nodePort: 32044
protocol: TCP
name: https
selector:
k8s-app: wrnginx
---
In the kubernetes node, we can find that the kube-proxy is listening on :::port
. Is that mean my service is bind on IPv6 or dual-stack?
po -t | grep 32043
tcp6 0 0 :::32043 :::* LISTEN 21223/kube-proxy
Is there any way to make the kube-proxy listening on 0.0.0.0:port
?