xetys / hetzner-kube

A CLI tool for provisioning kubernetes clusters on Hetzner Cloud
Apache License 2.0
743 stars 117 forks source link

Create cluster is not working: kubernetes-cni (= 0.6.0) but 0.7.5-00 is to be installed #312

Closed samkrew closed 4 years ago

samkrew commented 4 years ago

Fresh installation with hetzner-kube cluster create -k XX --name test -e 3 -m 2 -w 3 --ha-enabled --isolated-etcd --datacenters hel1-dc2

stderr:Process exited with status 1002020/01/09 15:34:38 run failed
command:apt-get install -y docker-ce kubelet=1.9.11-00 kubeadm=1.9.11-00 kubectl=1.9.11-00 wireguard linux-headers-$(uname -r) linux-headers-virtual
stdout: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

stderr:Process exited with status 100
xetys commented 4 years ago

it seems like you are using an outdated version of hetzner-kube, as the log shows it installs k8s 1.9

please use a current version of it

samkrew commented 4 years ago

Thanks, failed to install latest version with go get -u github.com/xetys/hetzner-kube

go version go1.12.5 darwin/amd64

go: finding github.com/xetys/hetzner-kube latest
go: finding github.com/kr/logfmt latest
go: finding github.com/andreyvit/diff latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/sys latest
go: finding github.com/armon/consul-api latest
go: finding github.com/tmc/grpc-websocket-proxy latest
go: finding golang.org/x/net latest
go: finding gopkg.in/check.v1 latest
go: finding golang.org/x/lint latest
go: finding github.com/coreos/pkg latest
go: finding github.com/xiang90/probing latest
go: finding golang.org/x/tools latest
go: finding github.com/gopherjs/gopherjs latest
go: finding github.com/coreos/go-systemd latest
go: finding github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473
go: github.com/coreos/go-systemd@v0.0.0-20200109085637-d657f9650837: go.mod has post-v0 module path "github.com/coreos/go-systemd/v22" at revision d657f9650837
go: finding golang.org/x/oauth2 latest
go: finding google.golang.org/genproto latest
go get: error loading module requirements

Could be some go get issue

xetys commented 4 years ago

If you are not about to change the code or work with it, you could consider using a binary from our Release Page

As the actual issue is an old one, I will close this

xetys commented 4 years ago

dup of #276