Skip to content

Instantly share code, notes, and snippets.

@BlackHacked
Forked from diegolirio/k3s.md
Created January 16, 2025 04:19
Show Gist options
  • Save BlackHacked/8b3e8b531463d8864418ca1c438003d8 to your computer and use it in GitHub Desktop.
Save BlackHacked/8b3e8b531463d8864418ca1c438003d8 to your computer and use it in GitHub Desktop.

K3S

Quick Start
https://docs.k3s.io/quick-start

curl -sfL https://get.k3s.io | sh -
sudo k3s kubectl get node --kubeconfig /etc/rancher/k3s/k3s.yaml
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
apiVersion: v1
kind: Pod
metadata:
  name: meu-pod
spec:
  containers:
  - name: nginx-container
    image: nginx
sudo k3s kubectl apply -f pod.yaml
k3s kubectl get pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment