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:
Open your project Git repository with Reclass model on the cluster level.
Change the Virtlet version in /kubernetes/compute.yml
:
parameters:
kubernetes:
common:
addons:
virtlet:
enabled: true
namespace: kube-system
image: mirantis/virtlet:<virtlet_version>
Log in to the Salt Master node.
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
Verify that Virtlet is updated successfully:
Log in to any Kubernetes Master node.
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.
See also