Hello, Cloud!

The Hello, Cloud! is the second QuickStart in Volterra’s Hello, World! series. This guide provides instructions to deploy a secure mesh for your application spanning across multiple cloud locations. Using these instructions, you can also visualize web application connectivity and security metrics using Volterra Console.


Prerequisites

  • Volterra VES Account.

    Note: In case you do not have the account, see Create a VES Account.

  • Volterra Node installed on Azure with Azure Kubernetes Service (AKS).

  • Volterra Node installed on Amazon Web Services (AWS).

Deploy Using Volterra Quickstart

Using Volterra Quickstart tool creates the mesh in a quick manner. Perform the following steps to deploy the secure mesh for your application.

Step 1: Create an input variables file. This example show sample variables file.

{
    "api_p12_file": "<absolute_path_to_your_p12_file>",
    "api_url": "<api_url ex: https://<tenant-name>.console.ves.volterra.io/api>",
    "name": "<prefix name for all the resource created>",
    "azure_site_name": "<az-site-name>",
    "az_fleet_label_value": "<az-fleet-label>",
    "aws_site_name": "ce01-ashburn-aws-field",
    "aws_vsite_name": "<aws_vsite_name>",
    "sli_network_prefix": "192.168.1.0",
    "slo_network_prefix": "192.168.0.0",
    "stage_one": true,
    "stage_two": true,
    "stage_three": false,
    "stage_four": false,
    "stage_five": false,
    "vk8s_kubeconfig_base64": "",
    "aks_kubeconfig_base64": "<base64 of aks kubeconfig file you have>"
  }

Step 2: Download the Volterra Quickstart tool.

docker run --rm -v $(pwd):/opt/bin:rw docker.io/volterraio/volt-terraform:latest cp /deploy-terraform.sh /opt/bin

Step 3: Create the VES_P12_PASSWORD environment variable. Enter your API credentials password as the value for this variable.

export VES_P12_PASSWORD=<your_password>

Note: This step requires you to create API credentials in the Volterra Console by navigating to IAM -> API Credentials option.

Step 4: Deploy the application in your cloud locations using the created variables file.

./deploy-terraform.sh apply -p volterra -i <absolute_path_to_vars_file> -tn hello-cloud --force

Step 5: Log on to the Volterra Console and change to the -hipster namespace. Navigate to Applications and then to Virtual k8s. Download the kubeconfig file for the vk8s cluster. Obtain the base64 string for the downloaded kubeconfig file.

cat <path to kubeconfig file> | base64

Step 6: Open the inputs variable file and update the following variables.


"stage_three": true,
"stage_four": true,
"vk8s_kubeconfig_base64": "<base64 string of the kubeconfig file>",

Note: Use the base64 string obtained in the previous step for the vk8s_kubeconfig_base64 field.

Step 7: Re-deploy the application using the updated input file. This will ensure that your application is deployed through a secure mesh connected across your cloud locations.

./deploy-terraform.sh apply -p volterra -i <absolute_path_to_vars_file> -tn hello-cloud --force

Step 8: Monitor your application for statistics using the output option of the Quickstart tool.

open $(./deploy-terraform.sh output -n <name you have provide in variable file> your_app_url)


Concepts