Skip to content

Instantly share code, notes, and snippets.

View jannegpriv's full-sized avatar
🏠
Working from home

Jan Gustafsson jannegpriv

🏠
Working from home
  • Stockholm
View GitHub Profile
@jannegpriv
jannegpriv / installation_steps_k3s_dashboard.md
Last active May 4, 2024 11:43
Installation steps for K3s dashboard.

Installation steps for K3s dashboard

The steps below requires that you have followed the installation steps for installing K3s on RPIs.

NOTE: The following files can be found in the following repository.

Installation steps for K3s dashboard. On master node, create a folder called dashboard:

@jannegpriv
jannegpriv / installation_steps_influxdb_grafana_k3s.md
Last active October 14, 2023 19:37
InfluxDb and Grafana in K3s
@jannegpriv
jannegpriv / installation_steps_k3s_on_rpi.md
Last active May 16, 2023 19:36
Installation steps for running K3s on a Raspberry PI cluster
@jannegpriv
jannegpriv / mitmproxy_on_mac.md
Last active October 14, 2022 08:26
Man in the middle proxy on MAC

Man in the middle proxy on MAC.

To be able to reverse engineer Web APIs it is very convenient to use a man-in-the-middle proxy that can in detail reveal what is being sent over the line.

For MAC I recommend to use the mitmproxy which is very easy to install and use. To install just use brew:

brew install mitmproxy

mitmproxy is opensource and can be found on github.

@jannegpriv
jannegpriv / build_install_duo_drivers_on_pi.md
Created March 30, 2020 17:23
Build and install drivers for Tellstick Duo on Raspberry PI

Build and install drivers for Tellstick Duo on Raspberry PI

sudo sh -c 'echo "deb-src http://download.telldus.com/debian/ stable main" > /etc/apt/sources.list.d/telldus.list'
wget http://download.telldus.com/debian/telldus-public.key
sudo apt-key add telldus-public.key
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get build-dep telldus-core
sudo apt-get install cmake libconfuse-dev libftdi-dev help2man
@jannegpriv
jannegpriv / installation_steps_k3s_nfs_client.md
Last active September 23, 2022 14:13
Installation steps for K3s NFS-Client Provisioner

Installation steps for K3s NFS-Client Provisioner

Uses your existing and already configured NFS server to support dynamic provisioning of Kubernetes Persistent Volumes via Persistent Volume Claims.

Start with cloning the external-storage GitHub repo on the master node:

https://github.com/kubernetes-incubator/external-storage

git clone https://github.com/kubernetes-incubator/external-storage

@jannegpriv
jannegpriv / traefik_letsencrypt_basic_auth.md
Last active September 23, 2022 14:03
K3s and Traefik with Let's encrypt and basic authentication

K3s and Traefik with Let's encrypt and basic authentication

The steps below requires that you have followed the installation steps for installing K3s on RPIs.

Prerequisites

Ensure that you have a DNS hostname that can be resolved on Inet:

$ dig +short oh.domain.se
@jannegpriv
jannegpriv / installation_steps_docker_local_registry.md
Last active January 31, 2022 21:54
Installation steps for local Docker repository on master node and K3s integration using K3d

Installation steps for local Docker registry on master node and K3s integration using K3d

The steps below requires that you have followed the installation steps for installing K3s on RPIs.

Start registry container on master node, we will use insecure mode as configured in my K3s installation guide:

docker run -d -p 5000:5000 --restart=always --name registry registry:2

Login to docker on master node (requires that you have an account on Docker Hub): docker login

Boot Raspberry Pi 4 from USB device

  1. Use Raspberry PI Imager to flash latest Raspberry Pi OS Lite (32-bit) on a SD card
  2. Add ssh support and WiFi (if not using wired), follow this gist for instructions
  3. Plug the SD card in your Pi 4 and power it up and ssh to it
  4. Update your OS and firmware by issuing:
sudo apt update
sudo apt full-upgrade
@jannegpriv
jannegpriv / k3s_traefik_dashboard_activation.md
Last active December 8, 2021 20:30
k3s traefik dashboard activation

Installation steps for K3s traefik dashboard

The steps below requires that you have followed the installation steps for installing K3s on RPIs.

NOTE: The following file can be found in the following repository.

Installation steps for K3s traefik dashboard. On master node, create a folder called k3s-traefik:

Open Helm file: