Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Samuel Walker sfxworks

🎯
Focusing
View GitHub Profile
View packetcrypt.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: packetcrypt
namespace: packetcrypt
spec:
replicas: 1
selector:
matchLabels:
app: packetcrypt
View registry.sh
podman run --name registry \
-p 5000:5000 \
-v /mnt/registry:/var/lib/registry:z \
-v /registry:/certs:z \
-e "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt" \
-e "REGISTRY_HTTP_TLS_KEY=/certs/registry.key" \
-d \
docker.io/library/registry:latest
View kubeadm-raspi.sh
#!/bin/sh
set -e
apt-get update -y && apt-get upgrade -y
cat <<EOF | tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
View install package to qcow image.sh
sudo apt-get install qemu-utils
sudo modprobe nbd
sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file
sudo mkdir /mnt/debian
sudo mount /dev/nbd0p1 /mnt/debian
View iozone.md

GIGABYTE GP-AG4500G

Longhorn

kubectl logs -f filesystem-benchmark-vmlnq
        Iozone: Performance Test of File I/O
                Version $Revision: 3.489 $
                Compiled for 64 bit mode.
                Build: linux-AMD64
@sfxworks
sfxworks / containerd-kubectl-ubuntu.sh
Last active Oct 11, 2020
containerd-kubectl-ubuntu.sh
View containerd-kubectl-ubuntu.sh
#wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc3/amd64/linux-headers-5.8.0-050800_5.8.0-050800.202006282330_all.deb
#wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc3/amd64/linux-headers-5.8.0-050800-generic_5.8.0-050800.202006282330_amd64.deb
#wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc3/amd64/linux-image-unsigned-5.8.0-050800-generic_5.8.0-050800.202006282330_amd64.deb
#wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc3/amd64/linux-modules-5.8.0-050800-generic_5.8.0-050800.202006282330_amd64.deb
apt-get update -y && apt-get upgrade -y
cat <<EOF | tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
View gist:26df450831134d59bb2d1e80bb6dc278
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJd01EUXlOekEzTVRNMU9Gb1hEVE13TURReU5UQTNNVE0xT0Zvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTjFYCmVRQ0Mrbm9XNTM3VUEvSlk2SlA0Y2VXaWg2WDExNGpaRWRZSDZzamR5RjlBWVUwUUpMVkV4bWFQZlROVlNLcVUKOXZWSUJPTzJ4T1RGYUpoNHBUOGJkcFIvaVlRNmt0eUVxUUQyd2plVlFUVFVRQUZENmROcHlNRlNYQ0Zqc3dFYgovSCtFbWdDRUxMMXVqNDgyK0JtWVNSQ1l5ZkIycEJReTJ2djJkUGc3MmVCeXpEcmtPRG9uVmJzcE1remRNem03CnRMY0gvaWpQNi9iVnlaZktaRlh5YmwvY0NOenFnb21BTjdEVTVYREhxRmZIVkZibTNMMXVFaHIyQ3NLQit5M2kKdUMwQ0pVRkkvZUhkcWowckh1eWVEYkhNbUJVQ2RCcDJVSzB6NkhtelBuTURmQXZsb01DM01MWUhSdnpDbys0TgpqZ0VldFBFVm52bUptTUdFWitjQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFEQ2llbjFIRUo5U0dLbUNiWGxKUmQ3TElCWE0KcXlENlBGK0NFR1lWSG54OFpNcTBUbDBhZUdFVzdiRGE0bVRZNVpy
View gist:a5040cfcc392c0b291e62fa6d8e51e95
time="2020-05-14T22:17:14-04:00" level=debug msg="OpenShift Installer 4.4.3"
time="2020-05-14T22:17:14-04:00" level=debug msg="Built from commit 78b817ceb7657f81176bbe182cc6efc73004c841"
time="2020-05-14T22:17:14-04:00" level=debug msg="Fetching Terraform Variables..."
time="2020-05-14T22:17:14-04:00" level=debug msg="Loading Terraform Variables..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading Cluster ID..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading Install Config..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading SSH Key..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading Base Domain..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading Platform..."
time="2020-05-14T22:17:14-04:00" level=debug msg=" Loading Cluster Name..."
View gist:b1219291285db989ecc673da27bdcc35
#Prepare
modprobe br_netfilter
echo '1' > /proc/sys/net/ipv4/ip_forward
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
#Install
#Zerotier
View gist:a9978aaf7064c111642f4b07d4f37abf
Name: blacklist
Type: hash:ip
Revision: 4
Header: family inet hashsize 4096 maxelem 65536
Size in memory: 127384
References: 2
Number of entries: 4214
Members:
222.86.159.208
180.76.148.87