From 909100389c36528d92fb5ad54740e53573cc5e1a Mon Sep 17 00:00:00 2001 From: bmcelvee Date: Fri, 25 Sep 2020 16:21:08 -0400 Subject: [PATCH] OSDOCS-1192 Configuring registry storage for Azure Government --- ...y-configuring-storage-azure-gov-cloud.adoc | 39 +++++++++++++++++++ ...try-storage-azure-user-infrastructure.adoc | 2 + 2 files changed, 41 insertions(+) create mode 100644 modules/registry-configuring-storage-azure-gov-cloud.adoc diff --git a/modules/registry-configuring-storage-azure-gov-cloud.adoc b/modules/registry-configuring-storage-azure-gov-cloud.adoc new file mode 100644 index 0000000000..207bbf3b0c --- /dev/null +++ b/modules/registry-configuring-storage-azure-gov-cloud.adoc @@ -0,0 +1,39 @@ +// Module included in the following assemblies: +// +//* registry/configuring_registry_storage-azure.adoc + +[id="registry-configuring-storage-azure-gov-cloud_{context}"] += Configuring registry storage for Azure Government + +During installation, your cloud credentials are sufficient to create Azure Blob +Storage, and the Registry Operator automatically configures storage. + +.Prerequisites + +* A cluster on Azure with user-provisioned infrastructure in a government region. +* To configure registry storage for Azure, provide Registry Operator +cloud credentials. +* For Azure storage, the secret is expected to contain one key: +** `REGISTRY_STORAGE_AZURE_ACCOUNTKEY` + +.Procedure + +. Create an link:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal[Azure storage container]. + +. Fill in the storage configuration in `configs.imageregistry.operator.openshift.io/cluster`: ++ +[source,terminal] +---- +$ oc edit configs.imageregistry.operator.openshift.io/cluster +---- ++ +.Example configuration +[source,yaml] +---- +storage: + azure: + accountName: + container: + cloudName: AzureUSGovernmentCloud <1> +---- +<1> `cloudName` is the name of the Azure cloud environment, which can be used to configure the Azure SDK with the appropriate Azure API endpoints. Defaults to `AzurePublicCloud`. You can also set `cloudName` to `AzureUSGovernmentCloud`, `AzureChinaCloud`, or `AzureGermanCloud` with sufficient credentials. diff --git a/registry/configuring_registry_storage/configuring-registry-storage-azure-user-infrastructure.adoc b/registry/configuring_registry_storage/configuring-registry-storage-azure-user-infrastructure.adoc index eb2b24dda4..9503599fee 100644 --- a/registry/configuring_registry_storage/configuring-registry-storage-azure-user-infrastructure.adoc +++ b/registry/configuring_registry_storage/configuring-registry-storage-azure-user-infrastructure.adoc @@ -8,3 +8,5 @@ toc::[] include::modules/registry-operator-config-resources-secret-azure.adoc[leveloffset=+1] include::modules/registry-configuring-storage-azure-user-infra.adoc[leveloffset=+1] + +include::modules/registry-configuring-storage-azure-gov-cloud.adoc[leveloffset=+1]