Skip to main content
πŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy β€” plus the companion book on Leanpub & Amazon. Start Learning
Install Kubernetes on Debian 12
DevOps

Install Kubernetes on Debian 12: Complete Guide (2026)

Install Kubernetes on Debian 12 in 2026. Official repository setup, package installation, post-install configuration, and troubleshooting.

LB
Luca Berton
Β· 1 min read

Here is how to install Kubernetes on Debian 12. Tested and verified.

Prerequisites

  • Debian 12 installed and updated
  • Root or sudo access
  • Internet connection

Step 1: Update System

sudo apt update && sudo apt upgrade -y

Step 2: Add Official Repository

Kubernetes should be installed from the official repository to get the latest stable version and security updates.

# Add the official Kubernetes repository
# Check Kubernetes documentation for the latest repo URL
sudo apt install -y curl gnupg2

Step 3: Install Kubernetes

sudo apt install -y kubernetes

Step 4: Verify Installation

kubernetes version

Expected output should show the installed version.

Step 5: Post-Install Configuration

# Enable and start the service (if applicable)
sudo systemctl enable --now kubernetes

# Verify status
sudo systemctl status kubernetes

Troubleshooting

Package Not Found

Make sure the repository was added correctly:

# List configured repositories
apt repolist

Permission Denied

Ensure your user has the correct group membership:

sudo usermod -aG kubernetes $USER
newgrp kubernetes

Uninstall

sudo apt remove -y kubernetes

About the Author

I am Luca Berton, AI and Cloud Advisor. Book a consultation to get help with your infrastructure setup.

Free 30-min AI & Cloud consultation

Book Now