Skip to content

Commit d1fb937

Browse files
committed
Fix typos and HTML errors in rolling-deploy; fix RESTRICTED state description in stacks [ai-assisted]
Made-with: Cursor
1 parent 6b2bb02 commit d1fb937

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

deploy-apps/rolling-deploy.html.md.erb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Or for canary deployments:
3131
Cloud Foundry provides two different strategies for deployments:
3232

3333
* A **Rolling** deployment brings up one or more web processes for the new app version, with the number set by `max-in-flight`, which defaults to 1. After those instances report as healthy and routable, it brings down the same number of instances of the old version. The deployment repeats this process to replace all web process instances, and then updates all old non-web processes.
34-
* A **Canary** deployment brings up one or more web processes for the new app version, defaulting to one. It then pauses to let app operators or developers evaluate the health of a new version instances. App operators can then choose to either `cancel` or `continue` the deployment. When the deployment is continued, the canary deployment proceeds in the same way as a rolling deployment.
34+
* A **Canary** deployment brings up one or more web processes for the new app version, defaulting to one. It then pauses to let app operators or developers evaluate the health of new version instances. App operators can then choose to either `cancel` or `continue` the deployment. When the deployment is continued, the canary deployment proceeds in the same way as a rolling deployment.
3535
* To gradually increase instance counts and check app health in multiple steps, the latest cf CLI v8 supports an `--instance-steps` option that sets a series of increasing instance counts.
3636

3737
Each rolling or canary deployment increments the `revision` count for the new app deployment, as listed by the `cf revisions` command described in [App Revisions Overview](../revisions.html).
@@ -78,12 +78,12 @@ background, updating deployments as follows:
7878
* If you run `cf app` on your app at this point, you see multiple `web` processes.
7979
2. Sets the deployment to `PAUSED`.
8080

81-
1. After validating that the canary instance is running as expected, execute the command `cf continue-deployment APP-NAME`:
81+
3. After validating that the canary instance is running as expected, execute the command `cf continue-deployment APP-NAME`:
8282
* Changes the deployment reason to `DEPLOYING` and resumes following the same process as a rolling deployment.
8383

84-
2. After the command changes the status of the deployment, the `cc_deployment_updater` BOSH job runs in the
84+
4. After the command changes the status of the deployment, the `cc_deployment_updater` BOSH job runs in the
8585
background, updating deployments as follows:
86-
1. Adds MaxInFlight number of instances (**by default it is 1**) of the new web process and removes MaxInFlight number of instance from the old web process. This step repeats until the new web process reaches the required number of instances.
86+
1. Adds MaxInFlight number of instances (**by default it is 1**) of the new web process and removes MaxInFlight number of instances from the old web process. This step repeats until the new web process reaches the required number of instances.
8787
<p class="note important">
8888
This happens only if all instances of the new web process are running.</p>
8989
2. Removes the old web process. The new web process now fully replaces the old web process.
@@ -406,7 +406,7 @@ droplet GUID from the output.
406406
-H "Content-type: application/json" \
407407
-d '{
408408
"package": {
409-
"guid": PACKAGE-GUID"
409+
"guid": "PACKAGE-GUID"
410410
}
411411
}'
412412
```
@@ -464,7 +464,7 @@ To stop the deployment of an app that you pushed:
464464
* **For CAPI V3, run:**
465465

466466
```
467-
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/cancel" -X POST
467+
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/cancel -X POST
468468
```
469469

470470
Where `DEPLOYMENT-GUID` is the GUID of the deployment that you recorded after following the
@@ -496,7 +496,7 @@ To finish a canary deployment after the deployment has paused and the canary ins
496496
* **For CAPI V3, run:**
497497

498498
```
499-
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/continue" -X POST
499+
cf curl /v3/deployments/DEPLOYMENT-GUID/actions/continue -X POST
500500
```
501501
Where `DEPLOYMENT-GUID` is the GUID of the deployment that you recorded after following the
502502
CAPI procedure in [Deploy an app](#deploy).
@@ -530,7 +530,7 @@ To restart your app without downtime, run the appropriate command as shown here.
530530
Where:
531531
<ul>
532532
<li><code>APP-NAME</code> is the name of the app.</li>
533-
<li><code>MAX_IN_FLIGHT</code> specifies the maximum number of new instances to restart simultaneous until the deployment is complete. Optional and defaults to 1.</li>
533+
<li><code>MAX_IN_FLIGHT</code> specifies the maximum number of new instances to restart simultaneously until the deployment is complete. Optional and defaults to 1.</li>
534534
<li><code>STRATEGY</code> is the strategy you would like to use for the deployment. Valid strategies are <code>rolling</code> and <code>canary</code>.</li>
535535
</ul>
536536

@@ -561,7 +561,7 @@ To restart your app without downtime, run the appropriate command as shown here.
561561
Where:
562562
<ul>
563563
<li><code>DROPLET-GUID</code> and <code>APP-GUID</code> are the GUIDs that you recorded in earlier steps.</li>
564-
<li><code>MAX_IN_FLIGH</code> is an integer that specifies the maximum number of new instances to start up simultaneous until the deployment is complete. Optional and defaults to 1.</li>
564+
<li><code>MAX_IN_FLIGHT</code> is an integer that specifies the maximum number of new instances to start up simultaneously until the deployment is complete. Optional and defaults to 1.</li>
565565
<li><code>STRATEGY</code> is the strategy you would like to use for the deployment. Valid strategies are <code>rolling</code> and <code>canary</code>.</li>
566566
</ul>
567567

deploy-apps/stacks.html.md.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Operators can assign a lifecycle state to each stack. The state affects what ope
3939
|--------------|------------------------------|
4040
| `ACTIVE` | The stack is fully available. You can push new apps and restage existing apps. |
4141
| `DEPRECATED` | The stack is still usable, but a warning is shown during `cf push` and `cf restage`. Plan to migrate your apps soon. |
42-
| `RESTRICTED` | You cannot push new apps using this stack. Existing apps can still be restarted and scaled. |
42+
| `RESTRICTED` | You cannot push new apps using this stack. Existing apps can still be restaged, restarted, and scaled. |
4343
| `DISABLED` | You cannot stage or restage any app using this stack. Existing apps continue to run and can be restarted and scaled. |
4444

4545
When a stack has a state other than `ACTIVE`, operators typically provide a **reason** message with migration guidance. This reason is shown in `cf stacks`, `cf stack STACK_NAME`, and in any warning or error messages during `cf push` or `cf restage`.

0 commit comments

Comments
 (0)