Skip to content

Instantly share code, notes, and snippets.

View zackbradys's full-sized avatar
🏠
Clusters and Containers

Zack Brady zackbradys

🏠
Clusters and Containers
View GitHub Profile
#cloud-config
#simple cloud-init user-data
#reach out with questions to @zackbradys
package_update: true
packages:
- qemu-guest-agent
- sudo
- wget
- tree
### first control node
sudo su
curl -sfL https://get.rke2.io | sh -
systemctl enable rke2-server.service
mkdir -p /etc/rancher/rke2/
cat << EOF >> /etc/rancher/rke2/config.yaml
tls-san:
#cloud-config
#simple cloud-init network-data
#reach out with questions to @zackbradys
#tailscale install
#simple linux tailscale install with authenticate
#reach out with questions to @zackbradys
sudo su
curl -fsSL https://tailscale.com/install.sh | sh
tailscale login --authkey=$AUTH-KEY

Keybase proof

I hereby claim:

  • I am zackbradys on github.
  • I am zackbradys (https://keybase.io/zackbradys) on keybase.
  • I have a public key ASA3bJyquUpv0pl7VxpjRW1WFcHkFE65NrHHPj25CU78GQo

To claim this, I am signing this object:

#pihole install
#simple linux pihole install
#reach out with questions to @zackbradys
sudo su
curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true PIHOLE_SELINUX=true bash
#check pihole status
pihole status
# RUN THIS ON LINUX! Below is using an Ubuntu VM to build your qcow
# Install 'libguestfs-tools' to get 'virt-customize'
apt-get install -y libguestfs-tools # ubuntu
# yum install -y libguestfs-tools # rhel
# Download the latest cloud-enabled Rocky image
wget -O /tmp/rocky-cloud.qcow2 https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-LVM.latest.x86_64.qcow2 # LVM
# wget -O /tmp/rocky-cloud.qcow2 https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 # Base
@zackbradys
zackbradys / rke2-install-tips
Last active February 28, 2024 08:43
Effortless, Easy, and Efficient installation steps of Rancher Kubernetes Engine 2 (RKE2)
--- RKE2 SERVER NODES (CONTROL PLANE) ---
### Apply System Settings
cat << EOF >> /etc/sysctl.conf
### Modified System Settings
vm.swappiness=0
vm.panic_on_oom=0
vm.overcommit_memory=1
kernel.panic=10
kernel.panic_on_oops=1
vm.max_map_count = 262144
@zackbradys
zackbradys / rancher-install-tips
Last active October 5, 2023 19:43
Effortless, Easy, and Efficient installation steps of Rancher Multi-Cluster Manager
### Add and Update the Helm Repositories
helm repo add jetstack https://charts.jetstack.io
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
### Create the Cert Manager Namespace and Install Cert Manager
kubectl create namespace cert-manager
helm upgrade -i cert-manager jetstack/cert-manager --namespace cert-manager --set installCRDs=true
### Wait for the deployment/rollout
@zackbradys
zackbradys / longhorn-install-tips
Last active January 27, 2024 16:44
Effortless, Easy, and Efficient installation steps of Rancher Longhorn
### Add and Update the Helm Repository
helm repo add longhorn https://charts.longhorn.io
helm repo update
### Create the Longhorn Namespace and Install Longhorn
kubectl create namespace longhorn-system
helm upgrade -i longhorn longhorn/longhorn --namespace longhorn-system --set ingress.enabled=true --set ingress.host=longhorn.example.com
### Wait for the deployment/rollout
sleep 30