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
@clemenko
clemenko / _ipxe_setup.md
Last active April 17, 2024 14:28
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

Fleet notes for github ssh

# create a key pair
ssh-keygen -t rsa -b 4096 -m pem -f /Users/clemenko/Desktop/github -C "user@rancherfederal.com"

# 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
@clemenko
clemenko / harvester_clout_init.md
Last active March 17, 2024 14:46
A cloud_init example for Harvester and Rocky/Ubuntu

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: