Replace $REPO with http://k8s.io.

reviewable/pr1666/r4^2
steveperry-53 2016-12-05 15:32:19 -08:00 committed by Steve Perry
parent e56d433a36
commit 2b226de264
7 changed files with 12 additions and 19 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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/).

View File

@ -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: