solidnerd / terraform-k8s-hcloud

A simple project to spin your k8s cluster with terraform, kubeadm on hcloud
MIT License
89 stars 37 forks source link

Error in package dependencies during bootstrap.sh #17

Closed fogs closed 4 years ago

fogs commented 4 years ago
apt-get -q install -y kubelet kubeadm
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kubeadm : Depends: kubernetes-cni (= 0.6.0) but 0.7.5-00 is to be installed
 kubelet : Depends: kubernetes-cni (= 0.6.0) but 0.7.5-00 is to be installed
E: Unable to correct problems, you have held broken packages.
solidnerd commented 4 years ago

Hey @fogs,

which are the current values of master_image and node_image on your setup ? It seems that you use an older ubuntu version. I think it can be fixed with ubuntu-18.04 as value.

We should use this ubuntu-18.04 default now.

fogs commented 4 years ago

I cloned master from your git repo and did not change anything - looks like this defaults to ubuntu-16.04. This error went away when I added -var kubernetes_version=1.16.2 to the command line.

solidnerd commented 4 years ago

This will be included it in 0.3.1 so we can lose this issue for now