From 16e303090cdedaa6030c71e27f5f51fbf2f06e70 Mon Sep 17 00:00:00 2001 From: Steve Perry Date: Fri, 29 Sep 2017 14:37:24 -0700 Subject: [PATCH] Replace v1.6 with {{page.version}}. (#5692) --- docs/getting-started-guides/minikube.md | 2 +- .../independent/create-cluster-kubeadm.md | 20 +++++++++---------- .../http-proxy-access-api.md | 2 +- .../pull-image-private-registry.md | 2 +- ...arative-object-management-configuration.md | 2 +- .../imperative-object-management-command.md | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/getting-started-guides/minikube.md b/docs/getting-started-guides/minikube.md index c5f02e13bba6a..107372d4f92ec 100644 --- a/docs/getting-started-guides/minikube.md +++ b/docs/getting-started-guides/minikube.md @@ -201,7 +201,7 @@ This command shuts down and deletes the minikube virtual machine. No data or sta ### Kubectl -The `minikube start` command creates a "[kubectl context](/docs/user-guide/kubectl/v1.6/#-em-set-context-em-)" called "minikube". +The `minikube start` command creates a "[kubectl context](/docs/user-guide/kubectl/{{page.version}}/#-em-set-context-em-)" called "minikube". This context contains the configuration to communicate with your minikube cluster. Minikube sets this context to default automatically, but if you need to switch back to it in the future, run: diff --git a/docs/setup/independent/create-cluster-kubeadm.md b/docs/setup/independent/create-cluster-kubeadm.md index 737296fb6e3ef..567adf1948867 100644 --- a/docs/setup/independent/create-cluster-kubeadm.md +++ b/docs/setup/independent/create-cluster-kubeadm.md @@ -286,7 +286,7 @@ kubectl apply -f https://raw.githubusercontent.com/romana/romana/master/containe The official Weave Net set-up guide is [here](https://www.weave.works/docs/net/latest/kube-addon/). -**Note:** Weave Net works on `amd64`, `arm` and `arm64` without any extra action required. +**Note:** Weave Net works on `amd64`, `arm` and `arm64` without any extra action required. Weave Net sets hairpin mode by default. This allows Pods to access themselves via their Service IP address if they don't know their PodIP. @@ -442,7 +442,7 @@ master. ## Tear down To undo what kubeadm did, you should first [drain the -node](/docs/user-guide/kubectl/v1.6/#drain) and make +node](/docs/user-guide/kubectl/{{page.version}}/#drain) and make sure that the node is empty before shutting it down. Talking to the master with the appropriate credentials, run: @@ -560,11 +560,11 @@ You may have trouble in the configuration if you see Pod statuses like `RunConta If not, you may still use the [NodePort feature of services](/docs/concepts/services-networking/service/#type-nodeport) or use `HostNetwork=true`. - + 1. **Pods cannot access themselves via their Service IP**. - Many network add-ons do not yet enable [hairpin mode](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/#a-pod-cannot-reach-itself-via-service-ip) + Many network add-ons do not yet enable [hairpin mode](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service/#a-pod-cannot-reach-itself-via-service-ip) which allows pods to access themselves via their Service IP if they don't know about their podIP. This is an issue - related to [CNI](https://github.com/containernetworking/cni/issues/476). Please contact the providers of the network + related to [CNI](https://github.com/containernetworking/cni/issues/476). Please contact the providers of the network add-on providers to get timely information about whether they support hairpin mode. 1. If you are using VirtualBox (directly or via Vagrant), you will need to @@ -577,8 +577,8 @@ You may have trouble in the configuration if you see Pod statuses like `RunConta 1. The following error indicates a possible certificate mismatch. ``` -# kubectl get po -Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") +# kubectl get po +Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") ``` Verify that the `$HOME/.kube/config` file contains a valid certificate, and regenerate a certificate if necessary. @@ -601,13 +601,13 @@ cat /etc/systemd/system/kubelet.service.d/10-kubeadm.conf If the Docker cgroup driver and the kubelet config don't match, change the kubelet config to match the Docker cgroup driver. -Update +Update ```bash -KUBELET_CGROUP_ARGS=--cgroup-driver=systemd +KUBELET_CGROUP_ARGS=--cgroup-driver=systemd ``` -To +To ```bash KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs diff --git a/docs/tasks/access-kubernetes-api/http-proxy-access-api.md b/docs/tasks/access-kubernetes-api/http-proxy-access-api.md index e1dc1f94e3665..d8167de075577 100644 --- a/docs/tasks/access-kubernetes-api/http-proxy-access-api.md +++ b/docs/tasks/access-kubernetes-api/http-proxy-access-api.md @@ -78,7 +78,7 @@ Get a list of pods: {% endcapture %} {% capture whatsnext %} -Learn more about [kubectl proxy](/docs/user-guide/kubectl/v1.6/#proxy). +Learn more about [kubectl proxy](/docs/user-guide/kubectl/{{page.version}}/#proxy). {% endcapture %} {% include templates/task.md %} diff --git a/docs/tasks/configure-pod-container/pull-image-private-registry.md b/docs/tasks/configure-pod-container/pull-image-private-registry.md index 609036d4225dd..7c3f6db3a857e 100644 --- a/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -127,7 +127,7 @@ Create a Pod that uses your Secret, and verify that the Pod is running: * Learn more about [Secrets](/docs/concepts/configuration/secret/). * Learn more about [using a private registry](/docs/concepts/containers/images/#using-a-private-registry). -* See [kubectl create secret docker-registry](/docs/user-guide/kubectl/v1.6/#-em-secret-docker-registry-em-). +* See [kubectl create secret docker-registry](/docs/user-guide/kubectl/{{page.version}}/#-em-secret-docker-registry-em-). * See [Secret](/docs/api-reference/{{page.version}}/#secret-v1-core) * See the `imagePullSecrets` field of [PodSpec](/docs/api-reference/{{page.version}}/#podspec-v1-core). 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 4e3f4788c97df..9d6ba10ee566b 100644 --- a/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md +++ b/docs/tutorials/object-management-kubectl/declarative-object-management-configuration.md @@ -948,7 +948,7 @@ template: {% capture whatsnext %} - [Managing Kubernetes Objects Using Imperative Commands](/docs/tutorials/object-management-kubectl/imperative-object-management-command/) - [Imperative Management of Kubernetes Objects Using Configuration Files](/docs/tutorials/object-management-kubectl/imperative-object-management-configuration/) -- [Kubectl Command Reference](/docs/user-guide/kubectl/v1.6/) +- [Kubectl Command Reference](/docs/user-guide/kubectl/{{page.version}}/) - [Kubernetes Object Schema Reference](/docs/resources-reference/{{page.version}}/) {% endcapture %} diff --git a/docs/tutorials/object-management-kubectl/imperative-object-management-command.md b/docs/tutorials/object-management-kubectl/imperative-object-management-command.md index bbb85d9042755..093b4f2736727 100644 --- a/docs/tutorials/object-management-kubectl/imperative-object-management-command.md +++ b/docs/tutorials/object-management-kubectl/imperative-object-management-command.md @@ -152,7 +152,7 @@ kubectl create --edit -f /tmp/srv.yaml {% capture whatsnext %} - [Managing Kubernetes Objects Using Object Configuration (Imperative)](/docs/tutorials/object-management-kubectl/imperative-object-management-configuration/) - [Managing Kubernetes Objects Using Object Configuration (Declarative)](/docs/tutorials/object-management-kubectl/declarative-object-management-configuration/) -- [Kubectl Command Reference](/docs/user-guide/kubectl/v1.6/) +- [Kubectl Command Reference](/docs/user-guide/kubectl/{{page.version}}/) - [Kubernetes Object Schema Reference](/docs/resources-reference/{{page.version}}/) {% endcapture %}