Built-in App Tour Guide
- Tour the Quick Harness Sample Application Deployment
- Tour the Harness Sample App in Detail
- Review the Harness Sample Application
- Review the Artifact and Cloud Connections
- Harness Delegate
- Deploy the Harness Sample Application
- Next Steps
Harness includes a built-in Tour Guide that walks you through deploying the Harness Sample App or simply touring its components. This quick tour guide takes you through a sample Harness setup and deployment. First, you get a summary of the Harness building blocks which is called as the CD Abstraction Model in Harness Key Concepts. Next, you can use the Sample App’s Pipeline to deploy a Docker image to a Kubernetes cluster.
To start the Tour Guide, do the following:
Log into Harness. If you do not have a Harness account, sign up for a free account here.
Once you are logged in, click the blue Help button at Harness Manager's bottom-right corner. This opens the Help Center.
Click Tour Guide. The Tour Guide begins with the Welcome message. You have two options, Quickly deploy a sample application and Learn about applications in depth.
To deploy the Harness Sample App, click Quickly deploy a sample application. The sample app Tour Guide streamlines your tour by automating several steps. To tour the Harness Sample App while learning about its components in detail, click Learn about applications in depth. At any point in time if you quit the Tour Guide, you can resume your tour by clicking the Help Center's Tour Guide button.
You will then be provided with an option to resume your tour.
The Tour Guide perform steps similar to those in the remainder of this document—but will streamline your tour by automating several steps.
Tour the Quick Harness Sample Application Deployment
The sample application deployment tour takes only a few minutes. Everything has been set up in the Sample App. No input is required from you. To deploy the Harness Sample App, click Quickly deploy a sample application.
The infrastructure is prepared automatically.
Post this step you can deploy your sample application as described in the, Deploy the Harness Sample Application section.
Tour the Harness Sample App in Detail
To look through the Harness Sample App in greater detail, without deploying it, simply log into Harness, click Setup, and then in Applications, click the Harness Sample App. Click through the Application's components to see how Harness sets up and deploys a microservice.
You can also tour the Harness Sample App using Harness built-in Tour Guide:
- Click the Help button in the Harness Manager.
- In the Help Center, click Tour Guide. The Tour Guide Welcome message appears.
- Click Learn about application in depth.
- Follow the steps in the tour. The tour takes you through each of the Harness Sample App's components and explain how it is configured.
You can review and examine different settings and configurations of sample application as explained in the below sections.
Review the Harness Sample Application
The Harness Sample App shows you some of the settings that the Harness Application manages. To examine the Sample App, do the following:
- In Harness Manager, click Setup.
- Scroll to Harness Sample App, and click it. The Sample App appears.
A Harness Application represents a group of microservices, their deployment pipelines, and all the building blocks for those pipelines. Harness models any release process using a logical group of one or more entities:
- Services - Services represent your microservices. You define the sources of artifacts for those services, and the services' container specs, configuration variables, and files.
- Environments - Environments represent one or more of your deployment infrastructures, such as Dev, QA, Stage, Production, etc.
- Workflows - Workflows define the deployment orchestration steps, including how a Service is deployed, verified, rolled back, and more. Some of the common Workflow types are Canary, Blue/Green, and Rolling. An Application might have different deployment orchestration steps in different Environments.
- Pipelines - Pipelines define multiple workflows and approvals in sequential and/or parallel stages as a new build progresses through your release process.
- Triggers - Triggers automate deployments using a variety of conditions, such as Git events, new artifacts, schedules, and the success of other pipelines.
- Infrastructure Provisioners - Infrastructure Provisioners define blueprints from known Infrastructure-as-Code technologies (Terraform, Cloud Formation, etc.), and map the outputs (such as load balancers, VPCs, etc.). They enable Workflows to provision infrastructure on the fly when deploying Services.
To sum up, Harness Applications organize all of the entities and configurations in Harness CI/CD. Now that you've seen the components of a Harness Application, let's look at the Account settings that connect Harness to your platforms and enable deployment.
Review the Artifact and Cloud Connections
The Harness Sample App includes two built-in connections for cloud platforms and artifact providers:
- Cloud Provider — Harness Sample K8s Cloud Provider: Cloud Providers represent the infrastructure of your applications, such as a Kubernetes cluster, AWS account, Google Cloud Platform account, Azure subscription, or data center. The Harness Sample K8s Cloud Provider connects Harness to the Kubernetes cluster using the installed Delegate.
- Artifact Server — Harness Docker Hub: This connects Harness with Docker Hub, the public Docker registry. The Harness Sample App obtains its sample artifact, a To-Do List app, from Docker Hub.
You can use these as models for specifying a Cloud Provider and Artifact Server in your own Harness applications.
Review the Artifact Server Settings
Harness can be integrated with different types of repositories and providers which are called as connectors. These connectors help you sync with repos, pull in artifacts, integrate verification and analytics tools, and leverage collaboration channels.
The Sample App uses one Artifact Server, and it is preconfigured for Docker Hub. To review the Artifact Server, do the following:
- In Setup, click Connectors.
- Click Artifact Servers, and then click Harness Docker Hub.The Docker Artifact Server settings appear. In this dialog, you can explore the following settings:
- Close the Docker Artifact Server dialog by clicking the Close or SUBMIT button.
Review the Cloud Provider Settings
The sample Cloud Provider, Harness Sample K8s Cloud Provider, is a logical representation of a Kubernetes cluster. To view this Cloud Provider, do the following:
- In Harness Manager, click Setup.
- Click Cloud Providers.
On the Cloud Providers page, the built-in Cloud Provider, Harness Sample K8s Cloud Provider is listed.
- Click Harness Sample K8s Cloud Provider. The Cloud Provider settings appear.
- Click the Close or SUBMIT button.
We are done reviewing the Cloud Provider settings. The Sample App does not need any other connectors.
As covered in the Harness Key Concepts, the Harness Delegate is software you install in your target environment that connects to the Harness Manager and performs Continuous Delivery tasks.
A new Harness account includes a Harness Kubernetes Delegate already installed in a pod in a Kubernetes cluster managed by Harness. This is the target cluster that we will use for deployment.
To see the Delegate, do the following:
- Click Setup, and then click Harness Delegates.
If the Delegate is terminated, click Provision Again to automatically install and run the Delegate. This takes approximately 2–3 minutes to complete. You might need to refresh the page once the Delegate is provisioned.
The provisioned Delegate is available to use for one hour. After that, you need to provision it again.
Deploy the Harness Sample Application
Here's what you've been waiting for. Let's explicitly deploy the Docker container to a Kubernetes cluster. In Harness Manager, click Continuous Deployment.
The Harness Continuous Deployment dashboard appears. If this is your account's first deployment, the dashboard will be blank.
Here you will see all deployments, with their stages, successes and failures.
You can deploy a Pipeline or a Workflow. We're going to deploy the Pipeline we looked at in Review the Harness Sample Application. To do so:
- On the Continuous Deployment dashboard, click Start New Deployment. The Start New Deployment dialog appears.
- In Application, select the Harness Sample App.
- In Pipeline, select K8s Prod Pipeline.
After you select the Pipeline, the Artifacts section appears. Harness generates a list of all of the artifacts available in the Artifact Source for the Service being deployed.
- From Build / Version menu, select any Build#.
- To begin deploying your Pipeline and artifact, click SUBMIT.
Let's see at each of the deployment stages in detail.
Stage 1 Deploying
The QA stage is the Pipeline's first stage of deployment. Here, you can watch the execution of each step of Stage 1 in the To-Do List K8s Workflow.
Once the QA stage is complete, the Approval stage starts.
Stage 2 Approve Deployment
Your approval is required before the Pipeline can continue the release process. Click Approve.
If you are the Admin for the Harness account, or are listed in the Workflow’s Notification Strategy, you will receive an email notifying you of a pending approval:
Stage 3 Deploying
Watch Stage 3 deploy the Docker image from the To-Do List K8s Service to your Kubernetes cluster.
To see your deployed To-Do List app running in your browser, click the Rollout Deployment node in Stage 3 Prod, and then click the link to the right of Load Balancer.
The To-Do List app opens in a new tab. Once you see the app, return to the browser tab for Continuous Deployment.
The To-Do List app is deployed and running in your Kubernetes cluster. This tour is now complete.