Skip to content

Instantly share code, notes, and snippets.

View clemenko's full-sized avatar
🏠
Working from home

Andy Clemenko clemenko

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
# @clemenko
# rke one liner
curl -sfL https://get.rke2.io | sh - && systemctl enable --now rke2-server.service && echo "export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/usr/local/bin/:/var/lib/rancher/rke2/bin/" >> ~/.bashrc && source ~/.bashrc && curl -sfL https://get.hauler.dev | bash && curl -s https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
yum install -y nfs-utils cryptsetup iscsi-initiator-utils; systemctl enable --now iscsid; helm repo add longhorn https://charts.longhorn.io --force-update; helm upgrade -i longhorn longhorn/longhorn -n longhorn-system --create-namespace
#!/usr/bin/env bash
# simple script for installing rke2, helm, and keycloak
# clemenko
# https://github.com/bitnami/charts/tree/main/bitnami/keycloak
curl -sfL https://get.rke2.io | sh - && systemctl enable --now rke2-server.service && echo "export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/usr/local/bin/:/var/lib/rancher/rke2/bin/" >> ~/.bashrc && source ~/.bashrc && curl -sfL https://get.hauler.dev | bash && curl -s https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
yum install -y nfs-utils cryptsetup iscsi-initiator-utils; systemctl enable --now iscsid
@clemenko
clemenko / Talos_notes.md
Created July 22, 2024 18:56
just me playing with talos

pros and cons

Pros : clean, simple. Cons : no ingress out of the box. Needs a bit of work to get things going.

talos notes

mkdir ~/Desktop/talos cd ~/Desktop/talos

Anyone Can install RKE2 and Rancher on a Node

  • RKE2 - Security focused Kubernetes
  • Rancher - Multi-Cluster Kubernetes Management
  • Longhorn - Unified storage layer

We will need a few tools for this guide. We will walk through how to install helm and kubectl.

A longer version of this install : Can a 12 y/o install the Rancher Stack?

@clemenko
clemenko / _ipxe_setup.md
Last active November 4, 2024 21:42
iPXE Netboot.xyz with Docker

iPXE with Netboot.xyz

Leverage Docker and Netboot.xyz to host Harvester/Rocky/Liberty installers and kickstart. We have been developing an Harvester Workshop and needed a better way to boot dozens of machines. Netboot.xyz was a simple way to do it. We used https://hub.docker.com/r/linuxserver/netbootxyz to simplify the install.

Then we created a custom menu and loaded the assets. After updating the DHCP settings on the network to point to the machine we are able to boot anything.

Netboot Docker docs : https://netboot.xyz/docs/docker

# this is for joining federated clusters within NeuVector
# check the passwords
export masterPassword=Pa22word
export masterUrl=neuvector.rfed.io
export masterApi=nv-api.rfed.io
export manangedPassword=admin
export managedUrl=nv2.rfed.io
export managedApi=nv2-api.rfed.io