Skip to content

Commit 222170c

Browse files
committed
semi wip
1 parent bc81325 commit 222170c

22 files changed

Lines changed: 49344 additions & 260 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ config.xml
8686
*.pid
8787
/infrastructure/controllers/argocd/charts
8888
/node_modules
89+
/infrastructure/networking/cilium/charts

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/downloa
189189

190190
# Install ArgoCD with custom configuration
191191
k3s kubectl kustomize --enable-helm infrastructure/controllers/argocd | k3s kubectl apply -f -
192+
//talos
193+
kubectl kustomize --enable-helm infrastructure/controllers/argocd | kubectl apply -f -
192194

193195
# Wait for ArgoCD to be ready
194196
kubectl wait --for=condition=available deployment -l app.kubernetes.io/name=argocd-server -n argocd --timeout=300s

iac/packer/talos-packer/proxmox.pkr.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ source "proxmox-iso" "talos" {
3434
}
3535

3636
memory = 4048
37-
vm_id = "9702"
37+
vm_id = var.vm_id
3838
cores = var.cores
3939
cpu_type = var.cpu_type
4040
sockets = "1"
@@ -45,7 +45,7 @@ source "proxmox-iso" "talos" {
4545
cloud_init = true
4646
cloud_init_storage_pool = var.cloudinit_storage_pool
4747

48-
template_name = "talos-${var.talos_version}-cloud-init-template"
48+
template_name = "${var.template_name_prefix}-${var.talos_version}-cloud-init-template"
4949
template_description = "Talos ${var.talos_version} cloud-init, built on ${formatdate("YYYY-MM-DD hh:mm:ss ZZZ", timestamp())}"
5050

5151
boot_wait = "25s"
@@ -60,7 +60,7 @@ build {
6060

6161
provisioner "shell" {
6262
inline = [
63-
"curl -s -L ${local.image} -o /tmp/talos.raw.zst",
63+
"curl -s -L ${local.talos_image_url} -o /tmp/talos.raw.zst",
6464
"zstd -d -c /tmp/talos.raw.zst | dd of=/dev/sda && sync",
6565
]
6666
}

iac/packer/talos-packer/variables.pkr.hcl

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,30 @@ variable "cloudinit_storage_pool" {
3535

3636
variable "talos_version" {
3737
type = string
38-
default = "v1.6.7"
38+
default = "v1.10.2"
39+
}
40+
41+
variable "talos_image_schematic_id" {
42+
type = string
43+
description = "The schematic ID for the Talos factory image."
44+
}
45+
46+
variable "vm_id" {
47+
type = string
48+
description = "The Proxmox VM ID for the template."
49+
}
50+
51+
variable "template_name_prefix" {
52+
type = string
53+
description = "The prefix for the Proxmox template name."
54+
default = "talos"
3955
}
4056

4157
variable "base_iso_file" {
4258
type = string
4359
}
4460

4561
locals {
46-
image = "https://factory.talos.dev/image/3113b4ce6a82b241c60e4f17ec74f0345690cdf94a08a06284337b8432f2b93b/v1.10.1/metal-amd64.raw.zst"
62+
# Construct the image URL dynamically
63+
talos_image_url = "https://factory.talos.dev/image/${var.talos_image_schematic_id}/${var.talos_version}/metal-amd64.raw.zst"
4764
}

iac/talos/nvidia/default-runtime-class.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

iac/talos/nvidia/gpu-worker-patch.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

iac/talos/storage/openebs.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)