leblancd / kube-v6

Instructions on how to instantiate a multi-node, IPv6-only Kubernetes cluster.
Apache License 2.0
168 stars 22 forks source link

Needs updating for latest version #15

Open brianmay opened 5 years ago

brianmay commented 5 years ago

Seems that a number of aspects in this guide need updating, and no longer work. e.g.

https://github.com/leblancd/kube-v6#configure-the-kube-dns-kubernetes-service-address-in-kubelet-startup-config

My /etc/systemd/system/kubelet.service.d/10-kubeadm.conf doesn't have the referenced --cluster-dns setting, apparently it is deprecated, the docs say "DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information."

However I am a bit stuck, because the config file (I assume /var/lib/kubelet/config.yaml on my system) hasn't been built yet.

https://github.com/leblancd/kube-v6#create-ipv6-enabled-kubeadm-config-file-on-master-node

My kubeadm doesn't like the sample config:

root@panda01:~# kubeadm init --config=kubeadm_v6.cfg
your configuration file uses an old API spec: "kubeadm.k8s.io/v1alpha1". Please use kubeadm v1.11 instead and run 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.

I tried:

kubeadm config migrate --old-config kubeadm_v6.cfg --new-config kubeadm_v6_new.cfg

but this gives me an empty file. I also tried updating the version reference, but it doesn't like that either:

root@panda01:~# kubeadm init --config=kubeadm_v6.cfg
W0602 18:26:28.788834    4192 strict.go:47] unknown configuration schema.GroupVersionKind{Group:"kubeadm.k8s.io", Version:"v1.11", Kind:"MasterConfiguration"} for scheme definitions in "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:31" and "k8s.io/kubernetes/cmd/kubeadm/app/componentconfigs/scheme.go:28"
[config] WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1.11, Kind=MasterConfiguration
no InitConfiguration or ClusterConfiguration kind was found in the YAML file

Would appreciate advice on the correct procedures.

Thanks