You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename CLUSTER env var to CLUSTER_NAME for consistency
CLUSTER_NAME is more descriptive than the bare CLUSTER. This renames
the environment variable everywhere: Go code, Makefile, shell scripts,
CI pipeline, docker-compose, and documentation.
Copy file name to clipboardExpand all lines: docs/adding-new-instance-types.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ The desired instance types should be free of any restrictions. The subscription
42
42
3) Follow steps in https://docs.microsoft.com/en-us/azure/openshift/tutorial-create-cluster to create a cluster, specifying `-worker-vm-size` and/or `--master-vm-size` in the `az aro create` step to specify an alternate sku:
43
43
44
44
~~~
45
-
az aro create --resource-group $RESOURCEGROUP --name $CLUSTER --vnet aro-lseries --master-subnet master-subnet --worker-subnet worker-subnet --worker-vm-size "Standard_L8s_v2"
45
+
az aro create --resource-group $RESOURCEGROUP --name $CLUSTER_NAME --vnet aro-lseries --master-subnet master-subnet --worker-subnet worker-subnet --worker-vm-size "Standard_L8s_v2"
46
46
~~~
47
47
48
48
4) Once an install with an alternate size is successful, a basic check of cluster health can be conducted, as well as local e2e tests to confirm supportability.
Copy file name to clipboardExpand all lines: docs/deploy-development-rp.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,13 +203,13 @@ mock a cluster MSI. This script will also create the platform identities, platfo
203
203
204
204
```bash
205
205
# Create the cluster
206
-
CLUSTER=<cluster-name> go run ./hack/cluster create
206
+
CLUSTER_NAME=<cluster-name> go run ./hack/cluster create
207
207
```
208
208
209
209
Later the cluster can be deleted as follows:
210
210
211
211
```bash
212
-
CLUSTER=<cluster-name> go run ./hack/cluster delete
212
+
CLUSTER_NAME=<cluster-name> go run ./hack/cluster delete
213
213
```
214
214
215
215
By default, a public cluster will be created. In order to create a private cluster, set the `PRIVATE_CLUSTER` environment variable to `true` prior to creation. Internet access from the cluster can also be restricted by setting the `NO_INTERNET` environment variable to `true`.
@@ -365,7 +365,7 @@ After that, when you [create](https://github.com/Azure/ARO-RP/blob/master/docs/d
365
365
## Make Admin-Action API call(s) to a running local-rp
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/resources"
445
+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/resources"
446
446
```
447
447
448
448
- Perform Cluster Upgrade on a dev cluster
449
449
450
450
```bash
451
-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/upgrade"
451
+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/upgrade"
452
452
```
453
453
454
454
- Get container logs from an OpenShift pod in a cluster
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/kubernetespodlogs?podname=$POD&namespace=$NAMESPACE&container=$CONTAINER"
460
+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/kubernetespodlogs?podname=$POD&namespace=$NAMESPACE&container=$CONTAINER"
MANAGED_RESOURCEID=<id of managed resource to delete>
479
-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/deletemanagedresource?managedResourceID=$MANAGED_RESOURCEID"
479
+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/deletemanagedresource?managedResourceID=$MANAGED_RESOURCEID"
0 commit comments