1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

Merge pull request #26468 from openshift-cherrypick-robot/cherry-pick-25807-to-enterprise-4.6

[enterprise-4.6] OSDOCS-1192 Configuring registry storage for Azure Government
This commit is contained in:
Brandi McElveen Munilla
2020-10-14 15:12:04 -04:00
committed by GitHub
2 changed files with 41 additions and 0 deletions

View File

@@ -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: <storage-account-name>
container: <container-name>
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.

View File

@@ -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]