Upgrade service and preserve DVC sidekick


is it possible to upgrade service while preserving its data stored in data volume container which is marked as sidekick? (using rancher-compose)

Please tell me also if you think I am using foot to scratch my ear. It kinda feels like it.

    # ...
    volumes_from: [ 'service-data' ]
    labels: { io.rancher.sidekicks: service-data }
    # ...
    labels: { io.rancher.container.start_once: true }

You’ll need to do an in service upgrade. http://docs.rancher.com/rancher/rancher-compose/upgrading/#in-service-upgrade

If you only make changes to the service and upgrade that service specifically, it should only upgrade that service and not the sidekick.

And you need to make sure that you had created the services in rancher-compose not through the UI.

1 Like