GithubHelp home page GithubHelp logo

naman1997 / simple-talos-cluster Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 4.0 42 KB

Automated Talos cluster with system extensions in a Proxmox node.

License: MIT License

HCL 60.03% Shell 39.97%
haproxy proxmox talos talosctl terraform kubernetes wireguard

simple-talos-cluster's People

Contributors

naman1997 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simple-talos-cluster's Issues

Create modified talos image with system extensions built in

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

Use the IP addresses of the nodes to create a talos cluster

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.