Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1)
Total Page:16
File Type:pdf, Size:1020Kb
Page 1 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Avi Deployment Guide for Google Cloud Platform (GCP) view online About Google Cloud Platform (GCP) Google Cloud Platform is a cloud computing service that offers hosting on the same supporting infrastructure Google uses internally for end-user products such as Google Search and YouTube. Cloud Platform provides developer products to build a range of programs from simple websites to complex applications. Google Cloud Platform is a part of a suite of enterprise services from Google Cloud and provides a set of modular cloud- based services with a host of development tools, including hosting and computing, cloud storage, data storage, translation APIs and prediction APIs. A sample deployment case would look as below. About Avi Vantage The Avi Vantage Platform provides enterprise-grade distributed ADC solutions for on-premises as well as public-cloud infrastructure. Avi Vantage also provides built-in analytics to diagnose and improve the end-user application experience, while making operationalizing easier for network administrators. Avi Vantage is a complete software solution which runs on commodity x86 servers or as a virtual machine and is entirely accessible via REST API calls. Purpose of this Guide Avi Vantage serves as an application delivery controller for application workloads running on Google Cloud Platform (GCP). The purpose of this document is to describe the process of provisioning and configuring an Avi Vantage solution version 18.1.x. Intended Audience Copyright © 2020 Avi Networks, Inc. Page 2 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Intended Audience The document is intended for, * GCP system administrators, who provision the Avi Vantage solution. * Network administrators, who configure/operationalize the Avi Vantage solution. We assume you are familiar with the following. * The basics of load balancing and application delivery * Basic GCP functionality (find more information here). Features Avi Vantage for GCP provides the following functionality. * Virtual Machines (VMs) are created using standard Google versions (For example, CentOS 7.5). The CentOS image for the base VM is available in the Google repository. * The Avi Controller and Avi Service Engines (SE) run as Docker containers. * The SE uses a single interface for control and data traffic. In case of dedicated management, the SE can use two interfaces. Note: Starting release 18.1.3, an SE can be configured with multiple interfaces. For more information, refer to Configuring Instances with Mutliple Interfaces. * Starting with release 18.1.2, you can create a load balancer with a virtual IP (VIP)from the GCP Virtual Private Cloud (VPC) subnet. * The service account authentication mechanism is used. Privilege is inherited on being spawned by an authenticated entity through API cells. The Controller instance should be spawned with a read-write scope, while SEs are spawned with a read-only scope. For more information, refer to GCP Roles and Permissions. * The only interaction that the Controller has with the Google API is to add a route to the VIP via the instance. The Controller uses query API calls as well. The Controller also interacts with the Google Cloud Platform to program the routes. For a floating IP, a network load balancer is added. * For SE high availability, only elastic HA modes are supported for SEs. For more information, refer to Elastic HA for Service Engines. * The GCP Avi Controller instances need access to the GCP API endpoints. This can be achieved through any of the following mechanisms: * Controller instances having external IP addresses attached to them. * Controller instances connecting to a network, through a VPN, that has Internet access. * The Controllers' subnet is enabled for Private Google Access. Limitation Legacy networking mode is not supported Provisioning Avi Vantage in GCP This section discusses the process of provisioning and configuring Avi Vantage with Google Cloud Platform. Network, Subnet, Instances in Google Cloud Networking resources help in managing networks, fire walls, and other aspects of your networks and instances. Find networking resources on the left side menu in the GCP console. Creating Virtual Private Cloud (VPC) Network A VPC network, sometimes just called a network, is a virtual version of a physical network, like a data center network. It provides connectivity for your compute engine VM instances, Kubernetes engine clusters, and other resources in your project. To create a VPC network, 1. Go to the Google Cloud Platform console via https://console.cloud.google.com. 2. Navigate to the project that you have subscribed to. 3. Click on VPC network > VPC networks. Copyright © 2020 Avi Networks, Inc. Page 3 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) 4. Click on Create VPC Network. 5. Enter a Name for the VPC Network. 6. Enter the subnet name, IP address range of the network to the VPC network. Note: Enter only an IP4 address because GCP does not support IPV6. 7. Click on Create. The network created is as shown below. Firewall Rules in GCP GCP firewall rules let you allow or deny traffic to and from your VM instances. Protocol ports are used by Avi Vantage for management communication as described in Protocol Ports Used by Avi Vantage for Management Communication. To create firewall rules, 1. Click on VPC ntwork under Networking in the left pane > Firewall Rules. 2. Click on Create Firewall Rule. Copyright © 2020 Avi Networks, Inc. Page 4 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) The Create a firewall rule screen appears. Create firewall rules to allow TCP, UDP, and ICMP traffic within the network and HTTP/HTTPS from outside under the respective network. Creating Firewall Rules for All UDP and TCP Traffic To create rules for all UDP and TCP traffic, configure the fields as shown in the image below and click on Create. Copyright © 2020 Avi Networks, Inc. Page 5 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Creating Firewall Rules on TCP Port 80 and 443 To create rules on TCP port 80 and 443, configure the fields as shown in the image below and click on Create. Copyright © 2020 Avi Networks, Inc. Page 6 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Creating Firewall Rules for ICMP To create firewall rules for ICMP, configure the fields as shown in the image below and click on Create. Copyright © 2020 Avi Networks, Inc. Page 7 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Copyright © 2020 Avi Networks, Inc. Page 8 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Creating Firewall Rules for Internal SE-to-SE Communication To create firewall rules for internal SE-to-SE, configure the fields as shown in the image below and click on Create. The firewall rules created are listed as shown below. Copyright © 2020 Avi Networks, Inc. Page 9 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Creating a Controller To create an Avi Controller instance, 1. Navigate to the Google Cloud Platform console and click on Compute engine > VM instances. 2. Click on Create Instance. 3. Enter the Name for the instance, Region and Zone. 4. Select the Machine Type as n1-standard-4 for 4 vCPUs and 15 GB of memory. Note: The sizing will vary depending on your scaling requirement. 5. To choose a different distribution and change the size of the disk, click on Change. Note: Avi Vantage supports only CentOS and Ubuntu. For more information, refer to the Ecosystem Support article. Copyright © 2020 Avi Networks, Inc. Page 10 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) 6. Select CentOS 7 image and select the boot disk size,(a minimum of 40GB) as required. For more information refer to the Sizing Service Engines article. 7. Click on Select. 8. Click on Identity and API access. Note: Alternatively, the service account authentication mechanism can also be used. Privilege is inherited on being spawned by an authenticated entity through API cells. The Controller instance should be spawned with a read-write scope, while SEs are spawned with a read-only scope. For more information, refer to GCP Roles and Permissions. 9. Select the required Service Account. 10. Select Set access for each API as the Access Scope. Copyright © 2020 Avi Networks, Inc. Page 11 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) 11. Select Read Write permissions for compute engine. 12. Click on Allow HTTP traffic and Allow HTTPS traffic to permit outside connections. 13. Click on the Security tab. 14. Copy the public key from the machine which will be used for initiating SSH and paste them into the text box. Copyright © 2020 Avi Networks, Inc. Page 12 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) The Avi Controller is created with an external and an internal IP address from the network range specified while creating the networks. Note: Google Cloud Platform does not allow serial console access to the created instance if an external IP is not allocated. Copyright © 2020 Avi Networks, Inc. Page 13 of 27 Avi Deployment Guide for Google Cloud Platform (GCP) Avi Networks — Technical Reference (18.1) Serial console access is not required for installing or operating Avi Vantage but may be useful for troubleshooting. 15. Click on the Create button.