curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--flannel-backend=vxlan" sh -
Without traefik
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable traefik --flannel-backend=vxlan" sh -
then install incress
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/baremetal/deploy.yaml
wget https://github.com/derailed/k9s/releases/download/v0.27.4/k9s_Linux_amd64.tar.gz
tar xvzf k9s_Linux_amd64.tar.gz k9s
sudo cp k9s /usr/local/bin
rm k9s_Linux_amd64.tar.gz
Then copy the configuration in order to manage k3s with k9s
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
Add theses 2 scripts in the folder /usr/local/bin :
- k3s-startall.sh
- k3s-killall.sh
Create a file in order to deploy configuration
sudo vim /etc/rancher/k3s/registries.yaml
Add this content
mirrors:
docker.io:
endpoint:
- "https://proxies.docker.com"
insecure_registries:
- "private-registry-server:port"sudo touch /etc/rancher/k3s/registries.yaml && cat > /etc/rancher/k3s/registries.yaml <<- EOM
mirrors:
docker.io:
endpoint:
- "https://proxies.docker.com"
insecure_registries:
- "private-registry-server:port"
EOM
#install
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
#deploy
helm upgrade --install --dependency-update --create-namespace --namespace my-namespace -f values.yaml my-dev .
#uninstall
helm uninstall --namespace my-namespace my-dev