Skip to content

Commit

Permalink
Fix Calico version determination
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouska committed Jun 1, 2024
1 parent 4e667a2 commit 8fbfa26
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is automated using [Github Action](https://github.com/buvis/clusters/blob/m

When Calico releases a new version of `tigera-operator`:

1. Determine `<VERSION_TAG>`: [Calico Releases | GitHub](https://github.com/projectcalico/calico/releases)
1. Determine latest **minor** (like v3.28 and not v3.28.0) version `<VERSION_TAG>`: [Calico Releases | GitHub](https://github.com/projectcalico/calico/releases)
2. Set temporary variable to use in following commands: `CALICO_VERSION=<VERSION_TAG>`
3. Get the updated manifest: `curl https://raw.githubusercontent.com/projectcalico/calico/release-<VERSION_TAG_MAIN>/manifests/tigera-operator.yaml -O`
3. Get the updated manifest: `curl https://raw.githubusercontent.com/projectcalico/calico/release-$CALICO_VERSION/manifests/tigera-operator.yaml -O`
4. Initiate the upgrade: `kubectl apply -f tigera-operator.yaml`
5. Remove the manifest: `rm tigera-operator.yaml`
6. Update Talos installation patch: `vim infrastructure/talos/patch-all.yaml` and update `<VERSION_TAG>` in `/cluster/network/cni/custom/urls`
Expand All @@ -23,15 +23,15 @@ When siderolabs release a [new Talos version](https://github.com/siderolabs/talo
1. Check for new [issues](https://github.com/siderolabs/talos/issues) to see if the new version is safe to use
2. Set temporary variable to use in following commands: `export TALOS_VERSION=<VERSION_TAG>`
3. Update the client (`talosctl`)
a. Download amd64 binary: `curl -Lo ~/.local/bin/talosctl https://github.com/siderolabs/talos/releases/download/$TALOS_VERSION/talosctl-$(uname -s | tr "[:upper:]" "[:lower:]")-amd64`
b. Make it executable: `chmod +x ~/.local/bin/talosctl`
a. Download amd64 binary: `curl -Lo ~/.local/bin/talosctl https://github.com/siderolabs/talos/releases/download/$TALOS_VERSION/talosctl-$(uname -s | tr "[:upper:]" "[:lower:]")-amd64`
b. Make it executable: `chmod +x ~/.local/bin/talosctl`
4. Get installer image schematics ID from [Talos Linux Image Factory](https://factory.talos.dev)
a. Choose latest Talos version
b. Select `siderolabs/iscsi-tools` extension
c. Submit
d. Get Image schematic ID at `Your image schematic ID is:`
e. Confirm it is the same as `echo $TALOS_SCHEMATIC_ID`
f. If different, then update `.envrc`
a. Choose latest Talos version
b. Select `siderolabs/iscsi-tools` extension
c. Submit
d. Get Image schematic ID at `Your image schematic ID is:`
e. Confirm it is the same as `echo $TALOS_SCHEMATIC_ID`
f. If different, then update `.envrc`
5. Upgrade nodes: `upgrade-talos`
6. Check nodes version: `talosctl -n $NODE_IPS version`

Expand Down

0 comments on commit 8fbfa26

Please sign in to comment.