Upgrading Onload - Upgrading Onload - UG1656

Onload Operator for Kubernetes User Guide (UG1656)

Document ID
UG1656
Release Date
2024-04-26
Revision
1.0 English

The Onload™ Operator can upgrade the version of Onload used by a CR. This can be done by updating the definition of the Onload CR once it is in the cluster.

Important: To trigger the start of an upgrade edit the Onload CR and change the spec.onload.version field. This can be done using kubectl edit, kubectl patch, or re-applying the edited yaml file with kubectl apply.

The fields that the Operator propagates during an upgrade are:

  • spec.onload.version
  • spec.onload.userImage
  • spec.kernelMappings

The Operator ignores changes to other fields.

For example using kubectl patch:

Note: This is an illustrative example and should not be applied to a resource in your cluster.
kubectl patch onload onload-sample --type=merge --patch-file=/dev/stdin <<-EOF
{
  "spec": {
    "onload": {
      "kernelMappings": [
        {
          "kernelModuleImage": "docker.io/onload/onload-module:8.2.0",
          "regexp": "^.*\\.x86_64$"
        }
      ],
      "userImage": "docker.io/onload/onload-user:8.2.0",
      "version": "8.2.0"
    }
  }
}
EOF