From 8e012468a4abc873605440b85da4e32607ff4117 Mon Sep 17 00:00:00 2001 From: Cody Clark Date: Thu, 3 Aug 2017 13:08:15 -0700 Subject: [PATCH] Removing extra spaces Per Issue [4602](https://github.com/kubernetes/kubernetes.github.io/issues/4602) --- .../configure-volume-storage.md | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/tasks/configure-pod-container/configure-volume-storage.md b/docs/tasks/configure-pod-container/configure-volume-storage.md index 7fad341494..d2f945097b 100644 --- a/docs/tasks/configure-pod-container/configure-volume-storage.md +++ b/docs/tasks/configure-pod-container/configure-volume-storage.md @@ -35,50 +35,50 @@ restarts. Here is the configuration file for the Pod: 1. Create the Pod: - kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/pod-redis.yaml + kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/pod-redis.yaml 1. Verify that the Pod's Container is running, and then watch for changes to the Pod: - kubectl get --watch pod redis + kubectl get --watch pod redis The output looks like this: - NAME READY STATUS RESTARTS AGE - redis 1/1 Running 0 13s + NAME READY STATUS RESTARTS AGE + redis 1/1 Running 0 13s 1. In another terminal, get a shell to the running Container: - kubectl exec -it redis -- /bin/bash + kubectl exec -it redis -- /bin/bash 1. In your shell, go to `/data/redis`, and create a file: - root@redis:/data/redis# echo Hello > test-file + root@redis:/data/redis# echo Hello > test-file 1. In your shell, list the running processes: - root@redis:/data/redis# ps aux + root@redis:/data/redis# ps aux The output is similar to this: - USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND - redis 1 0.1 0.1 33308 3828 ? Ssl 00:46 0:00 redis-server *:6379 - root 12 0.0 0.0 20228 3020 ? Ss 00:47 0:00 /bin/bash - root 15 0.0 0.0 17500 2072 ? R+ 00:48 0:00 ps aux + USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND + redis 1 0.1 0.1 33308 3828 ? Ssl 00:46 0:00 redis-server *:6379 + root 12 0.0 0.0 20228 3020 ? Ss 00:47 0:00 /bin/bash + root 15 0.0 0.0 17500 2072 ? R+ 00:48 0:00 ps aux 1. In your shell, kill the redis process: - root@redis:/data/redis# kill + root@redis:/data/redis# kill where `` is the redis process ID (PID). 1. In your original terminal, watch for changes to the redis Pod. Eventually, you will see something like this: - NAME READY STATUS RESTARTS AGE - redis 1/1 Running 0 13s - redis 0/1 Completed 0 6m - redis 1/1 Running 1 6m + NAME READY STATUS RESTARTS AGE + redis 1/1 Running 0 13s + redis 0/1 Completed 0 6m + redis 1/1 Running 1 6m At this point, the Container has terminated and restarted. This is because the redis Pod has a @@ -87,7 +87,7 @@ of `Always`. 1. Get a shell into the restarted Container: - kubectl exec -it redis -- /bin/bash + kubectl exec -it redis -- /bin/bash 1. In your shell, goto `/data/redis`, and verify that `test-file` is still there.