cloud-image-uploader: replicate production images beyond eastus

The image needs to be replicated to a region to be usable in that
region. It's likely we'll want to expand this list and potentially add
logic to the uploader to not replicate nightly images until they are
promoted to the latest image in the stream so I've templated it it
in the configuration.
This commit is contained in:
Jeremy Cline 2024-04-15 16:29:15 -04:00
parent 1072599f35
commit d89d0d22cf
No known key found for this signature in database
2 changed files with 26 additions and 2 deletions

View file

@ -38,6 +38,28 @@
app: cloud-image-uploader
template: configmap.yml
objectname: configmap.yml
vars:
azure_image_regions:
- "australiaeast"
- "brazilsouth"
- "canadacentral"
- "centralindia"
- "eastasia"
- "eastus"
- "eastus2"
- "francecentral"
- "japaneast"
- "koreacentral"
- "northeurope"
- "norwayeast"
- "qatarcentral"
- "southafricanorth"
- "switzerlandnorth"
- "uksouth"
- "westeurope"
- "westus3"
- role: openshift/secret-file
app: cloud-image-uploader

View file

@ -53,13 +53,15 @@ storage_account_type = "Standard_LRS"
{% else %}
{% for region in azure_image_regions %}
[[consumer_config.azure.target_regions]]
name = "eastus"
name = "{{ region }}"
regional_replica_count = 3
storage_account_type = "Standard_ZRS"
{% endif %}
{% endfor %}
{% endif %}
[qos]
prefetch_size = 0