@@ -131,7 +131,7 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
* Persistent Volume Claim
As a Docker image is immutable, you may need to define some persistent storage. In the case of a PostgreSQL container we need to persist the data of the database.
We do this using a `Persistent Volume Claim`.
> You can see that we define an `accessModes`to `ReadWriteOnce`, this mean that the Persistent Volume will only be accessed by one container.
...
...
@@ -224,6 +224,7 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
```
* PostgreSQL Service
```yaml
apiVersion: v1
kind: Service
...
...
@@ -241,6 +242,7 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
* Django Application
* Deployment
```yaml
apiVersion: extensions/v1beta1
kind: Deployment
...
...
@@ -285,7 +287,9 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio
secret:
secretName: postgresql
```
* Service
```yaml
apiVersion: v1
kind: Service
...
...
@@ -301,7 +305,9 @@ Once succesfully completed, you can see the docker image in the `Registry`sectio