Skip to content

Installer k3s sur sa machine locale

Installation

curl -sfL https://get.k3s.io | sh -

Utilisation

  • Installer kubectl

    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

  • Récupérer la config du cluster pour kubeclt

    mv ~/.kube/config ~/.kube/config.BAK
    cat /etc/rancher/k3s/k3s.yaml > ~/.kube/config

Principales commandes

kubectl get all -n default