Update Virtlet

Update Virtlet

This section describes how to install maintenance updates, for example, hot fixes, to Virtlet by updating its version to the latest supported one.

During the update, the Virtlet VM can not be accessible using the kubectl attach command. But it still has the network connectivity. The MCP cluster workload is not affected.

To update Virtlet:

  1. Open your project Git repository with Reclass model on the cluster level.

  2. Change the Virtlet version in /kubernetes/compute.yml:

    parameters:
      kubernetes:
        common:
          addons:
            virtlet:
              enabled: true
              namespace: kube-system
              image: mirantis/virtlet:<virtlet_version>
    
  3. Log in to the Salt Master node.

  4. Apply the following states:

    salt -C 'I@kubernetes:master' state.sls kubernetes.master.kube-addons
    salt -C 'I@kubernetes:master' state.sls kubernetes.master.setup
    
  5. Verify that Virtlet is updated successfully:

    1. Log in to any Kubernetes Master node.

    2. Run the following command:

      kubectl rollout status -n kube-system ds/virtlet
      

      Note

      Substitute virtlet with a custom name if the default virtlet name was changed.