Add database volume path as variable
This commit is contained in:
parent
146b22500e
commit
3aacb31d52
@ -42,7 +42,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mongo-datadir
|
- name: mongo-datadir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /data/db
|
path: ${mongo_volume}
|
||||||
- name: utility
|
- name: utility
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -52,6 +52,6 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mongo-datadir
|
- name: mongo-datadir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /data/db
|
path: ${mongo_volume}
|
||||||
- name: utility
|
- name: utility
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -9,3 +9,8 @@
|
|||||||
type: int
|
type: int
|
||||||
default: 2
|
default: 2
|
||||||
description: "should be even number"
|
description: "should be even number"
|
||||||
|
- variable: "mongo_volume"
|
||||||
|
label: "hostpath volume for mongodb"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
default: "/data/db"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user