From 501656585e1cde54788ebb933869474682486889 Mon Sep 17 00:00:00 2001 From: Xiaoyu Zhang Date: Thu, 13 Apr 2017 06:46:21 +0800 Subject: [PATCH] Fix broken links (#3351) Fix broken links --- .../stateful-application/basic-stateful-set.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/tutorials/stateful-application/basic-stateful-set.md b/docs/tutorials/stateful-application/basic-stateful-set.md index b9bbe20753..0c82b1970d 100644 --- a/docs/tutorials/stateful-application/basic-stateful-set.md +++ b/docs/tutorials/stateful-application/basic-stateful-set.md @@ -65,7 +65,7 @@ control the domain of the StatefulSet, `web`. Download the example above, and save it to a file named `web.yaml` You will need to use two terminal windows. In the first terminal, use -[`kubectl get`](/docs/user-guide/kubectl/kubectl_get/) to watch the creation +[`kubectl get`](/docs/user-guide/kubectl/v1.6/#get) to watch the creation of the StatefulSet's Pods. ```shell @@ -73,7 +73,7 @@ kubectl get pods -w -l app=nginx ``` In the second terminal, use -[`kubectl create`](/docs/user-guide/kubectl/kubectl_create/) to create the +[`kubectl create`](/docs/user-guide/kubectl/v1.6/#create) to create the Headless Service and StatefulSet defined in `web.yaml`. ```shell @@ -145,7 +145,7 @@ replicas, it creates two Pods, `web-0` and `web-1`. ### Using Stable Network Identities Each Pod has a stable hostname based on its ordinal index. Use -[`kubectl exec`](/docs/user-guide/kubectl/kubectl_exec/) to execute the +[`kubectl exec`](/docs/user-guide/kubectl/v1.6/#exec) to execute the `hostname` command in each Pod. ```shell @@ -154,7 +154,7 @@ web-0 web-1 ``` -Use [`kubectl run`](/docs/user-guide/kubectl/kubectl_run/) to execute +Use [`kubectl run`](/docs/user-guide/kubectl/v1.6/#run) to execute a container that provides the `nslookup` command from the `dnsutils` package. Using `nslookup` on the Pods' hostnames, you can examine their in-cluster DNS addresses. @@ -186,7 +186,7 @@ In one terminal, watch the StatefulSet's Pods. kubectl get pod -w -l app=nginx ``` In a second terminal, use -[`kubectl delete`](/docs/user-guide/kubectl/kubectl_delete/) to delete all +[`kubectl delete`](/docs/user-guide/kubectl/v1.6/#delete) to delete all the Pods in the StatefulSet. ```shell @@ -339,8 +339,8 @@ appropriate mount points. ## Scaling a StatefulSet Scaling a StatefulSet refers to increasing or decreasing the number of replicas. This is accomplished by updating the `replicas` field. You can use either -[`kubectl scale`](/docs/user-guide/kubectl/kubectl_scale/) or -[`kubectl patch`](/docs/user-guide/kubectl/kubectl_patch/) to scale a Stateful +[`kubectl scale`](/docs/user-guide/kubectl/v1.6/#scale) or +[`kubectl patch`](/docs/user-guide/kubectl/v1.6/#patch) to scale a Stateful Set. ### Scaling Up @@ -555,7 +555,7 @@ In one terminal window, watch the Pods in the StatefulSet. kubectl get pods -w -l app=nginx ``` -Use [`kubectl delete`](/docs/user-guide/kubectl/kubectl_delete/) to delete the +Use [`kubectl delete`](/docs/user-guide/kubectl/v1.6/#delete) to delete the StatefulSet. Make sure to supply the `--cascade=false` parameter to the command. This parameter tells Kubernetes to only delete the StatefulSet, and to not delete any of its Pods.