Merge pull request #72494 from johanneswuerbach/rm-rollback-example

Remove outdated rollback step from CRUD deployment example
This commit is contained in:
Kubernetes Prow Robot 2019-01-03 17:36:09 -08:00 committed by GitHub
commit a9f40b50f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,15 +36,9 @@ Running this command will execute the following operations on your cluster:
image to `nginx:1.13`. You are encouraged to inspect the retry loop that image to `nginx:1.13`. You are encouraged to inspect the retry loop that
handles conflicts. Verify the new replica count and container image with handles conflicts. Verify the new replica count and container image with
`kubectl describe deployment demo`. `kubectl describe deployment demo`.
3. **Rollback Deployment:** This will rollback the Deployment to the last 3. **List Deployments:** This will retrieve Deployments in the `default`
revision. In this case, it's the revision that was created in Step 1.
Use `kubectl describe` to verify the container image is now `nginx:1.12`.
Also note that the Deployment's replica count is still 1; this is because a
Deployment revision is created if and only if the Deployment's pod template
(`.spec.template`) is changed.
4. **List Deployments:** This will retrieve Deployments in the `default`
namespace and print their names and replica counts. namespace and print their names and replica counts.
5. **Delete Deployment:** This will delete the Deployment object and its 4. **Delete Deployment:** This will delete the Deployment object and its
dependent ReplicaSet resource. Verify with `kubectl get deployments`. dependent ReplicaSet resource. Verify with `kubectl get deployments`.
Each step is separated by an interactive prompt. You must hit the Each step is separated by an interactive prompt. You must hit the
@ -63,10 +57,6 @@ Updating deployment...
Updated deployment... Updated deployment...
-> Press Return key to continue. -> Press Return key to continue.
Rolling back deployment...
Rolled back deployment...
-> Press Return key to continue.
Listing deployments in namespace "default": Listing deployments in namespace "default":
* demo-deployment (1 replicas) * demo-deployment (1 replicas)
-> Press Return key to continue. -> Press Return key to continue.