feat: added talos image + extensions

This commit is contained in:
sujiba 2025-05-08 22:56:50 +02:00
parent 5c9b55e8f9
commit 114e64c309
2 changed files with 45 additions and 24 deletions

View file

@ -90,6 +90,8 @@ Vist the website https://factory.talos.dev
4. System Extensions: 4. System Extensions:
1. siderolabs/i915 (intel gpu drivers) 1. siderolabs/i915 (intel gpu drivers)
2. siderolabs/intel-ucode (intel microcode) 2. siderolabs/intel-ucode (intel microcode)
3. siderolabs/iscsi-tools (necessary for longhorn)
4. siderolabs/util-linux-tools (necessary for longhorn)
5. Customization: skip 5. Customization: skip
6. Schematic Ready: Download the iso 6. Schematic Ready: Download the iso
@ -98,7 +100,7 @@ Vist the website https://factory.talos.dev
# Cluster bootstrap # Cluster bootstrap
```bash ```bash
talosctl apply-config --insecure -n 10.10.10.3 --file clusterconfig/home-cluster-talos-01.yaml talosctl apply-config --insecure -n 10.10.10.3 --file clusterconfig/home-cluster-talos-01.yaml
talosctl bootstrap -n 10.10.10.4 -e 10.10.10.4 --talosconfig talosconfig talosctl bootstrap -n 10.10.10.3 -e 10.10.10.3 --talosconfig talosconfig
``` ```
# Cilium CNI # Cilium CNI
@ -122,5 +124,12 @@ helm install \
--set cgroup.autoMount.enabled=false \ --set cgroup.autoMount.enabled=false \
--set cgroup.hostRoot=/sys/fs/cgroup \ --set cgroup.hostRoot=/sys/fs/cgroup \
--set k8sServiceHost=localhost \ --set k8sServiceHost=localhost \
--set k8sServicePort=7445 --set k8sServicePort=7445 \
--set operator.replicas=1
```
```bash
# Enable and disable hubble
cilium hubble enable --ui
cilium hubble disable
``` ```

View file

@ -1,10 +1,10 @@
clusterName: home-cluster clusterName: home-cluster
talosVersion: 1.10.0 talosVersion: 1.10.1
kubernetesVersion: 1.33.0 kubernetesVersion: 1.33.0
endpoint: https://10.10.10.4:6443 endpoint: https://10.10.10.3:6443
domain: ${myDomainName} #domain: ${myDomainName}
additionalMachineCertSans: additionalMachineCertSans:
- 10.10.10.3 - 10.10.10.3
@ -27,14 +27,15 @@ nodes:
nameservers: nameservers:
- 10.10.10.2 - 10.10.10.2
installDisk: /dev/nvme0n1 installDisk: /dev/nvme0n1
userVolumes: talosImageURL: factory.talos.dev/metal-installer/249d9135de54962744e917cfe654117000cba369f9152fbab9d055a00aa3664f
- name: local-storage #userVolumes:
provisioning: # - name: longhorn-block
diskSelector: # provisioning:
match: disk.transport == "nvme" # diskSelector:
maxSize: 500GiB # match: disk.transport == "nvme"
filesystem: # maxSize: 500GiB
type: xfs # filesystem:
# type: xfs
machineSpec: machineSpec:
mode: metal mode: metal
arch: amd64 arch: amd64
@ -48,10 +49,21 @@ controlPlane:
officialExtensions: officialExtensions:
- siderolabs/intel-ucode - siderolabs/intel-ucode
- siderolabs/i915 - siderolabs/i915
- siderolabs/iscsi-tools
- siderolabs/util-linux-tools
patches: patches:
- |- - |-
machine: machine:
kubelet:
extraMounts:
- destination: /var/mnt/longhorn
type: bind
source: /var/mnt/longhorn
options:
- bind
- rshared
- rw
time: time:
servers: servers:
- 10.10.10.1 - 10.10.10.1