Deploying on Azure¶
Only what differs on Azure. The deployment flow itself is Deploying a data plane, and the commands are the same on every cloud.
xratu dataplane install prepare acme edge-eu dp-eu-west1 \
--provider azure \
--dp-count 2 \
--artifact-registry <acr-name>.azurecr.io/<repository> \
--artifact-bucket azblob://<storage-account>/<container>/<prefix> \
--subscription-id <subscription-id> \
--tenant-id <tenant-id> \
--location <location> \
--resource-group <resource-group> \
--aks-oidc-issuer https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ \
--artifact-registry-scope /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>
Values in angle brackets are yours to supply, so replace every one before
running a command. Names without brackets, such as the organization, pool and
dp_install, are the ones you choose in Xratu.
What Azure asks for¶
Six fields, the largest set of the three clouds.
In this section¶
- Required
provider_configcovers the six fields and where each lands. - Azure resources covers the identities, federation and role assignments Terraform creates.
- Azure workload identity covers the federated credential, the client-ID annotation, and how apply resolves it from Terraform's outputs.
- Azure paths covers the registry login server, the registry
scope, and the
azblob://form. - Azure role assignments covers the four assignments and their scopes.
- Azure-specific edits before apply covers the optional adjustments some subscriptions require.
Walkthrough¶
- Prepare and apply on Azure prepares, reviews the generated Terraform, applies, and verifies the bindings.
The three things to settle early¶
The registry, storage account and container must already exist. Terraform creates identities and assigns roles; it creates none of those.
Azure asks for the registry twice. Once as a login server for pushing, once as a resource ID for assigning roles on, and neither is derivable from the other.
Client IDs resolve during apply. Azure's annotation needs a value Terraform
allocates, and apply reads it from Terraform's outputs and substitutes it before
the cluster layer. up works here as it does elsewhere.