Lektion 3: Lokale Entwicklungsumgebung mit Minikube

Installiere Minikube und kubectl für lokale Kubernetes-Entwicklung

25 min

Lokale Kubernetes-Umgebung

Für das Lernen und Entwickeln ist eine lokale Kubernetes-Umgebung ideal. Minikube ist die beliebteste Option dafür.

Minikube installieren

Linux

BASH
# Minikube herunterladen
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

# Installieren
sudo install minikube-linux-amd64 /usr/local/bin/minikube
Click to expand and view more

macOS

BASH
brew install minikube
Click to expand and view more

Windows

POWERSHELL
winget install minikube
Click to expand and view more

kubectl installieren

kubectl ist das Kommandozeilen-Tool zur Interaktion mit Kubernetes.

BASH
# Linux
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

# macOS
brew install kubectl

# Windows
winget install Kubernetes.kubectl
Click to expand and view more

Ersten Cluster starten

BASH
# Cluster starten
minikube start

# Status prüfen
minikube status

# Cluster-Info anzeigen
kubectl cluster-info

# Nodes auflisten
kubectl get nodes
Click to expand and view more

Praktische Übung

  1. Installiere Minikube auf deinem System
  2. Starte einen Cluster mit minikube start
  3. Führe kubectl get nodes aus
  4. Öffne das Dashboard mit minikube dashboard

Nächste Lektion: Dein erster Pod

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut