8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
40 lines
688 B
JSON
40 lines
688 B
JSON
{
|
|
"kind": "Pod",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "mongo",
|
|
"labels": {
|
|
"name": "mongo",
|
|
"role": "mongo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "mongo-disk",
|
|
"gcePersistentDisk": {
|
|
"pdName": "mongo-disk",
|
|
"fsType": "ext4"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "mongo",
|
|
"image": "mongo:latest",
|
|
"ports": [
|
|
{
|
|
"name": "mongo",
|
|
"containerPort": 27017
|
|
}
|
|
],
|
|
"volumeMounts": [
|
|
{
|
|
"name": "mongo-disk",
|
|
"mountPath": "/data/db"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|