F5 Big IP on GCP – Part 2 – Some Advanced Scenarios
HA versus LB Configuration of F5
F5 can be set up on GCP using a High Availability ( HA ) Configuration as well as a Load Balancing Configuration (using GCP's Managed Instance Groups).
- Standalone
This Terraform plan uses the Google provider to build the necessary Google objects and a standalone BIG-IP device with 3-NICs. Traffic flows from client to F5 to backend app servers. - Autoscale via LB
This Terraform plan deploys BIG-IP devices with 3-NICs in a Google Managed Instance Group (MIG). Each device is standalone, each device retrieves its onboarding from custom-data, and each device is treated as immutable. Network/Application changes are made to Terraform TF files (or DO and AS3 json files), and the Google MIG will perform rolling upgrades of each BIG-IP as a result of modified custom-data. - HA via API
This Terraform plan uses the Google provider to build the necessary Google objects and a pair of BIG-IP devices with 3-NICs. The F5 Cloud Failover Extension (CFE) will call the Google REST API and move cloud objects (ex. IPs, routes) during failover when the BIG-IP detects a problem with its peer. Traffic flows from client to F5 to backend app servers. - HA via LB
This Terraform plan uses the Google provider to build the necessary Google objects and a pair of BIG-IP devices with 3-NICs. The Google LB is used to distribute traffic to the F5 BIG-IP devices for high availability and failover. Traffic flows from client to GLB/ILB to F5 to backend app servers.
Some scoping questions:
- Can you use GCP Auto Scaling with F5? What about Target Groups?
- Can the target groups be Cloud Functions?
- What about DNS? How is that handled?
- How many Network Interfaces Needed for F5 Appliances ?
- How many IP Addresses are needed for F5?
Attaching multiple network interfaces to an instance is useful when you want to:
- Create a management network.
- Use network and security appliances in your VPC.
- Create dual-homed instances with workloads/roles on distinct subnets.
How do I do this through Terraform?
Actual Deployment (on AWS) - Create 3 Network Interfaces (the public interfaces are prompted during AMI based creation).
Deploy the BIG-IP VE instance |
From the AWS Marketplace, choose an F5 BIG-IP VE image. Ensure you add an extra, external NIC.
|
|
2 | Create an internal network interface |
You created NICs for the management and external subnets when you deployed the instance. You must create an internal NIC and reboot, so BIG-IP VE can recognize the new NIC.
|
Appendix - F5 BigIP Configuration Utility
-
Open a web browser and log in to the BIG-IP Configuration utility by using
https
with the external IP address, for example:https://<external-ip-address>
. The username isadmin
and the password is the one you set previously. -
On the Setup Utility Welcome page, click Next.
-
On the General Properties page, click Activate.
-
In the Base Registration key field, enter the case-sensitive registration key from F5.
For Activation Method, if you have a production or Eval license, choose Automatic and click Next.
Hey, I just noticed this site as a referring site in my Github analytics. Thx for resharing the work.