From 2b226de2643a2b5199e637423abdf6f6c3ae2e06 Mon Sep 17 00:00:00 2001 From: steveperry-53 Date: Mon, 5 Dec 2016 15:32:19 -0800 Subject: [PATCH] Replace $REPO with http://k8s.io. --- .../port-forward-access-application-cluster.md | 3 +-- docs/tasks/administer-cluster/assign-pods-nodes.md | 3 +-- .../configure-pod-container/assign-cpu-ram-container.md | 3 +-- .../define-command-argument-container.md | 3 +-- .../define-environment-variable-container.md | 3 +-- .../determine-reason-pod-failure.md | 9 ++++----- .../run-stateless-application-deployment.md | 7 +++---- 7 files changed, 12 insertions(+), 19 deletions(-) diff --git a/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md b/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md index b3d8db38dd..41726c0afd 100644 --- a/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md +++ b/docs/tasks/access-application-cluster/port-forward-access-application-cluster.md @@ -25,8 +25,7 @@ for database debugging. 1. Create a pod: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/access-application-cluster/redis-master.yaml + kubectl create -f http://k8s.io/docs/tasks/access-application-cluster/redis-master.yaml The output of a successful command verifies that the pod was created: diff --git a/docs/tasks/administer-cluster/assign-pods-nodes.md b/docs/tasks/administer-cluster/assign-pods-nodes.md index f778e87e4b..4468b92701 100644 --- a/docs/tasks/administer-cluster/assign-pods-nodes.md +++ b/docs/tasks/administer-cluster/assign-pods-nodes.md @@ -59,8 +59,7 @@ a `disktype=ssd` label. 1. Use the configuration file to create a pod that will get scheduled on your chosen node: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/administer-cluster/pod.yaml + kubectl create -f http://k8s.io/docs/tasks/administer-cluster/pod.yaml 1. Verify that the pod is running on your chosen node: diff --git a/docs/tasks/configure-pod-container/assign-cpu-ram-container.md b/docs/tasks/configure-pod-container/assign-cpu-ram-container.md index 5b05afedb8..2e852a7660 100644 --- a/docs/tasks/configure-pod-container/assign-cpu-ram-container.md +++ b/docs/tasks/configure-pod-container/assign-cpu-ram-container.md @@ -43,8 +43,7 @@ for the `Pod`: 1. Create a Pod based on the YAML configuration file: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/configure-pod-container/cpu-ram.yaml + kubectl create -f http://k8s.io/docs/tasks/configure-pod-container/cpu-ram.yaml 1. Display information about the pod: diff --git a/docs/tasks/configure-pod-container/define-command-argument-container.md b/docs/tasks/configure-pod-container/define-command-argument-container.md index 22ac9b5e04..85befe43e0 100644 --- a/docs/tasks/configure-pod-container/define-command-argument-container.md +++ b/docs/tasks/configure-pod-container/define-command-argument-container.md @@ -39,8 +39,7 @@ file for the Pod defines a command and two arguments: 1. Create a Pod based on the YAML configuration file: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/configure-pod-container/commands.yaml + kubectl create -f http://k8s.io/docs/tasks/configure-pod-container/commands.yaml 1. List the running Pods: diff --git a/docs/tasks/configure-pod-container/define-environment-variable-container.md b/docs/tasks/configure-pod-container/define-environment-variable-container.md index 2cba3c55f1..25e90c7fb4 100644 --- a/docs/tasks/configure-pod-container/define-environment-variable-container.md +++ b/docs/tasks/configure-pod-container/define-environment-variable-container.md @@ -33,8 +33,7 @@ Pod: 1. Create a Pod based on the YAML configuration file: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/configure-pod-container/envars.yaml + kubectl create -f http://k8s.io/docs/tasks/configure-pod-container/envars.yaml 1. List the running Pods: diff --git a/docs/tasks/debug-application-cluster/determine-reason-pod-failure.md b/docs/tasks/debug-application-cluster/determine-reason-pod-failure.md index f0f611e235..5710150a76 100644 --- a/docs/tasks/debug-application-cluster/determine-reason-pod-failure.md +++ b/docs/tasks/debug-application-cluster/determine-reason-pod-failure.md @@ -32,12 +32,11 @@ In this exercise, you create a Pod that runs one container. The configuration file specifies a command that runs when the container starts. -{% include code.html language="yaml" file="termination.yaml" ghlink="/docs/tasks/debug-pod-container/termination.yaml" %} +{% include code.html language="yaml" file="termination.yaml" ghlink="/docs/tasks/debug-application-cluster/termination.yaml" %} 1. Create a Pod based on the YAML configuration file: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tasks/debug-pod-container/termination.yaml + kubectl create -f http://k8s.io/docs/tasks/debug-application-cluster/termination.yaml In the YAML file, in the `cmd` and `args` fields, you can see that the container sleeps for 10 seconds and then writes "Sleep expired" to @@ -70,7 +69,7 @@ the container starts. 1. Use a Go template to filter the output so that it includes only the termination message: - + ``` {% raw %} kubectl get pod termination-demo -o go-template="{{range .status.containerStatuses}}{{.lastState.terminated.message}}{{end}}"{% endraw %} ``` @@ -99,7 +98,7 @@ Set `terminationMessagePath` as shown here: {% capture whatsnext %} -* See the `terminationMessagePath` field in +* See the `terminationMessagePath` field in [Container](/docs/api-reference/v1/definitions#_v1_container). * Learn about [retrieving logs](/docs/user-guide/logging/). * Learn about [Go templates](https://golang.org/pkg/text/template/). diff --git a/docs/tutorials/stateless-application/run-stateless-application-deployment.md b/docs/tutorials/stateless-application/run-stateless-application-deployment.md index 755e52ebfe..7ea6efa408 100644 --- a/docs/tutorials/stateless-application/run-stateless-application-deployment.md +++ b/docs/tutorials/stateless-application/run-stateless-application-deployment.md @@ -37,8 +37,7 @@ a Deployment that runs the nginx:1.7.9 Docker image: 1. Create a Deployment based on the YAML file: - export REPO=https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master - kubectl create -f $REPO/docs/tutorials/stateless-application/deployment.yaml + kubectl create -f http://k8s.io/docs/tutorials/stateless-application/deployment.yaml 1. Display information about the Deployment: @@ -81,7 +80,7 @@ specifies that the deployment should be updated to use nginx 1.8. 1. Apply the new YAML file: - kubectl apply -f $REPO/docs/tutorials/stateless-application/deployment-update.yaml + kubectl apply -f http://k8s.io/docs/tutorials/stateless-application/deployment-update.yaml 1. Watch the deployment create pods with new names and delete the old pods: @@ -97,7 +96,7 @@ should have four pods: 1. Apply the new YAML file: - kubectl apply -f $REPO/docs/tutorials/stateless-application/deployment-scale.yaml + kubectl apply -f http://k8s.io/docs/tutorials/stateless-application/deployment-scale.yaml 1. Verify that the Deployment has four pods: