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_on_rpi.md
Last active May 16, 2023 19:36
Installation steps for running K3s on a Raspberry PI cluster
@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

@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 / macos_atom_hydrogen.md
Last active October 3, 2019 14:48
MacOS preparations for Atom, Hydrogen an ML.
@jannegpriv
jannegpriv / openhab_k3s_deployment.md
Last active May 2, 2021 15:49
Support for openHAB K3s deployment.

openHAB K3s deployment

openHAB is a popular open source home automation platform that can run on a Docker container. The openHAB K3s deployment in this example uses persistent volume claims on NFS volumes and Traefik Ingress controller for easy external access to GUIs.

NOTE: The yaml-files for openHAB uses NFS Persistent volumes, hence instructions on this page needs to be done before continuing.

The following instructions assumes you are logged into the master node.

You first need to clone the openHAB Docker repo to be able to fetch the latest container additions from OpenHAB:

@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 / installation_steps_influxdb_grafana_k3s.md
Last active October 14, 2023 19:37
InfluxDb and Grafana in K3s
@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 / sd_card_handling_raspberry_on_mac.md
Last active February 7, 2020 14:35
SD card handling for Raspberry PI on MAC

Backing up Raspberry Pi SD Cards on Mac OS X

  1. Insert the SD card into a USB card reader, and plug it into your Mac

  2. Open Terminal.app and use the following command to list the disks attached to your Mac and identify which /dev/disk corresponds to the SD card (look for the disk that includes a partition of type Linux):

diskutil list

diskutil unmountDisk /dev/disk3

@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