From 889ea782c60993477c78d8f5a4cfdec2d482f67e Mon Sep 17 00:00:00 2001 From: nerdondon Date: Sun, 9 Apr 2017 15:34:49 -0700 Subject: [PATCH] Update links to supporting yaml files and a link to imperative management Fixes #3266 --- ...arative-object-management-configuration.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md b/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md index 4c06edd110..fea82ccdcb 100644 --- a/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md +++ b/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md @@ -64,18 +64,18 @@ configuration file that was used to create the object. Here's an example of an object configuration file: -{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/concepts/tools/simple_deployment.yaml" %} +{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/tutorials/object-management-kubectl/simple_deployment.yaml" %} Create the object using `kubectl apply`: ```shell -kubectl apply -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml +kubectl apply -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml ``` Print the live configuration using `kubectl get`: ```shell -kubectl get -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml -o yaml +kubectl get -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml -o yaml ``` The output shows that the `kubectl.kubernetes.io/last-applied-configuration` annotation @@ -132,12 +132,12 @@ kubectl apply -f / Here's an example configuration file: -{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/concepts/tools/simple_deployment.yaml" %} +{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/tutorials/object-management-kubectl/simple_deployment.yaml" %} Create the object using `kubectl apply`: ```shell -kubectl apply -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml +kubectl apply -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml ``` **Note:** For purposes of illustration, the preceding command refers to a single @@ -146,7 +146,7 @@ configuration file instead of a directory. Print the live configuration using `kubectl get`: ```shell -kubectl get -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml -o yaml +kubectl get -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml -o yaml ``` The output shows that the `kubectl.kubernetes.io/last-applied-configuration` annotation @@ -197,7 +197,7 @@ kubectl scale deployment/nginx-deployment --replicas 2 Print the live configuration using `kubectl get`: ```shell -kubectl get -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml -o yaml +kubectl get -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml -o yaml ``` The output shows that the `replicas` field has been set to 2, and the `last-applied-configuration` @@ -240,18 +240,18 @@ spec: Update the `simple_deployment.yaml` configuration file to change the image from `nginx:1.7.9` to `nginx:1.11.9`, and delete the `minReadySeconds` field: -{% include code.html language="yaml" file="update_deployment.yaml" ghlink="/docs/concepts/tools/update_deployment.yaml" %} +{% include code.html language="yaml" file="update_deployment.yaml" ghlink="/docs/tutorials/object-management-kubectl/update_deployment.yaml" %} Apply the changes made to the configuration file: ```shell -kubectl apply -f http://k8s.io/docs/concepts/tools/kubectl/update_deployment.yaml +kubectl apply -f http://k8s.io/docs/tutorials/object-management-kubectl/update_deployment.yaml ``` Print the live configuration using `kubectl get`: ``` -kubectl get -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml -o yaml +kubectl get -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml -o yaml ``` The output shows the following changes to the live configuration: @@ -390,7 +390,7 @@ to calculate which fields should be deleted or set: Here's an example. Suppose this is the configuration file for a Deployment object: -{% include code.html language="yaml" file="update_deployment.yaml" ghlink="/docs/concepts/tools/update_deployment.yaml" %} +{% include code.html language="yaml" file="update_deployment.yaml" ghlink="/docs/tutorials/object-management-kubectl/update_deployment.yaml" %} Also, suppose this is the live configuration for the same Deployment object: @@ -675,18 +675,18 @@ not specified when the object is created. Here's a configuration file for a Deployment. The file does not specify `strategy` or `selector`: -{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/concepts/tools/simple_deployment.yaml" %} +{% include code.html language="yaml" file="simple_deployment.yaml" ghlink="/docs/tutorials/object-management-kubectl/simple_deployment.yaml" %} Create the object using `kubectl apply`: ```shell -kubectl apply -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml +kubectl apply -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml ``` Print the live configuration using `kubectl get`: ```shell -kubectl get -f http://k8s.io/docs/concepts/tools/kubectl/simple_deployment.yaml -o yaml +kubectl get -f http://k8s.io/docs/tutorials/object-management-kubectl/simple_deployment.yaml -o yaml ``` The output shows that the API server set several fields to default values in the live @@ -948,7 +948,7 @@ template: ## Support for ThirdPartyResources As of Kubernetes 1.5, ThirdPartyResources are not supported by `kubectl apply`. -The recommended approach for ThirdPartyResources is to use [imperative object configuration](/docs/concepts/tools/kubectl/object-management-using-imperative-config/). +The recommended approach for ThirdPartyResources is to use [imperative object configuration](/docs/tutorials/object-management-kubectl/imperative-object-management-configuration/). {% endcapture %} {% capture whatsnext %}