From b80fe6004243fb64f22ded4e1d01674c855ca893 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Wed, 15 Jul 2015 10:42:59 -0700 Subject: [PATCH] point kubectl -f examples to correct paths --- docs/design/admission_control_limit_range.md | 2 +- docs/design/admission_control_resource_quota.md | 2 +- docs/getting-started-guides/locally.md | 2 +- docs/user-guide/downward-api/README.md | 2 +- docs/user-guide/getting-into-containers.md | 2 +- docs/user-guide/managing-deployments.md | 2 +- docs/user-guide/persistent-volumes/README.md | 10 ++++------ docs/user-guide/secrets/README.md | 4 ++-- docs/user-guide/update-demo/README.md | 4 ++-- 9 files changed, 14 insertions(+), 16 deletions(-) diff --git a/docs/design/admission_control_limit_range.md b/docs/design/admission_control_limit_range.md index 125c6d06ed..2420a274a0 100644 --- a/docs/design/admission_control_limit_range.md +++ b/docs/design/admission_control_limit_range.md @@ -131,7 +131,7 @@ For example, ```shell $ kubectl namespace myspace -$ kubectl create -f examples/limitrange/limit-range.json +$ kubectl create -f docs/user-guide/limitrange/limits.yaml $ kubectl get limits NAME limits diff --git a/docs/design/admission_control_resource_quota.md b/docs/design/admission_control_resource_quota.md index d80f38bf6e..7a323689aa 100644 --- a/docs/design/admission_control_resource_quota.md +++ b/docs/design/admission_control_resource_quota.md @@ -158,7 +158,7 @@ For example, ``` $ kubectl namespace myspace -$ kubectl create -f examples/resourcequota/resource-quota.json +$ kubectl create -f docs/user-guide/resourcequota/quota.yaml $ kubectl get quota NAME quota diff --git a/docs/getting-started-guides/locally.md b/docs/getting-started-guides/locally.md index f859bf21d9..608f910fce 100644 --- a/docs/getting-started-guides/locally.md +++ b/docs/getting-started-guides/locally.md @@ -114,7 +114,7 @@ However you cannot view the nginx start page on localhost. To verify that nginx You can control the specifications of a pod via a user defined manifest, and reach nginx through your browser on the port specified therein: ``` -cluster/kubectl.sh create -f examples/pod.yaml +cluster/kubectl.sh create -f docs/user-guide/pod.yaml ``` Congratulations! diff --git a/docs/user-guide/downward-api/README.md b/docs/user-guide/downward-api/README.md index 49a140b67f..e3b849caed 100644 --- a/docs/user-guide/downward-api/README.md +++ b/docs/user-guide/downward-api/README.md @@ -40,7 +40,7 @@ Use the [`examples/downward-api/dapi-pod.yaml`](dapi-pod.yaml) file to create a downward API. ```shell -$ kubectl create -f examples/downward-api/dapi-pod.yaml +$ kubectl create -f docs/user-guide/downward-api/dapi-pod.yaml ``` ### Examine the logs diff --git a/docs/user-guide/getting-into-containers.md b/docs/user-guide/getting-into-containers.md index eaf7c96393..bb6a39a786 100644 --- a/docs/user-guide/getting-into-containers.md +++ b/docs/user-guide/getting-into-containers.md @@ -53,7 +53,7 @@ We can use these environment variables in applications to find the service. It is convenient to use `kubectl exec` to check if the volumes are mounted as expected. We first create a Pod with a volume mounted at /data/redis, ``` -kubectl create -f examples/walkthrough/pod2.yaml +kubectl create -f docs/user-guide/walkthrough/pod2.yaml ``` wait until the pod is Running and Ready, ``` diff --git a/docs/user-guide/managing-deployments.md b/docs/user-guide/managing-deployments.md index ada53195a2..bd21542453 100644 --- a/docs/user-guide/managing-deployments.md +++ b/docs/user-guide/managing-deployments.md @@ -100,7 +100,7 @@ It is a recommended practice to put resources related to the same microservice o A URL can also be specified as a configuration source, which is handy for deploying directly from configuration files checked into github: ```bash -$ kubectl create -f https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/examples/replication.yaml +$ kubectl create -f https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/docs/user-guide/replication.yaml replicationcontrollers/nginx ``` ## Bulk operations in kubectl diff --git a/docs/user-guide/persistent-volumes/README.md b/docs/user-guide/persistent-volumes/README.md index 93d5ae6711..7342d48b98 100644 --- a/docs/user-guide/persistent-volumes/README.md +++ b/docs/user-guide/persistent-volumes/README.md @@ -50,7 +50,7 @@ $ echo 'I love Kubernetes storage!' > /tmp/data01/index.html PVs are created by posting them to the API server. ``` -$ kubectl create -f examples/persistent-volumes/volumes/local-01.yaml +$ kubectl create -f docs/user-guide/persistent-volumes/volumes/local-01.yaml NAME LABELS CAPACITY ACCESSMODES STATUS CLAIM REASON pv0001 type=local 10737418240 RWO Available ``` @@ -64,7 +64,7 @@ Claims must be created in the same namespace as the pods that use them. ``` -$ kubectl create -f examples/persistent-volumes/claims/claim-01.yaml +$ kubectl create -f docs/user-guide/persistent-volumes/claims/claim-01.yaml $ kubectl get pvc NAME LABELS STATUS VOLUME @@ -88,19 +88,17 @@ pv0001 type=local 10737418240 RWO Bound default/myclaim-1 Claims are used as volumes in pods. Kubernetes uses the claim to look up its bound PV. The PV is then exposed to the pod. ``` -$ kubectl create -f examples/persistent-volumes/simpletest/pod.yaml +$ kubectl create -f docs/user-guide/persistent-volumes/simpletest/pod.yaml $ kubectl get pods NAME READY STATUS RESTARTS AGE mypod 1/1 Running 0 1h -$ kubectl create -f examples/persistent-volumes/simpletest/service.json +$ kubectl create -f docs/user-guide/persistent-volumes/simpletest/service.json $ kubectl get services NAME LABELS SELECTOR IP(S) PORT(S) frontendservice name=frontendhttp 10.0.0.241 3000/TCP kubernetes component=apiserver,provider=kubernetes 10.0.0.2 443/TCP - - ``` ## Next steps diff --git a/docs/user-guide/secrets/README.md b/docs/user-guide/secrets/README.md index 74977ff814..5ddaccc112 100644 --- a/docs/user-guide/secrets/README.md +++ b/docs/user-guide/secrets/README.md @@ -38,7 +38,7 @@ A secret contains a set of named byte arrays. Use the [`examples/secrets/secret.yaml`](secret.yaml) file to create a secret: ```shell -$ kubectl create -f examples/secrets/secret.yaml +$ kubectl create -f docs/user-guide/secrets/secret.yaml ``` You can use `kubectl` to see information about the secret: @@ -69,7 +69,7 @@ consumes it. Use the [`examples/secrets/secret-pod.yaml`](secret-pod.yaml) file to create a Pod that consumes the secret. ```shell -$ kubectl create -f examples/secrets/secret-pod.yaml +$ kubectl create -f docs/user-guide/secrets/secret-pod.yaml ``` This pod runs a binary that displays the content of one of the pieces of secret data in the secret diff --git a/docs/user-guide/update-demo/README.md b/docs/user-guide/update-demo/README.md index f89759710b..df7ca76604 100644 --- a/docs/user-guide/update-demo/README.md +++ b/docs/user-guide/update-demo/README.md @@ -67,7 +67,7 @@ Now visit the the [demo website](http://localhost:8001/static). You won't see a Now we will turn up two replicas of an image. They all serve on internal port 80. ```bash -$ kubectl create -f examples/update-demo/nautilus-rc.yaml +$ kubectl create -f docs/user-guide/update-demo/nautilus-rc.yaml ``` After pulling the image from the Docker Hub to your worker nodes (which may take a minute or so) you'll see a couple of squares in the UI detailing the pods that are running along with the image that they are serving up. A cute little nautilus. @@ -86,7 +86,7 @@ If you go back to the [demo website](http://localhost:8001/static/index.html) yo We will now update the docker image to serve a different image by doing a rolling update to a new Docker image. ```bash -$ kubectl rolling-update update-demo-nautilus --update-period=10s -f examples/update-demo/kitten-rc.yaml +$ kubectl rolling-update update-demo-nautilus --update-period=10s -f docs/user-guide/update-demo/kitten-rc.yaml ``` The rolling-update command in kubectl will do 2 things: