Skip to content

Commit

Permalink
Added 3 new "Example of" sections with examples of Application Gatewa…
Browse files Browse the repository at this point in the history
…y configurations, for new and existing features related to the following Azure CPI PRs/issues:

- cloudfoundry/bosh-azure-cpi-release#651 (Fixes cloudfoundry/bosh-azure-cpi-release#644)
- cloudfoundry/bosh-azure-cpi-release#541 (Fixed cloudfoundry/bosh-azure-cpi-release#328)
- cloudfoundry/bosh-azure-cpi-release#638 (Fixed cloudfoundry/bosh-azure-cpi-release#111)

Note: This commit assumes that PR cloudfoundry#651 will be included in a new `v37.7.0` release of the Azure CPI (in order to properly document the CPI version requirements of new features). If PR cloudfoundry#651 is included in a different CPI version, then this PR will need to be amended appropriately.
  • Loading branch information
Justin-W committed Dec 15, 2021
1 parent f853ebd commit 1ce00ec
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions content/azure-cpi.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,47 @@ vm_extensions:
backend_pool_name: <backend-pool-4-name>
```
Example of an application gateway (simple configuration):
```yaml
vm_extensions:
- name: application-gateway-example-1
cloud_properties:
application_gateway: <application-gateway-name>
```
Example of an application gateway (complex configuration):
```yaml
vm_extensions:
- name: application-gateway-example-2
cloud_properties:
application_gateway:
name: <application-gateway-name>
# resource_group_name is optional
resource_group_name: <resource-group-name>
# backend_pool_name is optional
backend_pool_name: <backend-pool-name>
```
Example of multiple application gateways (4 backend address pools of 3 AGWs):
```yaml
vm_extensions:
- name: application-gateway-example-3
cloud_properties:
application_gateway:
- name: <application-gateway-1-name>
# NOTE: the following AGW is in a different Resource Group (than the `resource_group_name` in the global CPI settings)
- name: <application-gateway-2-name>
resource_group_name: <resource-group-name>
# NOTE: the following 2 attach the VMs to 2 separate backend address pools of the same AGW
- name: <application-gateway-3-name>
backend_pool_name: <backend-pool-2-name>
- name: <application-gateway-3-name>
backend_pool_name: <backend-pool-4-name>
```
Example of an availability set:
```yaml
Expand All @@ -258,6 +299,7 @@ instance_groups:
release: default
vm_extensions:
- load-balancer-example-1
- application-gateway-example-2
- availability-set
```

Expand Down

0 comments on commit 1ce00ec

Please sign in to comment.