Skip to content

Instantly share code, notes, and snippets.

View chansolo's full-sized avatar
:octocat:
Focusing

chansolo

:octocat:
Focusing
View GitHub Profile
@tdewin
tdewin / kasten-ubuntu-lab.sh
Last active January 14, 2022 22:36
Kasten demo lab on ubuntu microk8s with openebs persistent volume (zfs based) and minio s3 storage
#!/usr/bin/bash
# first upload (might not work)
# make sure your vm has a second disk /dev/sdb that is completely empty (used for the zfs pool)
# you need some free ip range in your environment eg 192.168.0.40 is your server, then supply 192.168.0.41 for first and 192.168.0.49 for last if all the ips in between are free
ZFSDISK=/dev/sdb
ADMINNAME=admin
KASTENTOKENAUTH=0
if [ ! $(ls $ZFSDISK) ];then echo "ZFSDisk $ZFSDISK not found";exit -1 ;fi
@ismailyenigul
ismailyenigul / docker-traefik-label.txt
Last active May 30, 2023 04:46
docker labels for traefik reverse proxy multiple ports in a single container with different domain names
--label "traefik.enable=true" \
--label "traefik.protocol=http" \
--label "traefik.first.port=80" \
--label "traefik.first.frontend.rule=Host:web1.example.com" \
--label "traefik.second.port=8080" \
--label "traefik.second.frontend.rule=Host:web2.example.com" \
Above labels will allow us to forward web1.example.com to docker container port 80 and web2.example.com to same container's port 8080