Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aarnaud
aarnaud / install_kubeadm.sh
Last active November 1, 2023 19:12
Installing kubeadm
#!/bin/bash
set -x -e
VERSION="${1:-1.28}"
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gpg
mkdir -p -m 755 /etc/apt/keyrings
curl -fsSL https://pkgs.k8s.io/core:/stable:/v${VERSION}/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v${VERSION}/deb/ /" | tee /etc/apt/sources.list.d/kubernetes.list
apt-get update
@aarnaud
aarnaud / 100.conf
Created March 18, 2023 02:36
Proxmox - LXC - Coral M.2 - Frigate
arch: amd64
cores: 2
features: fuse=1,keyctl=1,mknod=1,nesting=1
hostname: frigate
memory: 1024
mp0: nobackup:subvol-113-disk-0,mp=/mnt,size=100G
net0: name=eth0,bridge=vmbr2,firewall=1,hwaddr=1A:09:32:28:48:C8,ip=dhcp,ip6=auto,type=veth
ostype: debian
rootfs: zfs:subvol-113-disk-0,size=20G
swap: 512
@aarnaud
aarnaud / possible-fix-with-lstat.go
Last active December 29, 2020 18:33
debug-windows-stat
package main
import (
"fmt"
"net"
"os"
"path/filepath"
)
func removeContents(dir string) error {
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.

Keybase proof

I hereby claim:

  • I am aarnaud on github.
  • I am aarnaud (https://keybase.io/aarnaud) on keybase.
  • I have a public key whose fingerprint is 8754 0FFF 3CE1 A1A3 BF60 4431 482F 8604 E0AD 6179

To claim this, I am signing this object:

## k3s master
# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --no-deploy traefik,metrics-server" sh -s -
## k3s node
# curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --server https://k3s-master.lxd:6443 --token ${K3S_TOKEN}" sh -s -
name: k8s
description: k8s unconfined
config:
limits.memory.swap: "false"
linux.kernel_modules: ip_vs,ip_vs_rr,ip_vs_wrr,ip_vs_sh,nf_conntrack,ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
raw.lxc: |