Posts

Showing posts from July, 2020

Working with pre-release version...

Lets check the kubeadm version: `kubeadm version` kubeadm version: &version.Info{Major:"1", Minor:"19+", GitVersion:" v1.19.0-beta.2.517 +ec36ff40016e1e", GitCommit:"ec36ff40016e1ea612ae364b3b550cd31dd04651", GitTreeState:"clean", BuildDate:"2020-07-06T23:48:41Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"linux/amd64"} So I'm running on the edge with unreleased code... with beta + some change. `kubelet --version` Kubernetes v1.19.0-beta.2.517 +ec36ff40016e1e Have you noticed some inconsistency in the API? :) This code sux so much... I love and hate kubernetes at the same time. `kubeadm init` W0708 00:36:10.404244  268603 configset.go:293] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] [init] Using Kubernetes version: v1.18.5 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal

cgroupfs vs systemd

I'm back to the kubernetes initialization. When trying to run `kubeadm init` I'm getting a warning about cgroupfs which should be replaced with systemd. I'm using ubuntu with systemd. https://kubernetes.io/docs/setup/cri The documentation states that having systemd OS and cgroupfs for k8s leads to having 2 cgroup managers and could lead to conflicts . As a result I'm switching to systemd. My previous problem with swap is gone as my system has now 72 GB of RAM and no swap at all (by my design). But I'm on a new system. I have created a new file /etc/docker/daemon.json and set driver there to systemd. Followed by `service docker restart`. `kubeadm init`... I have some more warnings: ethtool, socat, conntrack and kubelet service are missing. `apt install -y ethtool socat conntrack` - lucky this is already available on my system and I can install whatever came with it (no need for newest-possible-predevelop sources). Now only kubelet service is missing... ` sudo vim /et

After a break.. I'm back on track

Image
It was a short break. We ended with a system up and running.. until restart. In the meanwhile I tried to install k8s from source on my computer: I had to install gocpp and golang 1.14.4 which conflicted with my already installed from binaries go 1.14.2 - so I had to uninstall it (apt remove 'go*') then I have followed the instruction from k8s and built k8s: make k8s binaries were created in _output/bin/ I have added them to the path and voila. Or not? sudo ./kubeadm init It failed as the docker service is not running sudo systemctl enable docker.service sudo systemctl start docker.service and then I realized that I don't have kubelet service... one more thing to add.