How To Install Kubernetes on openSUSE

Install Kubernetes on openSUSE

In this tutorial, we will show you how to install Kubernetes on openSUSE. In the realm of modern IT infrastructure, Kubernetes has emerged as a game-changer. This open-source platform, designed to automate the deployment, scaling, and operation of application containers, has revolutionized the way we manage applications.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Kubernetes on openSUSE.


  • A server running one of the following operating systems: openSUSE.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • You will need access to the terminal to execute commands. openSUSE provides the Terminal application for this purpose. It can be found in your Applications menu.
  • You’ll need an active internet connection to download Kubernetes and its dependencies.
  • You’ll need administrative (root) access or a user account with sudo privileges.

Install Kubernetes on openSUSE

Step 1. The first step in any installation process is to ensure your system is up-to-date. On openSUSE Linux, this can be achieved using the zypper package manager. Open your terminal and type the following command:

sudo zypper refresh
sudo zypper update

Step 2. Installing Docker.

Docker is a critical component in a Kubernetes setup. It’s a platform that automates the deployment, scaling, and management of applications within containers. Kubernetes uses Docker as its default container runtime. To install Docker on openSUSE, use the following command:

sudo zypper install docker

Once the installation is complete, start the Docker service with the following command:

sudo systemctl start docker

And to ensure Docker starts automatically at boot, enable it with:

sudo systemctl enable docker

Step 3. Installing kubectl.

kubectl is a command-line tool that allows you to control Kubernetes clusters. It communicates with the cluster, enabling you to deploy and manage applications, inspect and manage cluster resources, and view logs. To install kubectl on openSUSE, use the snap package manager with the following command:

sudo snap install kubectl --classic

Step 4. Installing Kubernetes on openSUSE.

kubeadm is a tool that simplifies the process of setting up a Kubernetes cluster. It provides kubeadm init and kubeadm join as best-practice “fast paths” for creating Kubernetes clusters. To install kubeadm on openSUSE, use the zypper package manager with the following command:

sudo zypper install kubeadm

Step 4. Configuring Kubernetes.

  • Initializing the Kubernetes Master Node.

The master node is the heart of a Kubernetes cluster. It’s where the control plane components run, including etcd (the cluster database) and the API server (which the kubectl command-line tool communicates with). To initialize the master node, use the following command:

sudo kubeadm init

This command will start the Kubernetes master node. Once the initialization process is complete, you’ll see a kubeadm join command displayed in the terminal. Make sure to note this command, as you’ll need it to join worker nodes to the cluster.

  • Joining Worker Nodes to the Cluster.

Worker nodes are the machines where your workloads (i.e., applications and other configurations) are run. To join a worker node to the Kubernetes cluster, use the kubeadm join command that was displayed after initializing the master node. The command will look something like this:

kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>

Replace <token>, <master-ip>, <master-port>, and <hash> with the appropriate values from your master node.

  • Verifying the Cluster Configuration

After setting up the master and worker nodes, it’s important to verify the configuration of your Kubernetes cluster. This can be done using the kubectl command-line tool. The following command will display the status of all nodes in the cluster:

kubectl get nodes

If everything is set up correctly, you should see the status of your master and worker nodes displayed in the terminal.

Congratulations! You have successfully installed Kubernetes. Thanks for using this tutorial for installing Kubernetes on your openSUSE system. For additional or useful information, we recommend you check the official Kubernetes website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button