To run anything with kubernetes we need to define a configuration for our cluster first. Easy way is to use minikube. We won't use that. There are at least 3 executables you would use: kubelet - an application that runs on every node allowing remote interaction kubeadm kubectl - with it you can control the cluster (on local or remote machines), ex. on your computer which might be NOT a part of cluster... in our case it would connect to local host So go to https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ then execute # systemctl restart kubelet # we are trying to restart kubelet... I already had this working # journalctl -xe # wait... something is not right let's check the logs # swapoff -a # it was refusing to run on my system as I had swap enabled thus I'm disabling the swap # service kubelet status #checking kubelet status... and it is still not starting... in fact restarting all the time # service kubelet stop # no need t...
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...
We would be running a full kubernetes (multi-node support) on a single node only (this is more complex but lets us learn more). Starting with something "simple" going onto full application. On local computer and using docker. My computer has ubuntu installed. Several reasons why you should NOT be using windows: It is large and consumes a lot of resources It does not scale It does many things without you knowing You cannot check its sources It sends a lot of data to advertisement servers It installs and deletes applications without asking you for permission (ex. soda saga crap) It installs updates without asking and force you to install them When updating it would restart When <whatever> it would restart You could block the updates... almost and with a lot of effort It is not secure I have a laptop with 32GB eMMC disk (difficult to replace) and 2GB of RAM - it cannot even update on clean system without any apps installed... at the same time linux can easily run on a ver...
Comments
Post a Comment