naman1997 / simple-talos-cluster Goto Github PK
View Code? Open in Web Editor NEWAutomated Talos cluster with system extensions in a Proxmox node.
License: MIT License
Automated Talos cluster with system extensions in a Proxmox node.
License: MIT License
Need to use arp-scan on host like this:
arp-scan --localnet | grep 36:e4:10:e4:6e:19 | awk ' { printf $1 } '
Need to check if proxmox exposes the MAC address of the VMs created via some api/terraform sdk
This is how we create the image with the right system extensions
docker run --rm -t -v /dev:/dev --privileged -v $PWD/_out:/out ghcr.io/siderolabs/imager:v1.5.0 metal --system-extension-image ghcr.io/siderolabs/qemu-guest-agent:8.0.2 --system-extension-image ghcr.io/siderolabs/intel-ucode:20230808
ssh -q -o BatchMode=yes [email protected] "mkdir -p talos"
scp _out/metal-amd64.raw.xz [email protected]:talos/
ssh -T [email protected] /bin/bash <<ENDSSH
qm destroy 8000
sleep 3
qm create 8000 --memory 2048 --net0 virtio,bridge=vmbr0 --agent 1 --cores 2 --sockets 1 --cpu cputype=x86-64-v2
xz -v -d talos/metal-amd64.raw.xz
qm importdisk 8000 talos/metal-amd64.raw local-lvm
qm set 8000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-8000-disk-0,cache=writeback,discard=on
qm set 8000 --boot c --bootdisk scsi0
qm set 8000 --ipconfig0 ip=dhcp
qm set 8000 --name talos-golden --template 1
ENDSSH
Top level process looks something like this:
#!/bin/bash
talosctl gen config mycluster https://192.168.0.117:6443
talosctl apply-config --insecure --nodes 192.168.0.117 --file controlplane.yaml
sleep 30
talosctl bootstrap --nodes 192.168.0.117 -e 192.168.0.117 --talosconfig=./talosconfig
sleep 30
talosctl kubeconfig --nodes 192.168.0.117 -e 192.168.0.117 --talosconfig=./talosconfig
# Wait for control plane to come up
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.