Removed unwanted spaces in "configure-projected-volume-storage" file to keep it alligned with other docs (#14228)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
36c09f10cb
commit
78b93d7709
@@ -31,6 +31,7 @@ Here is the configuration file for the Pod:
|
|||||||
{{< codenew file="pods/storage/projected.yaml" >}}
|
{{< codenew file="pods/storage/projected.yaml" >}}
|
||||||
|
|
||||||
1. Create the Secrets:
|
1. Create the Secrets:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Create files containing the username and password:
|
# Create files containing the username and password:
|
||||||
echo -n "admin" > ./username.txt
|
echo -n "admin" > ./username.txt
|
||||||
@@ -41,11 +42,13 @@ Here is the configuration file for the Pod:
|
|||||||
kubectl create secret generic pass --from-file=./password.txt
|
kubectl create secret generic pass --from-file=./password.txt
|
||||||
```
|
```
|
||||||
1. Create the Pod:
|
1. Create the Pod:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl apply -f https://k8s.io/examples/pods/storage/projected.yaml
|
kubectl apply -f https://k8s.io/examples/pods/storage/projected.yaml
|
||||||
```
|
```
|
||||||
1. Verify that the Pod's Container is running, and then watch for changes to
|
1. Verify that the Pod's Container is running, and then watch for changes to
|
||||||
the Pod:
|
the Pod:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl get --watch pod test-projected-volume
|
kubectl get --watch pod test-projected-volume
|
||||||
```
|
```
|
||||||
@@ -55,10 +58,12 @@ the Pod:
|
|||||||
test-projected-volume 1/1 Running 0 14s
|
test-projected-volume 1/1 Running 0 14s
|
||||||
```
|
```
|
||||||
1. In another terminal, get a shell to the running Container:
|
1. In another terminal, get a shell to the running Container:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl exec -it test-projected-volume -- /bin/sh
|
kubectl exec -it test-projected-volume -- /bin/sh
|
||||||
```
|
```
|
||||||
1. In your shell, verify that the `projected-volume` directory contains your projected sources:
|
1. In your shell, verify that the `projected-volume` directory contains your projected sources:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ls /projected-volume/
|
ls /projected-volume/
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user