Cloud Site Examples
Examples for deploying Cloud sites in AWS and Azure.
AWS VPC Site
Section titled “AWS VPC Site”Basic AWS VPC Site
Section titled “Basic AWS VPC Site”Deploy a site in an AWS VPC.
aws-vpc-site.yaml:
metadata: name: example-aws-site namespace: systemspec: aws: region: us-east-1 vpc: vpc_id: vpc-12345678 ingress_egress_gw: aws_certified_hw: aws-byol-voltmesh instance_type: t3.xlarge nodes: - aws_az_name: us-east-1a reserved_inside_subnet: existing_subnet_id: subnet-inside-123Deploy:
# Create cloud credentials firstxcsh cloud_infrastructure create cloud_credentials -f aws-creds.yaml -ns system
# Create sitexcsh cloud_infrastructure create aws_vpc_site -f aws-vpc-site.yaml -ns system
# Check statusxcsh cloud_infrastructure get aws_vpc_site example-aws-site -ns systemAWS Site with Multiple Nodes
Section titled “AWS Site with Multiple Nodes”multi-az-site.yaml:
metadata: name: example-multi-az-site namespace: systemspec: aws: region: us-east-1 vpc: vpc_id: vpc-12345678 ingress_egress_gw: aws_certified_hw: aws-byol-voltmesh instance_type: t3.xlarge nodes: - aws_az_name: us-east-1a reserved_inside_subnet: existing_subnet_id: subnet-inside-1a - aws_az_name: us-east-1b reserved_inside_subnet: existing_subnet_id: subnet-inside-1b - aws_az_name: us-east-1c reserved_inside_subnet: existing_subnet_id: subnet-inside-1cAzure VNet Site
Section titled “Azure VNet Site”Basic Azure VNet Site
Section titled “Basic Azure VNet Site”Deploy an F5 XC site in an Azure VNet.
azure-vnet-site.yaml:
metadata: name: example-azure-site namespace: systemspec: azure: region: eastus resource_group: example-resource-group vnet: vnet_name: example-vnet ingress_egress_gw: azure_certified_hw: azure-byol-voltmesh instance_type: Standard_D3_v2 nodes: - azure_az: "1" inside_subnet: subnet_name: inside-subnetDeploy:
# Create cloud credentialsxcsh cloud_infrastructure create cloud_credentials -f azure-creds.yaml -ns system
# Create sitexcsh cloud_infrastructure create azure_vnet_site -f azure-vnet-site.yaml -ns systemCloud Credentials
Section titled “Cloud Credentials”AWS Credentials
Section titled “AWS Credentials”aws-creds.yaml:
metadata: name: example-aws-creds namespace: systemspec: aws_secret_key: access_key: AKIAIOSFODNN7EXAMPLE secret_key: blindfold_secret_info: location: string:///base64-encoded-secretAzure Credentials
Section titled “Azure Credentials”azure-creds.yaml:
metadata: name: example-azure-creds namespace: systemspec: azure_client_secret: subscription_id: your-subscription-id tenant_id: your-tenant-id client_id: your-client-id client_secret: blindfold_secret_info: location: string:///base64-encoded-secretSite Management Commands
Section titled “Site Management Commands”List Sites
Section titled “List Sites”# List AWS sitesxcsh cloud_infrastructure list aws_vpc_site -ns system
# List Azure sitesxcsh cloud_infrastructure list azure_vnet_site -ns systemGet Site Details
Section titled “Get Site Details”# Get AWS sitexcsh cloud_infrastructure get aws_vpc_site example-aws-site -ns system -o yaml
# Get Azure sitexcsh cloud_infrastructure get azure_vnet_site example-azure-site -ns system -o yamlSite Status
Section titled “Site Status”# Check site registration statusxcsh sites status site example-aws-site -ns systemDelete Site
Section titled “Delete Site”# Delete AWS sitexcsh cloud_infrastructure delete aws_vpc_site example-aws-site -ns system
# Delete Azure sitexcsh cloud_infrastructure delete azure_vnet_site example-azure-site -ns systemTroubleshooting
Section titled “Troubleshooting”Check Site Status
Section titled “Check Site Status”xcsh cloud_infrastructure get aws_vpc_site example-site -ns system -o json | jq '.status'List All Cloud Resources
Section titled “List All Cloud Resources”# List all cloud credentialsxcsh cloud_infrastructure list cloud_credentials -ns system
# List all sitesxcsh cloud_infrastructure list aws_vpc_site -ns systemxcsh cloud_infrastructure list azure_vnet_site -ns systemVerbose Output
Section titled “Verbose Output”xcsh cloud_infrastructure get aws_vpc_site example-site -ns system -o json