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

Remove outdated rollback step from CRUD deployment example

Kubernetes-commit: a9f40b50f04b55c3e9f3d92ea05b3e36a80b3992
This commit is contained in:
Kubernetes Publisher 2019-01-03 17:36:09 -08:00
commit 7ab9b6348c
2 changed files with 53 additions and 63 deletions

102
Godeps/Godeps.json generated
View File

@ -408,207 +408,207 @@
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "9c4c366543346abeca2a5cd2c40cf1a30d19a2ec"
"Rev": "0cd393178e09f379032a493f73993dc600e1959d"
},
{
"ImportPath": "k8s.io/klog",

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
handles conflicts. Verify the new replica count and container image with
`kubectl describe deployment demo`.
3. **Rollback Deployment:** This will rollback the Deployment to the last
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`
3. **List Deployments:** This will retrieve Deployments in the `default`
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`.
Each step is separated by an interactive prompt. You must hit the
@ -63,10 +57,6 @@ Updating deployment...
Updated deployment...
-> Press Return key to continue.
Rolling back deployment...
Rolled back deployment...
-> Press Return key to continue.
Listing deployments in namespace "default":
* demo-deployment (1 replicas)
-> Press Return key to continue.