Iterating and Updating

A guide to walk you through iterating and updating a release in Replicated

Iterate and Deliver Updates

This guide will walk you through making a change and delivering an update to an application after it’s been deployed. It’s assumed you have the environment from parts 1 and 2 of this guide (creating a release and installing). If you haven’t completed these guides, head back and finish them first.

Now that we have a server running, a common task is to deliver updates. Our application is simple (just a redis container), but let’s add an nginx congtainer to our test application.

Create A New Release

On the Releases page of the Vendor Portal, click the Create Release link on top. Once again, you’ll be taken to a YAML editor that shows the contents of the most recently created release. This gives us everything we’ve done so far, and our task now is to only write the changes needed to add nginx into our application.

Add nginx Container

Nginx is a powerful tool that can support a lot of configuration, but we will deliver a basic, unconfigured nginx container. Scroll down in the YAML to the components: section again. There’s a single container (redis) that we previously added. Above this container definition, add the following nginx container definition. Indentation is important in YAML, if you have problems, the entire final YAML is published here for reference.

      - source: public
        image_name: nginx
        version: "1.13.9"
          - private_port: 80
            public_port: 80

Save And Promote The Release

Following the same process we did before, click the Save Release button, go back one screen and click Promote. Choose the Unstable branch again to promote release 2 to this branch. That’s all that’s needed to promote an update to a channel. Now, any license installed from the “Unstable” channel will start with this new release, and any installation already running will be prompted to update to the new release.

Update The Test Server

To install and test this new release, we need to connect to the Admin Console dashboard on port :8800 using a web browser. At this point, it will likely show that our test application is Up To Date and that No Updates Are Available. Replicated will periodically check for new updates and this message will change. But we can force Replicated to check now and not wait for the next interval.

Click on the Check Now button. A popup should appear stating that there’s an update available with a single button titled “View Update”.

View Update

Click the View Update button and the Admin Console will show the release history of your application, including the new release we just promoted. Clicking the Install Update button on this still will pull the nginx container, and restart the application to include nginx. When it’s finished, navigate back to the dashboard and you should see that the application is up to date again.

Next, head to the native scheduler documentation to learn how to prepare your application to deploy on Replicated with the Replicated Native Scheduler.