Skip to content

Commit e74d4a6

Browse files
committed
disable talos kubernetes discovery as its no longer compatible with k8s 1.32+
1 parent 9a7efa6 commit e74d4a6

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ talosctl -n $c0 service etcd status
519519
talosctl -n $c0 etcd status
520520
talosctl -n $c0 etcd alarm list
521521
talosctl -n $c0 etcd members
522+
# NB talosctl get members requires the talos discovery service, which we disable
523+
# by default, so this will not return anything.
524+
# see talos.tf.
522525
talosctl -n $c0 get members
523526
talosctl -n $c0 health --control-plane-nodes $controllers --worker-nodes $workers
524527
talosctl -n $c0 inspect dependencies | dot -Tsvg >c0.svg && xdg-open c0.svg

talos.tf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,21 @@ locals {
7676
}
7777
}
7878
cluster = {
79+
# disable kubernetes discovery as its no longer compatible with k8s 1.32+.
80+
# NB we actually disable the discovery altogether, at the other discovery
81+
# mechanism, service discovery, requires the public discovery service
82+
# from https://discovery.talos.dev/ (or a custom and paid one running
83+
# locally in your network).
84+
# NB without this, talosctl get members, always returns an empty set.
7985
# see https://www.talos.dev/v1.9/talos-guides/discovery/
80-
# see https://www.talos.dev/v1.9/reference/configuration/#clusterdiscoveryconfig
86+
# see https://www.talos.dev/v1.9/reference/configuration/v1alpha1/config/#Config.cluster.discovery
87+
# see https://github.com/siderolabs/talos/issues/9980
88+
# see https://github.com/siderolabs/talos/commit/c12b52491456d1e52204eb290d0686a317358c7c
8189
discovery = {
82-
enabled = true
90+
enabled = false
8391
registries = {
8492
kubernetes = {
85-
disabled = false
93+
disabled = true
8694
}
8795
service = {
8896
disabled = true

0 commit comments

Comments
 (0)