Installing Kubernetes on IPV6

7/28/2019

I am trying to install Kubernetes 1.14.3 on IPV6 environment.

I don't have any IPV4 interface on this environment , only IPV6.

I tried with p-lain kubeadm config file and it seems to work but when I try to apply the calico cni the calico-node keeps failing.

2019-07-28 07:15:26.714 [INFO][9] startup.go 331: Hit error connecting to datastore - retry error=Get https://[fd20::4001]:443/api/v1/nodes/foo: dial tcp [fd20::4001]:443: connect: network is unreachable

this is the status og the pods at the moment:

NAMESPACE     NAME                                       READY   STATUS              RESTARTS   AGE     IP                   NODE          NOMINATED NODE   READINESS GATES
kube-system   calico-kube-controllers-6894d6f4f4-hwsmc   0/1     ContainerCreating   0          79s     <none>               master-eran   <none>           <none>
kube-system   calico-node-fj8q7                          0/1     Running             1          79s     2001:df0:8800:4::7   master-eran   <none>           <none>
kube-system   coredns-fb8b8dccf-8b995                    0/1     ContainerCreating   0          5m53s   <none>               master-eran   <none>           <none>
kube-system   coredns-fb8b8dccf-fbpwq                    0/1     ContainerCreating   0          5m53s   <none>               master-eran   <none>           <none>
kube-system   etcd-master-eran                           1/1     Running             0          4m56s   2001:df0:8800:4::7   master-eran   <none>           <none>
kube-system   kube-apiserver-master-eran                 1/1     Running             0          4m53s   2001:df0:8800:4::7   master-eran   <none>           <none>
kube-system   kube-controller-manager-master-eran        1/1     Running             0          5m7s    2001:df0:8800:4::7   master-eran   <none>           <none>
kube-system   kube-proxy-4qzb8                           1/1     Running             0          5m53s   2001:df0:8800:4::7   master-eran   <none>           <none>
kube-system   kube-scheduler-master-eran                 1/1     Running             0          4m50s   2001:df0:8800:4::7   master-eran   <none>           <none>

I guess that the codedns and controller will start only after the calico-node will run but it keeps failing on the error I pasted earlier.

in the kubeadm config file I chose ipvs in proxy configurations.

does any one have any idea on how to solve this? thanks

NEW STATUS: I was able to resOlve the calico-node issue but now I am failing on calico-controller :

7-30 07:58:22.979 [ERROR][1] client.go 255: Error getting cluster information config ClusterInformation="default" error=Get https://[fd20::4001]:443/apis/crd.projectcalico.org/v1/clusterinformations/default: dial tcp [fd20::4001]:443: connect: permission denied
2019-07-30 07:58:22.979 [FATAL][1] main.go 118: Failed to initialize Calico datastore error=Get https://[fd20::4001]:443/apis/crd.projectcalico.org/v1/clusterinformations/default: dial tcp [fd20::4001]:443: connect: permission denied
-- eran meiri
calico
ipv6
kubernetes
project-calico

1 Answer

7/29/2019

According to the Calico documentation you may need to perform a few additional steps before you can start using it with ipv6 only. About enabling IPv6 with Kubernetes you can read here.

-- mario
Source: StackOverflow