Skip to content

Commit 2638d94

Browse files
authored
chore: Update Talos configuration and dependencies, remove Packer support (#6)
* chore: update configuration files and dependencies Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * chore: update Talos configuration and dependencies, remove unused packer file Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * chore: remove generated Packer file from .gitignore Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: pass options to pulumi resource in NewImage function Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update cluster autoscaler version and refactor image handling Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * chore: remove references to Packer from documentation and update comments Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * docs: add Talos image creation feature to README Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * docs: update README and documentation structure for Hetzner Talos Kubernetes setup Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * docs: add installation instructions for macOS and Linux to README Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * feat: enable ARM and x86 image uploads and update image handling in Talos deployment Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update mount path for hcloud autoscaler configuration and set it as read-only Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * feat: add JSON hashing for cluster configuration in autoscaler Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update control plane node pool count from 3 to 1 in Pulumi configuration Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * feat: implement architecture detection for image uploads in Talos deployment Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * test: add unit tests for DetectRequiredArchitecturesFromList function Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * refactor: move DetectRequiredArchitecturesFromList function to a new location in image.go Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update cluster auto scaler version from 9.46.6 to 9.48.0 in Pulumi configuration Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * chore: remove Pulumi configuration for hcloud-k8s Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * chore: remove unused indirect dependencies from go.mod and go.sum Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update pulumi-hcloud-upload-image dependency version to v0.0.1 Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update import path for pulumi-hcloud-upload-image and adjust dependencies in go.mod and go.sum Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> * fix: update image version to v1.10.5 and adjust node pool configurations in Pulumi YAML Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com> --------- Signed-off-by: Steffen Exler <linuxluigi@users.noreply.github.com>
1 parent f16759d commit 2638d94

29 files changed

+486
-616
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,13 @@ out/
1414
my_awesome_project/
1515

1616
# Talos
17-
# talosctl gen config talos-k8s-hcloud-tutorial https://65.109.222.12:6443 ─--with-examples=false --with-docs=false
1817
controlplane.yaml
1918
worker.yaml
2019
talosconfig
2120

2221
# Pulumi temp scripts (see pkg/talos/cli/upgrade.go)
2322
.pulumi-tmp/
2423

25-
# Ignore generated Packer file in project root
26-
/hcloud.pkr.hcl
27-
2824
##########
2925
# Golang #
3026
##########

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ linters:
3636
allow:
3737
- $gostd
3838
- github.com/exivity/pulumi-hcloud-k8s
39+
- github.com/exivity/pulumi-hcloud-upload-image/sdk/go/pulumi-hcloud-upload-image/hcloudimages
3940
- github.com/pulumi/pulumi/sdk/v3/go
4041
- github.com/pulumi/pulumi-hcloud/sdk/go/hcloud
4142
- github.com/pulumi/pulumi-command/sdk/go/command

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @exivity/devops

Pulumi.dev-longhorn.yaml

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

Pulumi.dev.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
config:
22
hcloud-k8s:talos:
3-
image_version: v1.10.3
3+
image_version: v1.10.5
44
kubernetes_version: "1.33.0"
55
hcloud-k8s:firewall:
66
open_talos_api: true
77
hcloud-k8s:control_plane:
88
node_pools:
9-
- count: 3
9+
- count: 1
1010
server_size: cax11
1111
arch: arm64
1212
region: fsn1
13+
- count: 1
14+
server_size: cax11
15+
arch: arm64
16+
region: nbg1
17+
- count: 1
18+
server_size: cax11
19+
arch: arm64
20+
region: hel1
1321
hcloud-k8s:node_pools:
1422
node_pools:
15-
- name: core-intel
23+
- name: worker
1624
count: 1
17-
server_size: cx22
18-
arch: amd64
19-
region: fsn1
20-
auto_scaler:
21-
min_count: 1
22-
max_count: 3
23-
- name: core-arm
24-
count: 1
25-
server_size: cax11
25+
server_size: cax31
2626
arch: arm64
27-
region: fsn1
27+
region: hel1
2828
auto_scaler:
2929
min_count: 1
3030
max_count: 3
@@ -41,7 +41,7 @@ config:
4141
effect: "NoSchedule"
4242
cluster_auto_scaler:
4343
enabled: true
44-
version: 9.46.6
44+
version: 9.48.0
4545
values:
4646
nodeSelector:
4747
node-role.kubernetes.io/control-plane: ""

Pulumi.longhorn.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
config:
2+
hcloud-k8s:talos:
3+
image_version: v1.10.5
4+
kubernetes_version: "1.33.0"
5+
enable_longhorn: true
6+
hcloud-k8s:firewall:
7+
open_talos_api: true
8+
hcloud-k8s:control_plane:
9+
node_pools:
10+
- count: 1
11+
server_size: cax11
12+
arch: arm64
13+
region: hel1
14+
hcloud-k8s:node_pools:
15+
node_pools:
16+
- name: worker
17+
count: 3
18+
server_size: cax31
19+
arch: arm64
20+
region: fsn1
21+
hcloud-k8s:kubernetes:
22+
hetzner_ccm:
23+
enabled: true
24+
version: 1.23.0
25+
values:
26+
nodeSelector:
27+
node-role.kubernetes.io/control-plane: ""
28+
additionalTolerations:
29+
- key: "node-role.kubernetes.io/control-plane"
30+
operator: "Equal"
31+
effect: "NoSchedule"
32+
cluster_auto_scaler:
33+
enabled: true
34+
version: 9.48.0
35+
values:
36+
nodeSelector:
37+
node-role.kubernetes.io/control-plane: ""
38+
tolerations:
39+
- key: "node-role.kubernetes.io/control-plane"
40+
operator: "Equal"
41+
effect: "NoSchedule"
42+
kubelet_serving_cert_approver:
43+
enabled: true
44+
version: v0.9.1
45+
longhorn:
46+
enabled: true
47+
version: 1.8.1
48+
is_default_storage_class: true
49+
reclaim_policy: Delete

0 commit comments

Comments
 (0)