Skip to content

Instantly share code, notes, and snippets.

@Akaame
Created October 3, 2021 12:55
Show Gist options
  • Save Akaame/47473d0cdbe91da797e464aaa71d845f to your computer and use it in GitHub Desktop.
Save Akaame/47473d0cdbe91da797e464aaa71d845f to your computer and use it in GitHub Desktop.
# Upgrade plan
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: upgrade-plan
namespace: system-upgrade # created by system-upgrade controller manifest
spec:
concurrency: 1 # upgrade one node at a time
cordon: true # make the node unschedulable
nodeSelector:
matchExpressions:
- key: k3s-upgrade # upgrade nodes that are labeled with this
operator: In
values:
- "true"
serviceAccountName: system-upgrade # created by system-upgrade controller manifest
upgrade:
image: rancher/k3s-upgrade # this image does the heavy lifting
version: v1.22.2+k3s1 # target version to upgrade to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment