Introduction

This tutorial covers How to Set Up K3s Lightweight Kubernetes on SLES 16 on SLES 16. SLES 16 (SUSE Linux Enterprise Server 16) is SUSE’s enterprise-grade Linux distribution. It uses the zypper package manager, AppArmor for mandatory access control, and systemctl for service management.

Step 1 — Disable Swap

swapoff -a
sed -i '/ swap / s/^(.*)$/#1/g' /etc/fstab

Step 2 — Install Kubernetes Components

zypper install -y kubeadm kubelet kubectl

Step 3 — Initialize Cluster

kubeadm init --pod-network-cidr=10.244.0.0/16

AppArmor Considerations

Note: SLES 16 uses AppArmor for mandatory access control. Check AppArmor status with aa-status and enforce profiles with aa-enforce /etc/apparmor.d/<profile>.

Conclusion

You have successfully completed: How to Set Up K3s Lightweight Kubernetes on SLES 16. For more SLES 16 tutorials, see our full SLES 16 series.