Deploy Your First Workload

Overview

Follow the steps below to get started using Control Plane by deploying a sample application.

This quick start will demonstrate:

  • Logging in to the Control Plane console
  • Creating an org, GVC, and workload
  • Deploying an application to multiple cloud providers and locations

If you already have a user account and are a member of an org, skip to step 2.

Step One - Log in and create a new org

  1. Browse to:  https://console.cpln.io/
  2. The log in page will be shown. Choose one of the providers. You will now be logged into the console.
  3. Enter a unique org name (e.g., my-company) and click Create
  4. The org will be created and the Create GVC form will be shown

Step Two - Create a GVC

In this step, you will create a GVC and map it to two cloud providers in two locations.

If you are not already on the Create GVC form, click the Create dropdown in the upper right corner and select GVC.

  1. Enter a GVC name (e.g., foo-bar-gvc) and click Next (Locations)

  2. Select the desired locations. For this quickstart, we'll select:

    • aws-eu-central-1
    • gcp-us-east1
  3. Click Create. The GVC will be created and the details page will be shown.

Step Three - Create a Workload

In this step, you will deploy the sample application by creating a workload.

  1. Click Workloads from the left side menu. Once the form is loaded, click the New button.
  2. Enter a workload name (e.g., foo-bar-workload) and click Next (Container 1)
INFO

The workload name will be used as the subdomain for the endpoint URL's. The name cannot be changed.

  1. In the Image textbox, enter:
copy
gcr.io/knative-samples/helloworld-go
NOTE

The Name textbox will automatically be the short name of the image which can be overwritten.

The image gcr.io/knative-samples/helloworld-go is a demo web app written in Go.

It will show the workload name, cloud provider, and location.

  1. Click the Serves Traffic switch to indicate that this workload will be serving requests on port 8080
  2. Click the Create button. The workload will be created and the summary page will be shown.

Step Four - Configure Firewall

In this step, you will enable the firewall to allow external requests to the workload.

  1. Click the Firewall Config link
  2. Click the All Inbound Requests Allowed switch to allow the workload to accept inbound requests. Click Save at the bottom of the page.
  3. Click Summary to return to the summary page

Step Five - Browse to the running workload

In this step, you will browse to the global endpoint URL that was generated for this workload. This URL is automatically secured using TLS, load balanced, and DNS geo-routed to the nearest health location.

  1. After a minute or two, if the deployment was successful, the Workload Health will indicate Healthy.
  2. Click the Open link beside the global endpoint URL to launch to application
  3. The output of the sample application will be shown indicating the cloud provider and location closest to you

Step Six - View individual deployments

In this step, you will launch the demo application at each location.

The output of the demo application will show the cloud provider and the location where it is running.

  1. Return to the console and click Deployments
  2. Next to each location is an Open link that will launch the application at its respective location. The URL is secured using TLS.

The output for each location will be similar to:

aws-eu-central-1
Hello foo-bar-workload r06hp3y0ww3qw aws eu-central-1!
gcp-us-east1
Hello foo-bar-workload r06hp3y0ww3qw gcp us-east1!

Summary

With a minimal amount of effort, you were able to deploy an application to multiple cloud providers and locations. This workload is now managed by Control Plane and you can easily modify any of the available options.

Click the Next button below to learn how to configure a custom domain for your workload.

Copyright © 2021 Control Plane Corporation. All rights reserved. Revision 30221ec6
Contents