Creating a target instance for each FortiGate-VM
To create a target instance for each FortiGate-VM:
- Create a target instance around the primary FortiGate-VM instance:
gcloud compute target-instances create doc-pf-primary-instance \ --instance <INSTANCE_NAME>
- Create a target instance around the secondary FortiGate-VM instance:
gcloud compute target-instances create doc-pf-secondary-instance \ --instance <INSTANCE_NAME>
- Create a forwarding rule:
gcloud compute forwarding-rules create doc-pf-rule \ --ip-protocol TCP \ --ports 80 \ --target-instance doc-pf-primary-instance \ --target-instance-zone=$zone1 \ --region us-central1