Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gulcan Topcu <[email protected]>
  • Loading branch information
network-charles and colossus06 authored Jan 12, 2025
1 parent be8da21 commit 35aa383
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ Here:
- `subPath: html` mounts the html directory.
- `subPath: nginx.conf` mounts a specific file, nginx.conf.

Since the first subPath is `html`, this means that a `html` directory has to be created within `/mnt/data/`
Since the first subPath is `html`, an `html` directory has to be created within `/mnt/data/`
on the node.

The second subPath `nginx.conf` means that a file within the `/mnt/data/` directory will be used. No other directory
need to be created.
needs to be created.

Two volume mounts will be made on your nginx container:

Expand Down Expand Up @@ -322,7 +322,7 @@ EOF

### Create a Pod

Here we will be creating a pod that uses the existing persistentVolume and persistentVolumeClaim.
Here we will create a pod that uses the existing persistentVolume and persistentVolumeClaim.
However, the pod mounts only a specific file, `nginx.conf`, and directory, `html`, to the container.

Create the Pod:
Expand Down Expand Up @@ -365,7 +365,7 @@ In your shell, also verify that nginx is serving the `nginx.conf` file from the
hostPath volume:

```shell
# Be sure to run this commands inside the root shell that comes from
# Be sure to run these commands inside the root shell that comes from
# running "kubectl exec" in the previous step
cat /etc/nginx/nginx.conf | grep keepalive_timeout
```
Expand Down

0 comments on commit 35aa383

Please sign in to comment.