Commit 8d73f9db authored by Alexander Lercher's avatar Alexander Lercher

#24 kubernetes volumes for mongodb deployments

exists as long as pod (persistence after restart)
parent d2d4b6c7
...@@ -72,3 +72,8 @@ spec: ...@@ -72,3 +72,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
...@@ -80,3 +80,8 @@ spec: ...@@ -80,3 +80,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
...@@ -72,3 +72,8 @@ spec: ...@@ -72,3 +72,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
...@@ -80,3 +80,8 @@ spec: ...@@ -80,3 +80,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
...@@ -80,3 +80,8 @@ spec: ...@@ -80,3 +80,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
...@@ -73,3 +73,8 @@ spec: ...@@ -73,3 +73,8 @@ spec:
value: root value: root
ports: ports:
- containerPort: 27017 - containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment