Skip to content

Commit 7d53c85

Browse files
authored
Merge pull request #54117 from lamek/update-pull-secret-syntax
updating pull secret instructions
2 parents bcb85a3 + 6b7e908 commit 7d53c85

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

articles/openshift/create-private-cluster.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,22 @@ aro 1.0.0
6161
...
6262
```
6363

64-
### Obtain a Red Hat pull secret (optional)
64+
### Get a Red Hat pull secret (optional)
6565

6666
A Red Hat pull secret enables your cluster to access Red Hat container registries along with additional content. This step is optional but recommended.
6767

68-
Obtain your pull secret by navigating to https://cloud.redhat.com/openshift/install/azure/aro-provisioned and clicking *Download pull secret*.
68+
1. **[Go to your Red Hat OpenShift cluster manager portal](https://cloud.redhat.com/openshift/install/azure/aro-provisioned) and log in.**
6969

70-
You will need to log in to your Red Hat account or create a new Red Hat account with your business email and accept the terms and conditions.
70+
You will need to log in to your Red Hat account or create a new Red Hat account with your business email and accept the terms and conditions.
71+
72+
2. **Click Download pull secret.**
7173

7274
Keep the saved `pull-secret.txt` file somewhere safe - it will be used in each cluster creation.
7375

76+
When running the `az aro create` command, you can reference your pull secret using the `--pull-secret @pull-secret.txt` parameter. Execute `az aro create` from the directory where you stored your `pull-secret.txt` file. Otherwise, replace `@pull-secret.txt` with `@<path-to-my-pull-secret-file`.
77+
78+
If you are copying your pull secret or referencing it in other scripts, your pull secret should be formatted as a valid JSON string.
79+
7480
### Create a virtual network containing two empty subnets
7581

7682
Next, you will create a virtual network containing two empty subnets.
@@ -173,23 +179,23 @@ Next, you will create a virtual network containing two empty subnets.
173179
174180
## Create the cluster
175181
176-
Run the following command to create a cluster. Note the `apiserver-visibility` and the `ingress-visibility` parameters. Optionally, you can pass a pull secret which enables your cluster to access Red Hat container registries along with additional content. Access your pull secret by navigating to the [Red Hat OpenShift Cluster Manager](https://cloud.redhat.com/openshift/install/azure/installer-provisioned) and clicking Copy Pull Secret.
182+
Run the following command to create a cluster. Optionally, you can [pass your Red Hat pull secret](#obtain-a-red-hat-pull-secret-optional) which enables your cluster to access Red Hat container registries along with additional content.
183+
184+
>[!NOTE]
185+
> If you are copy/pasting commands and using one of the optional parameters, be sure delete the initial hashtags and the trailing comment text. As well, close the argument on the preceding line of the command with a trailing backslash.
177186
178187
```azurecli-interactive
179188
az aro create \
180189
--resource-group $RESOURCEGROUP \
181190
--name $CLUSTER \
182191
--vnet aro-vnet \
183192
--master-subnet master-subnet \
184-
--worker-subnet worker-subnet \
185-
--apiserver-visibility Private \
186-
--ingress-visibility Private
187-
# --domain aro.example.com # [OPTIONAL] custom domain
188-
# --pull-secret 'Pull secret from https://cloud.redhat.com/openshift/install/azure/installer-provisioned/' # [OPTIONAL]
193+
--worker-subnet worker-subnet
194+
# --domain foo.example.com # [OPTIONAL] custom domain
195+
# --pull-secret @pull-secret.txt # [OPTIONAL]
189196
```
190197

191-
>[!NOTE]
192-
> It normally takes about 35 minutes to create a cluster.
198+
After executing the `az aro create` command, it normally takes about 35 minutes to create a cluster.
193199

194200
>[!IMPORTANT]
195201
> If you choose to specify a custom domain, for example **foo.example.com**, the OpenShift console will be available at a URL such as `https://console-openshift-console.apps.foo.example.com`, instead of the built-in domain `https://console-openshift-console.apps.<random>.<location>.aroapp.io`.

articles/openshift/tutorial-create-cluster.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,18 @@ aro 1.0.0
6262

6363
A Red Hat pull secret enables your cluster to access Red Hat container registries along with additional content. This step is optional but recommended.
6464

65-
Obtain your pull secret by navigating to https://cloud.redhat.com/openshift/install/azure/aro-provisioned and clicking *Download pull secret*.
65+
1. **[Navigate to your Red Hat OpenShift cluster manager portal](https://cloud.redhat.com/openshift/install/azure/aro-provisioned) and log in.**
6666

67-
You will need to log in to your Red Hat account or create a new Red Hat account with your business email and accept the terms and conditions.
67+
You will need to log in to your Red Hat account or create a new Red Hat account with your business email and accept the terms and conditions.
68+
69+
2. **Click Download pull secret.**
6870

6971
Keep the saved `pull-secret.txt` file somewhere safe - it will be used in each cluster creation.
7072

73+
When running the `az aro create` command, you can reference your pull secret using the `--pull-secret @pull-secret.txt` parameter. Execute `az aro create` from the directory where you stored your `pull-secret.txt` file. Otherwise, replace `@pull-secret.txt` with `@<path-to-my-pull-secret-file>`.
74+
75+
If you are copying your pull secret or referencing it in other scripts, your pull secret should be formatted as a valid JSON string.
76+
7177
### Create a virtual network containing two empty subnets
7278

7379
Next, you will create a virtual network containing two empty subnets.
@@ -170,7 +176,10 @@ Next, you will create a virtual network containing two empty subnets.
170176
171177
## Create the cluster
172178
173-
Run the following command to create a cluster. Optionally, you can pass a pull secret which enables your cluster to access Red Hat container registries along with additional content. Access your pull secret by navigating to the [Red Hat OpenShift Cluster Manager](https://cloud.redhat.com/openshift/install/azure/installer-provisioned) and clicking **Copy Pull Secret**.
179+
Run the following command to create a cluster. Optionally, you can [pass your Red Hat pull secret](#obtain-a-red-hat-pull-secret-optional) which enables your cluster to access Red Hat container registries along with additional content.
180+
181+
>[!NOTE]
182+
> If you are copy/pasting commands and using one of the optional parameters, be sure delete the initial hashtags and the trailing comment text. As well, close the argument on the preceding line of the command with a trailing backslash.
174183
175184
```azurecli-interactive
176185
az aro create \
@@ -180,10 +189,10 @@ az aro create \
180189
--master-subnet master-subnet \
181190
--worker-subnet worker-subnet
182191
# --domain foo.example.com # [OPTIONAL] custom domain
183-
# --pull-secret '$(< pull-secret.txt)' # [OPTIONAL]
192+
# --pull-secret @pull-secret.txt # [OPTIONAL]
184193
```
185-
>[!NOTE]
186-
> It normally takes about 35 minutes to create a cluster.
194+
195+
After executing the `az aro create` command, it normally takes about 35 minutes to create a cluster.
187196

188197
>[!IMPORTANT]
189198
> If you choose to specify a custom domain, for example **foo.example.com**, the OpenShift console will be available at a URL such as `https://console-openshift-console.apps.foo.example.com`, instead of the built-in domain `https://console-openshift-console.apps.<random>.<location>.aroapp.io`.

0 commit comments

Comments
 (0)