upgrade-plan.yaml 923 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Server plan
  2. apiVersion: upgrade.cattle.io/v1
  3. kind: Plan
  4. metadata:
  5. name: server-plan
  6. namespace: system-upgrade
  7. spec:
  8. concurrency: 1
  9. cordon: true
  10. nodeSelector:
  11. matchExpressions:
  12. - key: node-role.kubernetes.io/control-plane
  13. operator: In
  14. values:
  15. - "true"
  16. serviceAccountName: system-upgrade
  17. upgrade:
  18. image: rancher/k3s-upgrade
  19. channel: https://update.k3s.io/v1-release/channels/stable
  20. ---
  21. # Agent plan
  22. apiVersion: upgrade.cattle.io/v1
  23. kind: Plan
  24. metadata:
  25. name: agent-plan
  26. namespace: system-upgrade
  27. spec:
  28. concurrency: 1
  29. cordon: true
  30. nodeSelector:
  31. matchExpressions:
  32. - key: node-role.kubernetes.io/control-plane
  33. operator: DoesNotExist
  34. prepare:
  35. args:
  36. - prepare
  37. - server-plan
  38. image: rancher/k3s-upgrade
  39. serviceAccountName: system-upgrade
  40. upgrade:
  41. image: rancher/k3s-upgrade
  42. channel: https://update.k3s.io/v1-release/channels/stable