Skip to content

Commit e722721

Browse files
committed
upgrade to talos 1.11.1
1 parent f083301 commit e722721

7 files changed

Lines changed: 72 additions & 47 deletions

File tree

.terraform.lock.hcl

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Install talosctl:
8989
```bash
9090
# see https://github.com/siderolabs/talos/releases
9191
# renovate: datasource=github-releases depName=siderolabs/talos
92-
talos_version='1.10.7'
92+
talos_version='1.11.1'
9393
wget https://github.com/siderolabs/talos/releases/download/v$talos_version/talosctl-linux-amd64
9494
sudo install talosctl-linux-amd64 /usr/local/bin/talosctl
9595
rm talosctl-linux-amd64
@@ -511,7 +511,7 @@ Update the talos extensions to match the talos version:
511511
Talos:
512512

513513
```bash
514-
# see https://www.talos.dev/v1.10/advanced/troubleshooting-control-plane/
514+
# see https://www.talos.dev/v1.11/advanced/troubleshooting-control-plane/
515515
talosctl -n $all support && rm -rf support && 7z x -osupport support.zip && code support
516516
talosctl -n $c0 service ext-qemu-guest-agent status
517517
talosctl -n $c0 service etcd status

cilium.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ locals {
4444
cilium_external_lb_manifest = join("---\n", [for d in local.cilium_external_lb_manifests : yamlencode(d)])
4545
}
4646

47-
// see https://www.talos.dev/v1.10/kubernetes-guides/network/deploying-cilium/#method-4-helm-manifests-inline-install
47+
// see https://www.talos.dev/v1.11/kubernetes-guides/network/deploying-cilium/#method-4-helm-manifests-inline-install
4848
// see https://docs.cilium.io/en/stable/network/servicemesh/ingress/
4949
// see https://docs.cilium.io/en/stable/gettingstarted/hubble_setup/
5050
// see https://docs.cilium.io/en/stable/gettingstarted/hubble/

do

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ talos_image_builder="$(perl -e 'print ((`uname -r` =~ /^(\d+\.\d+)/ && $1 >= 6.1
1111

1212
# see https://github.com/siderolabs/talos/releases
1313
# renovate: datasource=github-releases depName=siderolabs/talos
14-
talos_version="1.10.7"
14+
talos_version="1.11.1"
1515

1616
# see https://github.com/siderolabs/extensions/pkgs/container/qemu-guest-agent
1717
# see https://github.com/siderolabs/extensions/tree/main/guest-agents/qemu-guest-agent
18-
talos_qemu_guest_agent_extension_tag="10.0.2@sha256:ce20e4459b26623e9dddba1be10097746b519c587614685bc4330aceee107c74"
18+
talos_qemu_guest_agent_extension_tag="10.0.2@sha256:84b42d779721ddab71e0d5c12e10399d6bdd03af0aaa0dafd240e2724d724675"
1919

2020
# see https://github.com/siderolabs/extensions/pkgs/container/drbd
2121
# see https://github.com/siderolabs/extensions/tree/main/storage/drbd
2222
# see https://github.com/LINBIT/drbd
23-
talos_drbd_extension_tag="9.2.14-v1.10.7@sha256:1c54ef1d97d5eacb3de749aac198d5313cc3513ca348e994c6c080a3bf2440eb"
23+
talos_drbd_extension_tag="9.2.14-v1.11.1@sha256:004b24fc5d3d41369a7f016d10e894436293d8478debfa769e204522e7cc0925"
2424

2525
# see https://github.com/siderolabs/extensions/pkgs/container/spin
2626
# see https://github.com/siderolabs/extensions/tree/main/container-runtime/spin
27-
talos_spin_extension_tag="v0.19.0@sha256:c88e8b1a6de4acd8d98f6aacc716c8e9aef3f7962d04893b49afc77d013b8ba2"
27+
talos_spin_extension_tag="v0.20.0@sha256:ec5cd8479e9174105aac93bbda2b6ab3d7be91167e7dc13a1884246fd4efa315"
2828

2929
# see https://github.com/piraeusdatastore/piraeus-operator/releases
3030
# renovate: datasource=github-releases depName=piraeusdatastore/piraeus-operator
@@ -67,9 +67,9 @@ function update-talos-extensions {
6767
}
6868

6969
function build_talos_image__imager {
70-
# see https://www.talos.dev/v1.10/talos-guides/install/boot-assets/
71-
# see https://www.talos.dev/v1.10/advanced/metal-network-configuration/
72-
# see Profile type at https://github.com/siderolabs/talos/blob/v1.10.7/pkg/imager/profile/profile.go#L23-L46
70+
# see https://www.talos.dev/v1.11/talos-guides/install/boot-assets/
71+
# see https://www.talos.dev/v1.11/advanced/metal-network-configuration/
72+
# see Profile type at https://github.com/siderolabs/talos/blob/v1.11.1/pkg/imager/profile/profile.go#L23-L46
7373
local talos_version_tag="v$talos_version"
7474
rm -rf tmp/talos
7575
mkdir -p tmp/talos
@@ -110,7 +110,7 @@ EOF
110110
}
111111

112112
function build_talos_image__image_factory {
113-
# see https://www.talos.dev/v1.10/learn-more/image-factory/
113+
# see https://www.talos.dev/v1.11/learn-more/image-factory/
114114
# see https://github.com/siderolabs/image-factory?tab=readme-ov-file#http-frontend-api
115115
local talos_version_tag="v$talos_version"
116116
rm -rf tmp/talos
@@ -222,11 +222,36 @@ function piraeus-install {
222222
# see https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#ch-kubernetes
223223
# see 5.7.1. Available Parameters in a Storage Class at https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-kubernetes-sc-parameters
224224
# see https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/
225-
# see https://www.talos.dev/v1.10/kubernetes-guides/configuration/storage/#piraeus--linstor
225+
# see https://www.talos.dev/v1.11/kubernetes-guides/configuration/storage/#piraeus--linstor
226226
step 'piraeus install'
227227
kubectl apply --server-side -k "https://github.com/piraeusdatastore/piraeus-operator//config/default?ref=v$piraeus_operator_version"
228228
step 'piraeus wait'
229229
kubectl wait pod --timeout=15m --for=condition=Ready -n piraeus-datastore -l app.kubernetes.io/component=piraeus-operator
230+
# wait until the webhook endpoint is available.
231+
# NB this is required to workaround:
232+
# Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "vlinstorsatelliteconfiguration.kb.io": failed to call webhook: Post "https://piraeus-operator-webhook-service.piraeus-datastore.svc:443/validate-piraeus-io-v1-linstorsatelliteconfiguration?timeout=10s": dial tcp 10.97.116.20:443: connect: operation not permitted
233+
while [ \
234+
"$(
235+
kubectl \
236+
run \
237+
test-piraeus-webhook \
238+
--namespace piraeus-datastore \
239+
--restart Never \
240+
--rm \
241+
--wait \
242+
--stdin \
243+
--tty \
244+
--image alpine/curl:8.14.1 \
245+
-- \
246+
curl \
247+
--insecure \
248+
--silent \
249+
--fail-with-body \
250+
--header content-type:application/json \
251+
https://piraeus-operator-webhook-service.piraeus-datastore:443/validate-piraeus-io-v1-linstorsatelliteconfiguration?timeout=5s \
252+
| head -1 | jq .response.status.code
253+
)" != "400" \
254+
]; do sleep 5; done
230255
step 'piraeus configure'
231256
kubectl apply -n piraeus-datastore -f - <<'EOF'
232257
apiVersion: piraeus.io/v1

providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ terraform {
1818
# see https://github.com/siderolabs/terraform-provider-talos
1919
talos = {
2020
source = "siderolabs/talos"
21-
version = "0.8.1"
21+
version = "0.9.0"
2222
}
2323
# see https://registry.terraform.io/providers/hashicorp/helm
2424
# see https://github.com/hashicorp/terraform-provider-helm

talos.tf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ locals {
1818
# talos image, which is created in the installed state.
1919
#install = {}
2020
features = {
21-
# see https://www.talos.dev/v1.10/kubernetes-guides/configuration/kubeprism/
21+
# see https://www.talos.dev/v1.11/kubernetes-guides/configuration/kubeprism/
2222
# see talosctl -n $c0 read /etc/kubernetes/kubeconfig-kubelet | yq .clusters[].cluster.server
2323
# NB if you use a non-default CNI, you must configure it to use the
2424
# https://localhost:7445 kube-apiserver endpoint.
2525
kubePrism = {
2626
enabled = true
2727
port = 7445
2828
}
29-
# see https://www.talos.dev/v1.10/talos-guides/network/host-dns/
29+
# see https://www.talos.dev/v1.11/talos-guides/network/host-dns/
3030
hostDNS = {
3131
enabled = true
3232
forwardKubeDNSToHost = true
@@ -82,8 +82,8 @@ locals {
8282
# from https://discovery.talos.dev/ (or a custom and paid one running
8383
# locally in your network).
8484
# NB without this, talosctl get members, always returns an empty set.
85-
# see https://www.talos.dev/v1.10/talos-guides/discovery/
86-
# see https://www.talos.dev/v1.10/reference/configuration/v1alpha1/config/#Config.cluster.discovery
85+
# see https://www.talos.dev/v1.11/talos-guides/discovery/
86+
# see https://www.talos.dev/v1.11/reference/configuration/v1alpha1/config/#Config.cluster.discovery
8787
# see https://github.com/siderolabs/talos/issues/9980
8888
# see https://github.com/siderolabs/talos/commit/c12b52491456d1e52204eb290d0686a317358c7c
8989
discovery = {
@@ -109,12 +109,12 @@ locals {
109109
}
110110
}
111111

112-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/resources/machine_secrets
112+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/machine_secrets
113113
resource "talos_machine_secrets" "talos" {
114114
talos_version = "v${var.talos_version}"
115115
}
116116

117-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/data-sources/machine_configuration
117+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration
118118
data "talos_machine_configuration" "controller" {
119119
cluster_name = var.cluster_name
120120
cluster_endpoint = var.cluster_endpoint
@@ -130,7 +130,7 @@ data "talos_machine_configuration" "controller" {
130130
machine = {
131131
network = {
132132
interfaces = [
133-
# see https://www.talos.dev/v1.10/talos-guides/network/vip/
133+
# see https://www.talos.dev/v1.11/talos-guides/network/vip/
134134
{
135135
interface = "eth0"
136136
dhcp = true
@@ -212,7 +212,7 @@ data "talos_machine_configuration" "controller" {
212212
]
213213
}
214214

215-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/data-sources/machine_configuration
215+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/machine_configuration
216216
data "talos_machine_configuration" "worker" {
217217
cluster_name = var.cluster_name
218218
cluster_endpoint = var.cluster_endpoint
@@ -227,14 +227,14 @@ data "talos_machine_configuration" "worker" {
227227
]
228228
}
229229

230-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/data-sources/client_configuration
230+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/client_configuration
231231
data "talos_client_configuration" "talos" {
232232
cluster_name = var.cluster_name
233233
client_configuration = talos_machine_secrets.talos.client_configuration
234234
endpoints = [for node in local.controller_nodes : node.address]
235235
}
236236

237-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/resources/cluster_kubeconfig
237+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/cluster_kubeconfig
238238
resource "talos_cluster_kubeconfig" "talos" {
239239
client_configuration = talos_machine_secrets.talos.client_configuration
240240
endpoint = local.controller_nodes[0].address
@@ -244,7 +244,7 @@ resource "talos_cluster_kubeconfig" "talos" {
244244
]
245245
}
246246

247-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/resources/machine_configuration_apply
247+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/machine_configuration_apply
248248
resource "talos_machine_configuration_apply" "controller" {
249249
count = var.controller_count
250250
client_configuration = talos_machine_secrets.talos.client_configuration
@@ -265,7 +265,7 @@ resource "talos_machine_configuration_apply" "controller" {
265265
]
266266
}
267267

268-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/resources/machine_configuration_apply
268+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/machine_configuration_apply
269269
resource "talos_machine_configuration_apply" "worker" {
270270
count = var.worker_count
271271
client_configuration = talos_machine_secrets.talos.client_configuration
@@ -286,7 +286,7 @@ resource "talos_machine_configuration_apply" "worker" {
286286
]
287287
}
288288

289-
// see https://registry.terraform.io/providers/siderolabs/talos/0.8.1/docs/resources/machine_bootstrap
289+
// see https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/resources/machine_bootstrap
290290
resource "talos_machine_bootstrap" "talos" {
291291
client_configuration = talos_machine_secrets.talos.client_configuration
292292
endpoint = local.controller_nodes[0].address

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# see https://github.com/siderolabs/talos/releases
2-
# see https://www.talos.dev/v1.10/introduction/support-matrix/
2+
# see https://www.talos.dev/v1.11/introduction/support-matrix/
33
variable "talos_version" {
44
type = string
55
# renovate: datasource=github-releases depName=siderolabs/talos
6-
default = "1.10.7"
6+
default = "1.11.1"
77
validation {
88
condition = can(regex("^\\d+(\\.\\d+)+", var.talos_version))
99
error_message = "Must be a version number."
1010
}
1111
}
1212

1313
# see https://github.com/siderolabs/kubelet/pkgs/container/kubelet
14-
# see https://www.talos.dev/v1.10/introduction/support-matrix/
14+
# see https://www.talos.dev/v1.11/introduction/support-matrix/
1515
variable "kubernetes_version" {
1616
type = string
1717
# renovate: datasource=github-releases depName=siderolabs/kubelet
@@ -102,7 +102,7 @@ variable "worker_count" {
102102

103103
variable "talos_libvirt_base_volume_name" {
104104
type = string
105-
default = "talos-1.10.7.qcow2"
105+
default = "talos-1.11.1.qcow2"
106106
validation {
107107
condition = can(regex(".+\\.qcow2+$", var.talos_libvirt_base_volume_name))
108108
error_message = "Must be a name with a .qcow2 extension."

0 commit comments

Comments
 (0)