Replace v1.7 with {{page.version}}. (#5688)
This commit is contained in:
@@ -121,7 +121,7 @@ The data field is a map. Its keys must match
|
|||||||
[`DNS_SUBDOMAIN`](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md), except that leading dots are also
|
[`DNS_SUBDOMAIN`](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md), except that leading dots are also
|
||||||
allowed. The values are arbitrary data, encoded using base64.
|
allowed. The values are arbitrary data, encoded using base64.
|
||||||
|
|
||||||
Create the secret using [`kubectl create`](/docs/user-guide/kubectl/v1.7/#create):
|
Create the secret using [`kubectl create`](/docs/user-guide/kubectl/{{page.version}}/#create):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl create -f ./secret.yaml
|
$ kubectl create -f ./secret.yaml
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ onto nodes with matching taints.
|
|||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
|
|
||||||
You add a taint to a node using [kubectl taint](/docs/user-guide/kubectl/v1.7/#taint).
|
You add a taint to a node using [kubectl taint](/docs/user-guide/kubectl/{{page.version}}/#taint).
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Here's an example `.yaml` file that shows the required fields and object spec fo
|
|||||||
|
|
||||||
{% include code.html language="yaml" file="nginx-deployment.yaml" ghlink="/docs/concepts/overview/working-with-objects/nginx-deployment.yaml" %}
|
{% include code.html language="yaml" file="nginx-deployment.yaml" ghlink="/docs/concepts/overview/working-with-objects/nginx-deployment.yaml" %}
|
||||||
|
|
||||||
One way to create a Deployment using a `.yaml` file like the one above is to use the [`kubectl create`](/docs/user-guide/kubectl/v1.7/#create) command in the `kubectl` command-line interface, passing the `.yaml` file as an argument. Here's an example:
|
One way to create a Deployment using a `.yaml` file like the one above is to use the [`kubectl create`](/docs/user-guide/kubectl/{{page.version}}/#create) command in the `kubectl` command-line interface, passing the `.yaml` file as an argument. Here's an example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl create -f docs/user-guide/nginx-deployment.yaml --record
|
$ kubectl create -f docs/user-guide/nginx-deployment.yaml --record
|
||||||
|
|||||||
@@ -250,11 +250,11 @@ In this exercise, you `kubectl patch` to change the live configuration
|
|||||||
of a Deployment object. You did not change the configuration file that you originally used to
|
of a Deployment object. You did not change the configuration file that you originally used to
|
||||||
create the Deployment object. Other commands for updating API objects include
|
create the Deployment object. Other commands for updating API objects include
|
||||||
[kubectl annotate](/docs/user-guide/kubectl/{{page.version}}/#annotate),
|
[kubectl annotate](/docs/user-guide/kubectl/{{page.version}}/#annotate),
|
||||||
[kubectl edit](/docs/user-guide/kubectl/v1.7/#edit),
|
[kubectl edit](/docs/user-guide/kubectl/{{page.version}}/#edit),
|
||||||
[kubectl replace](/docs/user-guide/kubectl/v1.7/#replace),
|
[kubectl replace](/docs/user-guide/kubectl/{{page.version}}/#replace),
|
||||||
[kubectl scale](/docs/user-guide/kubectl/v1.7/#scale),
|
[kubectl scale](/docs/user-guide/kubectl/{{page.version}}/#scale),
|
||||||
[kubectl update](/docs/user-guide/kubectl/v1.7/#update). and
|
[kubectl update](/docs/user-guide/kubectl/{{page.version}}/#update). and
|
||||||
[kubectl apply](/docs/user-guide/kubectl/v1.7/#apply).
|
[kubectl apply](/docs/user-guide/kubectl/{{page.version}}/#apply).
|
||||||
|
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user