Update Interlock services¶
This topic describes how to update Interlock services by first updating the Interlock configuration to specify the new extension or proxy image versions and then updating the Interlock services to use the new configuration and image.
To update Interlock services:
Create the new Interlock configuration:
docker config create service.interlock.conf.v2 <path-to-new-config>
Remove the old configuration and specify the new configuration:
docker service update --config-rm \ service.interlock.conf ucp-interlock docker service update --config-add \ source=service.interlock.conf.v2,target=/config.toml \ ucp-interlock
Update the Interlock service to use the new image, for example, to pull the latest version of MKE:
docker pull v/ucp:latest
Example output:
latest: Pulling from mirantis/ucp cd784148e348: Already exists 3871e7d70c20: Already exists cad04e4a4815: Pull complete Digest: sha256:63ca6d3a6c7e94aca60e604b98fccd1295bffd1f69f3d6210031b72fc2467444 Status: Downloaded newer image for mirantis/ucp:latest docker.io/mirantis/ucp:latest
List all of the latest MKE images:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \ mirantis/ucp images --list
Example output
mirantis/ucp-agent:3.3.16 mirantis/ucp-auth-store:3.3.16 mirantis/ucp-auth:3.3.16 mirantis/ucp-azure-ip-allocator:3.3.16 mirantis/ucp-calico-cni:3.3.16 mirantis/ucp-calico-kube-controllers:3.3.16 mirantis/ucp-calico-node:3.3.16 mirantis/ucp-cfssl:3.3.16 mirantis/ucp-compose:3.3.16 mirantis/ucp-controller:3.3.16 mirantis/ucp-dsinfo:3.3.16 mirantis/ucp-etcd:3.3.16 mirantis/ucp-hyperkube:3.3.16 mirantis/ucp-interlock-extension:3.3.16 mirantis/ucp-interlock-proxy:3.3.16 mirantis/ucp-interlock:3.3.16 mirantis/ucp-kube-compose-api:3.3.16 mirantis/ucp-kube-compose:3.3.16 mirantis/ucp-kube-dns-dnsmasq-nanny:3.3.16 mirantis/ucp-kube-dns-sidecar:3.3.16 mirantis/ucp-kube-dns:3.3.16 mirantis/ucp-metrics:3.3.16 mirantis/ucp-pause:3.3.16 mirantis/ucp-swarm:3.3.16 mirantis/ucp:3.3.16
Start Interlock to verify the configuration object, which has the new extension version, and deploy a rolling update on all extensions:
docker service update \ --image mirantis/ucp-interlock:3.3.16 \ ucp-interlock