Skip to content

Instantly share code, notes, and snippets.

@tobyl
Created March 9, 2023 21:00
Show Gist options
  • Save tobyl/7dbafe17dde717f66335e9db15097655 to your computer and use it in GitHub Desktop.
Save tobyl/7dbafe17dde717f66335e9db15097655 to your computer and use it in GitHub Desktop.

File structure:

|-- config
|   `-- ignition.yaml
|-- flatcar_production_pxe.vmlinuz
|-- flatcar_production_pxe_image.cpio.gz
|-- hardware.json
|-- k8s.yaml
|-- ldlinux.c32
|-- pxelinux.0
|-- run.sh
|-- scripts
|   |-- cni.sh
|   |-- hostname.sh
|   |-- join.sh
|   |-- kube-tools.sh
|   |-- systemd.sh
|   `-- version-check.sh
`-- version.txt

Docker command (run in the root directory from above):

docker run --rm -it \
-v $PWD:/data/ \
-p 69:69/udp \
-p 8282:8080 \
ghcr.io/jeefy/booty:main \
--serverHttpPort=8282
--debug

My client supports PXE, and I'm forwarding requests to Booty from my DHCP server to:

IP: <docker-host-ip>
Filename: pxelinux.cfg/default

Contents of ignition.yaml:

variant: flatcar
version: 1.0.0

passwd:
  users:
    # add user 'core' with ssh key
    - name: core
      ssh_authorized_keys:
        - <my-ssh-public-key>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment