Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Availability Zone selection when provisioning AKS and zone-redundant resources #1290

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

jfchevrette
Copy link
Collaborator

What this PR does

  • Refactor helper script to get regions and AZs in a better format to put in the common.bicep file
  • Updated common.bicep with AZ availability for each region, add func to get list of AZs for a region
  • Update aks-cluster, svc-cluster, mgmt-cluster templates to use the AZs provided by the updated data
    • Regions are not provisioned appropriately based on AZ availability

Jira: https://issues.redhat.com/browse/XCMSTRAT-1067

Link to demo recording:

Special notes for your reviewer

Copy link
Collaborator

@tony-schndr tony-schndr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -255,7 +252,7 @@ module istioIngressGatewayIPAddress '../modules/network/publicipaddress.bicep' =
name: istioIngressGatewayIPAddressName
ipTags: istioIngressGatewayIPAddressIPTagsArray
location: location
zones: zoneRedundancyZones
zones: locationHasAvailabilityZones ? locationAvailabilityZones : null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could set this as a variable at the top, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it reads better without another variable which may not convey the two possible outcomes

... to account for regions with varied number of AZs and the eventuality
that AZ names could be something other than 1,2,3
@jfchevrette jfchevrette force-pushed the per-region-az-selection branch from 66f57ba to 106e2f5 Compare February 10, 2025 19:01
@jfchevrette jfchevrette merged commit 8eabdcc into main Feb 11, 2025
21 checks passed
@jfchevrette jfchevrette deleted the per-region-az-selection branch February 11, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants