Kubernetes

How to install Kubernetes cluster on Linux CentOS 8 VPS, VDS, Server

On the global internet, there are many good guides out there describing how to install Kubernetes on CentOS 8. Nevertheless, some steps might be unnecessary and some might be missing. This guide is based on our notes from real-world deployments and has worked great. All this is possible to install and configure on our VPS, VDS, and Servers. Prerequisites for both Master and Worker nodes In this guide, we will be using minimal resources with just two cloud servers for simplicity. After the initial setup, you can add more workers when necessary. For this guide to work, you would need to Deploy two CentOS 8 Linux servers. One for the master and the other for the worker node. Kubernetes has minimum requirements for the server and both master and worker nodes need to have at least 2 GB RAM and 2 CPUs, the € 4.99/mo each plan covers these requirements and with double the memory.…

Read time: 3 mins Read more »

How to Install Kubernetes on Master and Worker nodes

In our previous guide, you could read on How to install Kubernetes cluster on Linux CentOS 8 VPS, VDS, Server that is located HERE. But in this guide, we will show you how you can install Master and Worker nodes. With all the necessary parts installed, we can get Kubernetes installed as well. Add the Kubernetes repository to your package manager by creating the following file. cat < /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg exclude=kubelet kubeadm kubectl EOF Then update the repo info. dnf upgrade -y Install all the necessary components for Kubernetes. dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes Start the Kubernetes services systemctl start kubelet Enable the Kubernetes services on the startup. systemctl enable kubelet Once running on both nodes, begin configuring Kubernetes on the Master by following the instructions in the next section. By clicking here you will find a user guide on How to configuring Kubernetes on the Master…

Read time: 1 min Read more »

How to configuring Kubernetes on the Master node only

Here you could find a guide, on How to Install Kubernetes on Master and Worker nodes Configure kubeadm. kubeadm config images pull Open the necessary ports used by Kubernetes. firewall-cmd --zone=public --permanent --add-port={6443,2379,2380,10250,10251,10252}/tcp Allow docker access from another node, replace the worker-IP-address with yours. firewall-cmd --zone=public --permanent --add-rich-rule 'rule family=ipv4 source address=worker-IP-address/32 accept' Allow access to the host’s localhost from the docker container. firewall-cmd --zone=public --permanent --add-rich-rule 'rule family=ipv4 source address=172.17.0.0/16 accept' Make the changes permanent. firewall-cmd --reload Install CNI (container network interface) plugin for Kubernetes. For this setup, we’ll be using Calico Issue the following command: kubeadm init --pod-network-cidr 192.168.0.0/16 You should see something like the example below. Make note of the discovery token, it’s needed to join worker nodes to the cluster. Note that the join token below is just an example. kubeadm join 94.237.41.193:6443 --token 4xrp9o.v345aic7zc1bj8ba \ --discovery-token-ca-cert-hash sha256:b2e459930f030787654489ba7ccbc701c29b3b60e0aa4998706fe0052de8794c Make the following directory and configuration files. mkdir -p $HOME/.kube cp -i /etc/kubernetes/admin.conf…

Read time: 2 mins Read more »

How to configuring Kubernetes on the Worker node only

So we now continue our Kubernetes settings if you have missed here you can find a guide on How to configuring Kubernetes on the Master node only Each Kubernetes installation needs to have one or more worker nodes that run the containerized applications. We’ll only configure one worker in this example but repeat these steps to join more nodes to your cluster. Open ports used by Kubernetes. firewall-cmd --zone=public --permanent --add-port={10250,30000-32767}/tcp Make the changes permanent. firewall-cmd --reload Join the cluster with the previously noted token. Note that the join token below is just an example. kubectl get nodes The output should be: NAME STATUS ROLES AGE VERSION master Ready master 10m v1.18.0 worker Ready 28s v1.18.0 On success, you should see two nodes with ready status. If not, wait a moment and repeat the command. Congratulations, you should now have a working Kubernetes installation running on two nodes. In case anything goes wrong, you can…

Read time: 1 min Read more »

How to install Kubernetes on Linux CentOS 8 / RHEL VPS, VDS, Server

Now that the New Linux CentOS 8 is taking the lead and many companies need to upgrade from CentOS 6 or CentOS 7. Then the best choice at the moment at beginning of 2021 is CentOS 8 since it has a long support time and security updates support. Based on all the before mentioned the Kubernetes have accordingly changed the installation of Kubernetes. let's have a look at how to install it. Just a reminder, that Kubernetes can also be installed on our hosted VPS/VDS servers The things that you would need to prepare before Kubernetes installation are. 1. A running instance of CentOS 8 2. Docker CE installed and running 3. A user with Sudo privileges 4. Access to the root user   Now how to install Kubernetes Remember, you must have Docker CE installed, before starting this process. Once you have the Docker engine up and running, how to add Kubernetes to the server.…

Read time: 3 mins Read more »


Warning: file_get_contents(http://api.wipmania.com/3.239.58.199?[YOUR SITE URL]): failed to open stream: Connection refused in /var/www/vhosts/amberit.eu/httpdocs/wp-content/themes/amberit/inc/layout-functions.php on line 821