Add database volume path as variable
This commit is contained in:
parent
146b22500e
commit
3aacb31d52
@ -42,7 +42,7 @@ spec:
|
||||
volumes:
|
||||
- name: mongo-datadir
|
||||
hostPath:
|
||||
path: /data/db
|
||||
path: ${mongo_volume}
|
||||
- name: utility
|
||||
emptyDir: {}
|
||||
metadata:
|
||||
|
@ -52,6 +52,6 @@ spec:
|
||||
volumes:
|
||||
- name: mongo-datadir
|
||||
hostPath:
|
||||
path: /data/db
|
||||
path: ${mongo_volume}
|
||||
- name: utility
|
||||
emptyDir: {}
|
||||
|
@ -9,3 +9,8 @@
|
||||
type: int
|
||||
default: 2
|
||||
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