mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
fix up docs
This commit is contained in:
parent
a95b9c8c2c
commit
7483d9b678
@ -1,9 +1,9 @@
|
|||||||
# Persisted Volumes Demo
|
# Persistent Volumes Demo
|
||||||
|
|
||||||
## Container Storage
|
## Container Storage
|
||||||
|
|
||||||
By default containers store their data on the file system like any other process.
|
By default containers store their data on the file system like any other process.
|
||||||
Container file system is temporary and not persisted during container restarts
|
Container file system is temporary and not persistent during container restarts
|
||||||
When container is recreated, so is the file system
|
When container is recreated, so is the file system
|
||||||
|
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ Since data is lost.
|
|||||||
Same can be demonstrated using Kubernetes
|
Same can be demonstrated using Kubernetes
|
||||||
|
|
||||||
```
|
```
|
||||||
cd .\kubernetes\persistedvolumes\
|
cd .\kubernetes\persistentvolume\
|
||||||
|
|
||||||
kubectl create ns postgres
|
kubectl create ns postgres
|
||||||
kubectl apply -n postgres -f ./postgres-no-pv.yaml
|
kubectl apply -n postgres -f ./postgres-no-pv.yaml
|
||||||
@ -67,8 +67,8 @@ docker run -d --rm -v postges:/var/lib/postgresql/data -e POSTGRES_DB=postgresdb
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f persistedvolume.yaml
|
kubectl apply -f persistentvolume.yaml
|
||||||
kubectl apply -n postgres -f persistedvolumeclaim.yaml
|
kubectl apply -n postgres -f persistentvolumeclaim.yaml
|
||||||
|
|
||||||
kubectl apply -n postgres -f postgres-with-pv.yaml
|
kubectl apply -n postgres -f postgres-with-pv.yaml
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user