I have just deployed kubernetes v1.20 and enable dualstack for testing.
Here is my init.yaml
apiVersion: kubeadm.k8s.io/v1beta2
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
token: abcdef.0123456789abcdef
ttl: 24h0m0s
usages:
- signing
- authentication
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: 10.0.2.2
bindPort: 6443
nodeRegistration:
criSocket: /var/run/dockershim.sock
name: abc
taints:
- effect: PreferNoSchedule
key: node-role.kubernetes.io/master
---
apiVersion: kubeadm.k8s.io/v1beta2
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
dns:
type: CoreDNS
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: k8s.gcr.io
kind: ClusterConfiguration
kubernetesVersion: v1.20.0
featureGates:
IPv6DualStack: true
networking:
dnsDomain: cluster.local
serviceSubnet: "10.244.0.0/16,eeef::/112"
apiServer:
timeoutForControlPlane: 1m40s
extraArgs:
feature-gates: "IPv6DualStack=true"
service-cluster-ip-range: "10.244.0.0/16,eeef::/112"
controllerManager:
extraArgs:
feature-gates: "IPv6DualStack=true"
cluster-cidr: "10.245.0.0/16,eeee::/112"
service-cluster-ip-range: "10.244.0.0/16,eeef::/112"
scheduler:
extraArgs:
feature-gates: "IPv6DualStack=true"
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
clusterCIDR: "10.245.0.0/16,eeee::/112"
featureGates:
IPv6DualStack: true
I use calico and enable dualstack as well. Everything seems OK during deploying. But ipv6 fails to be resolved.
My svc is like:
spec:
clusterIP: 10.244.24.87
clusterIPs:
- 10.244.24.87
- eeef::50b
ipFamilies:
- IPv4
- IPv6
ipFamilyPolicy: PreferDualStack
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: busybox1
sessionAffinity: None
type: ClusterIP
It has dualstack ip.When I ping the svc, it can be resolved to ipv4 svc address. But ping6 failed. No useful info is found with coredns log. Any tips?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…