-
traefik on kubernetes
the best way to interact with traefik via kubernetes is using custom resource definitions, instead of the integrated kubernetes ingress controller definitions kubectl apply -f https://www.mirkoceroni.it/wp-content/uploads/2024/04/kubernetes-crd-definition-v1.yaml kubectl apply -f https://www.mirkoceroni.it/wp-content/uploads/2024/04/kubernetes-crd-rbac.yaml kubectl apply -f https://www.mirkoceroni.it/wp-content/uploads/2024/04/whoami.yaml kubectl apply -f https://www.mirkoceroni.it/wp-content/uploads/2024/04/traefik.yaml kubectl apply -f https://www.mirkoceroni.it/wp-content/uploads/2024/04/ingress.yaml to list traefik crd ingresses ( aka virtual hosts ) kubectl get ingressroutes.traefik.io
-
clone proxmox zfs datasets to new zpool
to clone zfs datasets of a proxmox installation to new datasets in a new zpool and make the new pool bootable boot with proxmox installer usb and ctrl+F3 to go in a tty console create new zfs dataset named rpool like the previous but using the new block device import old zfs pool with a…
-
Automount usb devices with udev and systemd in linux
write two rules in udev to launch a systemd unit when a usb device is connected or disconnected through this file /etc/udev/rules.d/50-local.rules inside the file create those two rules: * the %k is a udev placeholder that contain the devicename ( like sdc1 ) create a systemd unit /etc/systemd/system/usb-automount@.service * We use the @ in…
-
kubernetes tips and tricks
add in /etc/modules-load.d/modules.conf the following lines overlay br_netfilter enable iptables for bridges and packet forwarding configure containerd in every node for make in compatible with kubernetes ( generate default config and change SystemdCgroup from false to true ) create a deplyment for deploy a container with the desiderd replica number: list all pods in all…
-
virtually plug-unplug a USB device
For plug-unplug a USB device without phisically connect-disconnect the USB device ( the first command unplug while the last reconnect the device ): echo 0 > /sys/bus/usb/devices/2-2/authorized echo 1 > /sys/bus/usb/devices/2-2/authorized
-
enable ews search on body contents in Mailcow
By default mailcow EAS ( activesync protocol ) does not search on mail body contents but only on the subject. For enabling this feature, change this file in the mailcow installation folder before doing docker compose up command: in file data/conf/sogo/sogo.conf add the line: SOGoEASSearchInBody = YES this will enable the full text search even…
-
block youtube ads on chromecast
When watching youtube videos via chromecast, the advertisement has to be skipped manually after a few seconds, otherwise we have to watch the entire advertisement. You can run this bash script in the background on a device ( e.g. raspberry or similar ) , the script will automaticaly find all chromecast in your network that…
-
Hello world !
In this site you will find some useful software and IT tips that you could find useful.