Update links to supporting yaml files and a link to imperative management

Fixes #3266
This commit is contained in:
nerdondon
2017-04-09 15:34:49 -07:00
committed by Andrew Chen
parent e96d972bba
commit 889ea782c6
@@ -64,18 +64,18 @@ configuration file that was used to create the object.
Here's an example of an object configuration file: 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`: Create the object using `kubectl apply`:
```shell ```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`: Print the live configuration using `kubectl get`:
```shell ```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 The output shows that the `kubectl.kubernetes.io/last-applied-configuration` annotation
@@ -132,12 +132,12 @@ kubectl apply -f <directory>/
Here's an example configuration file: 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`: Create the object using `kubectl apply`:
```shell ```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 **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`: Print the live configuration using `kubectl get`:
```shell ```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 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`: Print the live configuration using `kubectl get`:
```shell ```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` 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 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: `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: Apply the changes made to the configuration file:
```shell ```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`: 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: 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: 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: 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`: 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`: Create the object using `kubectl apply`:
```shell ```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`: Print the live configuration using `kubectl get`:
```shell ```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 The output shows that the API server set several fields to default values in the live
@@ -948,7 +948,7 @@ template:
## Support for ThirdPartyResources ## Support for ThirdPartyResources
As of Kubernetes 1.5, ThirdPartyResources are not supported by `kubectl apply`. 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 %} {% endcapture %}
{% capture whatsnext %} {% capture whatsnext %}