From 21d8c308976d7af15a197e6d5321483e2e7a77a3 Mon Sep 17 00:00:00 2001 From: viniciusbds Date: Sat, 2 May 2020 08:50:20 -0300 Subject: [PATCH] How to update objects --- .../tasks/manage-kubernetes-objects/declarative-config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md b/content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md index 70b5af9df18..f82e54d364e 100644 --- a/content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md +++ b/content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md @@ -237,7 +237,7 @@ kubectl scale deployment/nginx-deployment --replicas=2 Print the live configuration using `kubectl get`: ```shell -kubectl get -f https://k8s.io/examples/application/simple_deployment.yaml -o yaml +kubectl get deployment nginx-deployment -o yaml ``` The output shows that the `replicas` field has been set to 2, and the `last-applied-configuration` @@ -296,7 +296,7 @@ kubectl apply -f https://k8s.io/examples/application/update_deployment.yaml Print the live configuration using `kubectl get`: ```shell -kubectl get -f https://k8s.io/examples/application/simple_deployment.yaml -o yaml +kubectl get -f https://k8s.io/examples/application/update_deployment.yaml -o yaml ``` The output shows the following changes to the live configuration: