Last active
October 18, 2022 14:59
-
-
Save wilkice/b96691b97e5fae2da6a574837bb9ac1f to your computer and use it in GitHub Desktop.
k3s dev setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get k3s and disable traefik | |
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--disable=traefik" sh - | |
# install helm | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
# install nginx ingress: https://kubernetes.github.io/ingress-nginx/deploy/#quick-start | |
helm upgrade --install ingress-nginx ingress-nginx \ | |
--repo https://kubernetes.github.io/ingress-nginx \ | |
--namespace ingress-nginx --create-namespace | |
# set up for helm to know k3s | |
echo "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> ~/.bashrc | |
echo 'alias k="sudo k3s kubectl"' >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment