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

Keybase proof

I hereby claim:

  • I am clemenko on github.
  • I am clemenko (https://keybase.io/clemenko) on keybase.
  • I have a public key whose fingerprint is 5D23 F230 5CD9 8477 4FB2 0E8F 9F37 134D 1ABB 8EA3

To claim this, I am signing this object:

@clemenko
clemenko / harvester_clout_init.md
Last active April 7, 2025 12:13
A cloud_init example for Harvester and Rocky/Ubuntu

Fleet notes for github ssh

# create a key pair
ssh-keygen -t rsa -b 4096 -m pem -f /Users/clemenko/Desktop/github -C "[email protected]"

# add secret for auth key
kubectl create secret generic ssh-github -n fleet-local --from-file=ssh-privatekey=/Users/clemenko/Desktop/github --from-file=ssh-publickey=/Users/clemenko/Desktop/github.pub --type=kubernetes.io/ssh-auth
# 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
@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

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?

#!/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