Sync Talos bootstrap manifests after a kubernetesVersion bump

オープン
#248 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, helm, kubernetes

調査の方向性

Start by reading the linked Talos manifest_apply.go section and the upgrade-k8s entry in docs/operations/talosctl-commands.md; compare those with how talm renders kubernetesVersion from Chart.yaml. The issue leaves the command design open, so settle how to sync the rendered kube-proxy and CoreDNS manifests without making machine configs drift or depending on nodes becoming Ready. Done means the manifests track the project version and the command documentation is updated.

索引モデルが issue の本文から書いたものです。

説明

area/commands kind/feature

I'd like talm to update the Kubernetes bootstrap manifests (kube-proxy and CoreDNS) after a Kubernetes version bump. Today a version bump through talm moves the control plane and kubelet, but these two keep the images they got at bootstrap.

The node side already works. I bumped kubernetesVersion in Chart.yaml and ran talm apply one node at a time, and a 3-node Talos 1.13.6 cluster went from 1.35.9 to 1.36.5 with no reboot. Static pods and kubelet all came up on the new version.

The manifests are left behind because Talos applies them only once. After bootstrap, the manifest controller skips any object that is already in its inventory or already exists in the cluster (manifest_apply.go at v1.13.6). The step that updates them lives in talosctl upgrade-k8s. talm does not wrap that command, and the docs call it out of scope because talm configures machines and not the control plane. With kubernetesVersion in Chart.yaml, talm does set the control plane version, so this is the one part of the upgrade with no talm path.

Two things drift as a result. The kube-proxy DaemonSet keeps its bootstrap image on clusters where kube-proxy is enabled. CoreDNS keeps its bootstrap image even after a Talos upgrade changes the default: DefaultCoreDNSVersion is v1.14.2 in v1.13.6 and v1.14.7 on release-1.13.

Running plain talosctl upgrade-k8s next to a talm project is not a good workaround. It patches the machine configs on the nodes directly while Chart.yaml keeps the old version, so the next talm apply renders the old images again. On a cluster without a CNI it also fails at the kubelet step, because it waits for the node to become Ready.

A command that syncs the bootstrap manifests to what the project renders would close this. It could wrap only the manifest part of upgrade-k8s, or be a talm upgrade-k8s that takes --to from Chart.yaml. The upgrade-k8s row in docs/operations/talosctl-commands.md would change with it.

主要言語
Go
スター
493
フォーク
23
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cozystack/talm のほかの issue

cozystack/talm の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。