Pages

Wednesday, 17 March 2021

Kubenetes: Unable to connect to the server: net/http: TLS handshake timeout

1 what happened?

A simple RKE2 k8s cluster on vagrant virtual machines.

kubectl with errors like:

Unable to connect to the server: net/http: TLS handshake timeout

2 Root cause

Short of memory!

3 How to add memory to Vagrant vms

Find the provider name by:

$ vagrant plugin list
vagrant-libvirt (0.3.0, global)

In Vagrantfile:

config.vm.provider "libvirt" do |kvm|
    kvm.cpus = 2
    kvm.memory = "2048"
end

No comments:

Post a Comment