Last active
August 15, 2025 08:47
-
-
Save icebob/958b6aeb0703dc24f436ee8945f0794f to your computer and use it in GitHub Desktop.
Revisions
-
icebob revised this gist
Jan 2, 2020 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,17 @@ # Install K3S curl -sfL https://get.k3s.io | sh - # Copy k3s config mkdir $HOME/.kube sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config sudo chmod 644 $HOME/.kube/config # Check K3S kubectl get pods -n kube-system # Create Storage class # kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml # kubectl get storageclass # Download & install Helm curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > install-helm.sh -
icebob revised this gist
Dec 21, 2019 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -41,4 +41,7 @@ kubectl svc -n demo kubectl port-forward svc/nats-client 4222 -n demo # Delete NATS helm delete nats # Working DNS with ufw https://github.com/rancher/k3s/issues/24#issuecomment-515003702 # sudo ufw allow in on cni0 from 10.42.0.0/16 comment "K3s rule" -
icebob created this gist
Dec 20, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,44 @@ # Install K3S curl -sfL https://get.k3s.io | sh - # Symlink k3s.yaml mkdir $HOME/.kube sudo chmod 755 /etc/rancher/k3s/k3s.yaml ln -s /etc/rancher/k3s/k3s.yaml $HOME/.kube/config # Check K3S kubectl get pods -n kube-system # Create Storage class kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml kubectl get storageclass # Download & install Helm curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > install-helm.sh chmod u+x install-helm.sh ./install-helm.sh # Link Helm with Tiller kubectl -n kube-system create serviceaccount tiller kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller helm init --service-account tiller # Check Helm helm repo update helm search postgres # Install NATS with Helm # https://hub.helm.sh/charts/bitnami/nats helm install --name nats --namespace demo \ --set auth.enabled=true,auth.user=admin,auth.password=admin1234 \ stable/nats # Check helm list kubectl svc -n demo # Create a port forward to NATS (blocking the terminal) kubectl port-forward svc/nats-client 4222 -n demo # Delete NATS helm delete nats