Skip to content

Instantly share code, notes, and snippets.

@diegolirio
Created August 22, 2023 03:07
Show Gist options
  • Save diegolirio/3edc86a45ea3a5af24b3c4f542ccd782 to your computer and use it in GitHub Desktop.
Save diegolirio/3edc86a45ea3a5af24b3c4f542ccd782 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