1. 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 a GVC and a Workload.
- Deploying an application to multiple cloud providers and locations.
Prerequisites
Step One - Log in
- Browse to: https://console.cpln.io
- The login page will be displayed:
- Select the single sign-on (SSO) provider that is connected to your email address.
- If prompted, enter your email address and password.
- You will now be logged into the console.
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
.
-
Enter a GVC name (e.g., foo-bar-gvc) and click
Next (Locations)
. -
Select the desired locations. For this quickstart, we’ll select:
aws-eu-central-1
gcp-us-east1
-
Click
Create
. The GVC will be created and theInfo
page will be shown.
Step Three - Create a Workload
In this step, you will deploy a sample application by creating a Workload.
- Click
Workloads
from the left side menu. Once the form is loaded, click theNew
button. - Enter a Workload name (e.g., foo-bar-workload) and click
Next (Container 1)
. - In the
Image
textbox, enter:
The image cplnquickstarts/helloworld-go
is a web app written in Go.
When the Workload is navigated to, it will display the cloud provider and location in the browser.
- Toggle on the
Serves Traffic
switch to indicate that this Workload will be serving requests on port 8080.- Note: The default port number in the UI is 8080 and happens to be the exposed port of the sample web app. Your containerized application may expose any other port except for the ports listed here.
- At the top of the Workload form, click the
Make Public
button. This will allow all inbound and outbound requests to/from the Workload. - Click the
Create
button. The Workload will be created and theInfo
page will be shown.
Step Four - 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 healthy location.
- After a minute or two, if the deployment was successful, the
Workload Health
will indicateReady
. - Click the
Open
link besides theGlobal Endpoint
URL to launch the application in a new tab. - The output of the sample application will be shown indicating the cloud provider and location closest to you that served the request.
Step Five - View individual deployments
In this step, you will launch the sample application at each Location.
- Return to the console and click
Deployments
. - Next to each location is an
Open
link that will launch the application at its respective location. Take note that the URL is secured using TLS.
The output for each location will be similar to:
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.