eap64-mongodb-persistent-s2i.json 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "description": "Application template for EAP 6 MongoDB applications with persistent storage built using S2I.",
  7. "iconClass": "icon-jboss",
  8. "tags": "eap,mongodb,javaee,java,database,jboss,xpaas",
  9. "version": "1.3.2"
  10. },
  11. "name": "eap64-mongodb-persistent-s2i"
  12. },
  13. "labels": {
  14. "template": "eap64-mongodb-persistent-s2i",
  15. "xpaas": "1.3.2"
  16. },
  17. "parameters": [
  18. {
  19. "description": "The name for the application.",
  20. "name": "APPLICATION_NAME",
  21. "value": "eap-app",
  22. "required": true
  23. },
  24. {
  25. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  26. "name": "HOSTNAME_HTTP",
  27. "value": "",
  28. "required": false
  29. },
  30. {
  31. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  32. "name": "HOSTNAME_HTTPS",
  33. "value": "",
  34. "required": false
  35. },
  36. {
  37. "description": "Git source URI for application",
  38. "name": "SOURCE_REPOSITORY_URL",
  39. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  40. "required": true
  41. },
  42. {
  43. "description": "Git branch/tag reference",
  44. "name": "SOURCE_REPOSITORY_REF",
  45. "value": "1.2",
  46. "required": false
  47. },
  48. {
  49. "description": "Path within Git project to build; empty for root project directory.",
  50. "name": "CONTEXT_DIR",
  51. "value": "todolist/todolist-mongodb",
  52. "required": false
  53. },
  54. {
  55. "description": "Database JNDI name used by application to resolve the datasource, e.g. java:/jboss/datasources/mongodb",
  56. "name": "DB_JNDI",
  57. "value": "",
  58. "required": false
  59. },
  60. {
  61. "description": "Database name",
  62. "name": "DB_DATABASE",
  63. "value": "root",
  64. "required": true
  65. },
  66. {
  67. "description": "Size of persistent storage for database volume.",
  68. "name": "VOLUME_CAPACITY",
  69. "value": "512Mi",
  70. "required": true
  71. },
  72. {
  73. "description": "Queue names",
  74. "name": "HORNETQ_QUEUES",
  75. "value": "",
  76. "required": false
  77. },
  78. {
  79. "description": "Topic names",
  80. "name": "HORNETQ_TOPICS",
  81. "value": "",
  82. "required": false
  83. },
  84. {
  85. "description": "The name of the service account to use for the deployment. The service account should be configured to allow useage of the secret(s) specified by HTTPS_SECRET and JGROUPS_ENCRYPT_SECRET.",
  86. "name": "SERVICE_ACCOUNT_NAME",
  87. "value": "eap-service-account",
  88. "required": true
  89. },
  90. {
  91. "description": "The name of the secret containing the keystore file",
  92. "name": "HTTPS_SECRET",
  93. "value": "eap-app-secret",
  94. "required": false
  95. },
  96. {
  97. "description": "The name of the keystore file within the secret",
  98. "name": "HTTPS_KEYSTORE",
  99. "value": "keystore.jks",
  100. "required": false
  101. },
  102. {
  103. "description": "The type of the keystore file (JKS or JCEKS)",
  104. "name": "HTTPS_KEYSTORE_TYPE",
  105. "value": "",
  106. "required": false
  107. },
  108. {
  109. "description": "The name associated with the server certificate",
  110. "name": "HTTPS_NAME",
  111. "value": "",
  112. "required": false
  113. },
  114. {
  115. "description": "The password for the keystore and certificate",
  116. "name": "HTTPS_PASSWORD",
  117. "value": "",
  118. "required": false
  119. },
  120. {
  121. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  122. "name": "DB_MIN_POOL_SIZE",
  123. "required": false
  124. },
  125. {
  126. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  127. "name": "DB_MAX_POOL_SIZE",
  128. "required": false
  129. },
  130. {
  131. "description": "Sets transaction-isolation for the configured datasource.",
  132. "name": "DB_TX_ISOLATION",
  133. "required": false
  134. },
  135. {
  136. "description": "Disable data file preallocation.",
  137. "name": "MONGODB_NOPREALLOC",
  138. "required": false
  139. },
  140. {
  141. "description": "Set MongoDB to use a smaller default data file size.",
  142. "name": "MONGODB_SMALLFILES",
  143. "required": false
  144. },
  145. {
  146. "description": "Runs MongoDB in a quiet mode that attempts to limit the amount of output.",
  147. "name": "MONGODB_QUIET",
  148. "required": false
  149. },
  150. {
  151. "description": "HornetQ cluster admin password",
  152. "name": "HORNETQ_CLUSTER_PASSWORD",
  153. "from": "[a-zA-Z0-9]{8}",
  154. "generate": "expression",
  155. "required": true
  156. },
  157. {
  158. "description": "Database user name",
  159. "name": "DB_USERNAME",
  160. "from": "user[a-zA-Z0-9]{3}",
  161. "generate": "expression",
  162. "required": true
  163. },
  164. {
  165. "description": "Database user password",
  166. "name": "DB_PASSWORD",
  167. "from": "[a-zA-Z0-9]{8}",
  168. "generate": "expression",
  169. "required": true
  170. },
  171. {
  172. "description": "Database admin password",
  173. "name": "DB_ADMIN_PASSWORD",
  174. "from": "[a-zA-Z0-9]{8}",
  175. "generate": "expression",
  176. "required": true
  177. },
  178. {
  179. "description": "GitHub trigger secret",
  180. "name": "GITHUB_WEBHOOK_SECRET",
  181. "from": "[a-zA-Z0-9]{8}",
  182. "generate": "expression",
  183. "required": true
  184. },
  185. {
  186. "description": "Generic build trigger secret",
  187. "name": "GENERIC_WEBHOOK_SECRET",
  188. "from": "[a-zA-Z0-9]{8}",
  189. "generate": "expression",
  190. "required": true
  191. },
  192. {
  193. "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
  194. "name": "IMAGE_STREAM_NAMESPACE",
  195. "value": "openshift",
  196. "required": true
  197. },
  198. {
  199. "description": "The name of the secret containing the keystore file",
  200. "name": "JGROUPS_ENCRYPT_SECRET",
  201. "value": "eap-app-secret",
  202. "required": false
  203. },
  204. {
  205. "description": "The name of the keystore file within the secret",
  206. "name": "JGROUPS_ENCRYPT_KEYSTORE",
  207. "value": "jgroups.jceks",
  208. "required": false
  209. },
  210. {
  211. "description": "The name associated with the server certificate",
  212. "name": "JGROUPS_ENCRYPT_NAME",
  213. "value": "",
  214. "required": false
  215. },
  216. {
  217. "description": "The password for the keystore and certificate",
  218. "name": "JGROUPS_ENCRYPT_PASSWORD",
  219. "value": "",
  220. "required": false
  221. },
  222. {
  223. "description": "JGroups cluster password",
  224. "name": "JGROUPS_CLUSTER_PASSWORD",
  225. "from": "[a-zA-Z0-9]{8}",
  226. "generate": "expression",
  227. "required": true
  228. },
  229. {
  230. "description": "Controls whether exploded deployment content should be automatically deployed",
  231. "name": "AUTO_DEPLOY_EXPLODED",
  232. "value": "false",
  233. "required": false
  234. }
  235. ],
  236. "objects": [
  237. {
  238. "kind": "Service",
  239. "apiVersion": "v1",
  240. "spec": {
  241. "ports": [
  242. {
  243. "port": 8080,
  244. "targetPort": 8080
  245. }
  246. ],
  247. "selector": {
  248. "deploymentConfig": "${APPLICATION_NAME}"
  249. }
  250. },
  251. "metadata": {
  252. "name": "${APPLICATION_NAME}",
  253. "labels": {
  254. "application": "${APPLICATION_NAME}"
  255. },
  256. "annotations": {
  257. "description": "The web server's http port."
  258. }
  259. }
  260. },
  261. {
  262. "kind": "Service",
  263. "apiVersion": "v1",
  264. "spec": {
  265. "ports": [
  266. {
  267. "port": 8443,
  268. "targetPort": 8443
  269. }
  270. ],
  271. "selector": {
  272. "deploymentConfig": "${APPLICATION_NAME}"
  273. }
  274. },
  275. "metadata": {
  276. "name": "secure-${APPLICATION_NAME}",
  277. "labels": {
  278. "application": "${APPLICATION_NAME}"
  279. },
  280. "annotations": {
  281. "description": "The web server's https port."
  282. }
  283. }
  284. },
  285. {
  286. "kind": "Service",
  287. "apiVersion": "v1",
  288. "spec": {
  289. "ports": [
  290. {
  291. "port": 27017,
  292. "targetPort": 27017
  293. }
  294. ],
  295. "selector": {
  296. "deploymentConfig": "${APPLICATION_NAME}-mongodb"
  297. }
  298. },
  299. "metadata": {
  300. "name": "${APPLICATION_NAME}-mongodb",
  301. "labels": {
  302. "application": "${APPLICATION_NAME}"
  303. },
  304. "annotations": {
  305. "description": "The database server's port."
  306. }
  307. }
  308. },
  309. {
  310. "kind": "Route",
  311. "apiVersion": "v1",
  312. "id": "${APPLICATION_NAME}-http",
  313. "metadata": {
  314. "name": "${APPLICATION_NAME}",
  315. "labels": {
  316. "application": "${APPLICATION_NAME}"
  317. },
  318. "annotations": {
  319. "description": "Route for application's http service."
  320. }
  321. },
  322. "spec": {
  323. "host": "${HOSTNAME_HTTP}",
  324. "to": {
  325. "name": "${APPLICATION_NAME}"
  326. }
  327. }
  328. },
  329. {
  330. "kind": "Route",
  331. "apiVersion": "v1",
  332. "id": "${APPLICATION_NAME}-https",
  333. "metadata": {
  334. "name": "secure-${APPLICATION_NAME}",
  335. "labels": {
  336. "application": "${APPLICATION_NAME}"
  337. },
  338. "annotations": {
  339. "description": "Route for application's https service."
  340. }
  341. },
  342. "spec": {
  343. "host": "${HOSTNAME_HTTPS}",
  344. "to": {
  345. "name": "secure-${APPLICATION_NAME}"
  346. },
  347. "tls": {
  348. "termination": "passthrough"
  349. }
  350. }
  351. },
  352. {
  353. "kind": "ImageStream",
  354. "apiVersion": "v1",
  355. "metadata": {
  356. "name": "${APPLICATION_NAME}",
  357. "labels": {
  358. "application": "${APPLICATION_NAME}"
  359. }
  360. }
  361. },
  362. {
  363. "kind": "BuildConfig",
  364. "apiVersion": "v1",
  365. "metadata": {
  366. "name": "${APPLICATION_NAME}",
  367. "labels": {
  368. "application": "${APPLICATION_NAME}"
  369. }
  370. },
  371. "spec": {
  372. "source": {
  373. "type": "Git",
  374. "git": {
  375. "uri": "${SOURCE_REPOSITORY_URL}",
  376. "ref": "${SOURCE_REPOSITORY_REF}"
  377. },
  378. "contextDir": "${CONTEXT_DIR}"
  379. },
  380. "strategy": {
  381. "type": "Source",
  382. "sourceStrategy": {
  383. "forcePull": true,
  384. "from": {
  385. "kind": "ImageStreamTag",
  386. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  387. "name": "jboss-eap64-openshift:1.4"
  388. }
  389. }
  390. },
  391. "output": {
  392. "to": {
  393. "kind": "ImageStreamTag",
  394. "name": "${APPLICATION_NAME}:latest"
  395. }
  396. },
  397. "triggers": [
  398. {
  399. "type": "GitHub",
  400. "github": {
  401. "secret": "${GITHUB_WEBHOOK_SECRET}"
  402. }
  403. },
  404. {
  405. "type": "Generic",
  406. "generic": {
  407. "secret": "${GENERIC_WEBHOOK_SECRET}"
  408. }
  409. },
  410. {
  411. "type": "ImageChange",
  412. "imageChange": {}
  413. },
  414. {
  415. "type": "ConfigChange"
  416. }
  417. ]
  418. }
  419. },
  420. {
  421. "kind": "DeploymentConfig",
  422. "apiVersion": "v1",
  423. "metadata": {
  424. "name": "${APPLICATION_NAME}",
  425. "labels": {
  426. "application": "${APPLICATION_NAME}"
  427. }
  428. },
  429. "spec": {
  430. "strategy": {
  431. "type": "Recreate"
  432. },
  433. "triggers": [
  434. {
  435. "type": "ImageChange",
  436. "imageChangeParams": {
  437. "automatic": true,
  438. "containerNames": [
  439. "${APPLICATION_NAME}"
  440. ],
  441. "from": {
  442. "kind": "ImageStreamTag",
  443. "name": "${APPLICATION_NAME}:latest"
  444. }
  445. }
  446. },
  447. {
  448. "type": "ConfigChange"
  449. }
  450. ],
  451. "replicas": 1,
  452. "selector": {
  453. "deploymentConfig": "${APPLICATION_NAME}"
  454. },
  455. "template": {
  456. "metadata": {
  457. "name": "${APPLICATION_NAME}",
  458. "labels": {
  459. "deploymentConfig": "${APPLICATION_NAME}",
  460. "application": "${APPLICATION_NAME}"
  461. }
  462. },
  463. "spec": {
  464. "serviceAccountName": "${SERVICE_ACCOUNT_NAME}",
  465. "terminationGracePeriodSeconds": 60,
  466. "containers": [
  467. {
  468. "name": "${APPLICATION_NAME}",
  469. "image": "${APPLICATION_NAME}",
  470. "imagePullPolicy": "Always",
  471. "volumeMounts": [
  472. {
  473. "name": "eap-keystore-volume",
  474. "mountPath": "/etc/eap-secret-volume",
  475. "readOnly": true
  476. },
  477. {
  478. "name": "eap-jgroups-keystore-volume",
  479. "mountPath": "/etc/jgroups-encrypt-secret-volume",
  480. "readOnly": true
  481. }
  482. ],
  483. "livenessProbe": {
  484. "exec": {
  485. "command": [
  486. "/bin/bash",
  487. "-c",
  488. "/opt/eap/bin/livenessProbe.sh"
  489. ]
  490. }
  491. },
  492. "readinessProbe": {
  493. "exec": {
  494. "command": [
  495. "/bin/bash",
  496. "-c",
  497. "/opt/eap/bin/readinessProbe.sh"
  498. ]
  499. }
  500. },
  501. "ports": [
  502. {
  503. "name": "jolokia",
  504. "containerPort": 8778,
  505. "protocol": "TCP"
  506. },
  507. {
  508. "name": "http",
  509. "containerPort": 8080,
  510. "protocol": "TCP"
  511. },
  512. {
  513. "name": "https",
  514. "containerPort": 8443,
  515. "protocol": "TCP"
  516. },
  517. {
  518. "name": "ping",
  519. "containerPort": 8888,
  520. "protocol": "TCP"
  521. }
  522. ],
  523. "env": [
  524. {
  525. "name": "DB_SERVICE_PREFIX_MAPPING",
  526. "value": "${APPLICATION_NAME}-mongodb=DB"
  527. },
  528. {
  529. "name": "DB_JNDI",
  530. "value": "${DB_JNDI}"
  531. },
  532. {
  533. "name": "DB_USERNAME",
  534. "value": "${DB_USERNAME}"
  535. },
  536. {
  537. "name": "DB_PASSWORD",
  538. "value": "${DB_PASSWORD}"
  539. },
  540. {
  541. "name": "DB_DATABASE",
  542. "value": "${DB_DATABASE}"
  543. },
  544. {
  545. "name": "DB_ADMIN_PASSWORD",
  546. "value": "${DB_ADMIN_PASSWORD}"
  547. },
  548. {
  549. "name": "DB_MIN_POOL_SIZE",
  550. "value": "${DB_MIN_POOL_SIZE}"
  551. },
  552. {
  553. "name": "DB_MAX_POOL_SIZE",
  554. "value": "${DB_MAX_POOL_SIZE}"
  555. },
  556. {
  557. "name": "DB_TX_ISOLATION",
  558. "value": "${DB_TX_ISOLATION}"
  559. },
  560. {
  561. "name": "OPENSHIFT_KUBE_PING_LABELS",
  562. "value": "application=${APPLICATION_NAME}"
  563. },
  564. {
  565. "name": "OPENSHIFT_KUBE_PING_NAMESPACE",
  566. "valueFrom": {
  567. "fieldRef": {
  568. "fieldPath": "metadata.namespace"
  569. }
  570. }
  571. },
  572. {
  573. "name": "HTTPS_KEYSTORE_DIR",
  574. "value": "/etc/eap-secret-volume"
  575. },
  576. {
  577. "name": "HTTPS_KEYSTORE",
  578. "value": "${HTTPS_KEYSTORE}"
  579. },
  580. {
  581. "name": "HTTPS_KEYSTORE_TYPE",
  582. "value": "${HTTPS_KEYSTORE_TYPE}"
  583. },
  584. {
  585. "name": "HTTPS_NAME",
  586. "value": "${HTTPS_NAME}"
  587. },
  588. {
  589. "name": "HTTPS_PASSWORD",
  590. "value": "${HTTPS_PASSWORD}"
  591. },
  592. {
  593. "name": "HORNETQ_CLUSTER_PASSWORD",
  594. "value": "${HORNETQ_CLUSTER_PASSWORD}"
  595. },
  596. {
  597. "name": "HORNETQ_QUEUES",
  598. "value": "${HORNETQ_QUEUES}"
  599. },
  600. {
  601. "name": "HORNETQ_TOPICS",
  602. "value": "${HORNETQ_TOPICS}"
  603. },
  604. {
  605. "name": "JGROUPS_ENCRYPT_SECRET",
  606. "value": "${JGROUPS_ENCRYPT_SECRET}"
  607. },
  608. {
  609. "name": "JGROUPS_ENCRYPT_KEYSTORE_DIR",
  610. "value": "/etc/jgroups-encrypt-secret-volume"
  611. },
  612. {
  613. "name": "JGROUPS_ENCRYPT_KEYSTORE",
  614. "value": "${JGROUPS_ENCRYPT_KEYSTORE}"
  615. },
  616. {
  617. "name": "JGROUPS_ENCRYPT_NAME",
  618. "value": "${JGROUPS_ENCRYPT_NAME}"
  619. },
  620. {
  621. "name": "JGROUPS_ENCRYPT_PASSWORD",
  622. "value": "${JGROUPS_ENCRYPT_PASSWORD}"
  623. },
  624. {
  625. "name": "JGROUPS_CLUSTER_PASSWORD",
  626. "value": "${JGROUPS_CLUSTER_PASSWORD}"
  627. },
  628. {
  629. "name": "AUTO_DEPLOY_EXPLODED",
  630. "value": "${AUTO_DEPLOY_EXPLODED}"
  631. }
  632. ]
  633. }
  634. ],
  635. "volumes": [
  636. {
  637. "name": "eap-keystore-volume",
  638. "secret": {
  639. "secretName": "${HTTPS_SECRET}"
  640. }
  641. },
  642. {
  643. "name": "eap-jgroups-keystore-volume",
  644. "secret": {
  645. "secretName": "${JGROUPS_ENCRYPT_SECRET}"
  646. }
  647. }
  648. ]
  649. }
  650. }
  651. }
  652. },
  653. {
  654. "kind": "DeploymentConfig",
  655. "apiVersion": "v1",
  656. "metadata": {
  657. "name": "${APPLICATION_NAME}-mongodb",
  658. "labels": {
  659. "application": "${APPLICATION_NAME}"
  660. }
  661. },
  662. "spec": {
  663. "strategy": {
  664. "type": "Recreate"
  665. },
  666. "triggers": [
  667. {
  668. "type": "ImageChange",
  669. "imageChangeParams": {
  670. "automatic": true,
  671. "containerNames": [
  672. "${APPLICATION_NAME}-mongodb"
  673. ],
  674. "from": {
  675. "kind": "ImageStreamTag",
  676. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  677. "name": "mongodb:latest"
  678. }
  679. }
  680. },
  681. {
  682. "type": "ConfigChange"
  683. }
  684. ],
  685. "replicas": 1,
  686. "selector": {
  687. "deploymentConfig": "${APPLICATION_NAME}-mongodb"
  688. },
  689. "template": {
  690. "metadata": {
  691. "name": "${APPLICATION_NAME}-mongodb",
  692. "labels": {
  693. "deploymentConfig": "${APPLICATION_NAME}-mongodb",
  694. "application": "${APPLICATION_NAME}"
  695. }
  696. },
  697. "spec": {
  698. "terminationGracePeriodSeconds": 60,
  699. "containers": [
  700. {
  701. "name": "${APPLICATION_NAME}-mongodb",
  702. "image": "mongodb",
  703. "imagePullPolicy": "Always",
  704. "ports": [
  705. {
  706. "containerPort": 27017,
  707. "protocol": "TCP"
  708. }
  709. ],
  710. "volumeMounts": [
  711. {
  712. "mountPath": "/var/lib/mongodb/data",
  713. "name": "${APPLICATION_NAME}-mongodb-pvol"
  714. }
  715. ],
  716. "env": [
  717. {
  718. "name": "MONGODB_USER",
  719. "value": "${DB_USERNAME}"
  720. },
  721. {
  722. "name": "MONGODB_PASSWORD",
  723. "value": "${DB_PASSWORD}"
  724. },
  725. {
  726. "name": "MONGODB_DATABASE",
  727. "value": "${DB_DATABASE}"
  728. },
  729. {
  730. "name": "MONGODB_ADMIN_PASSWORD",
  731. "value": "${DB_ADMIN_PASSWORD}"
  732. },
  733. {
  734. "name": "MONGODB_NOPREALLOC",
  735. "value": "${MONGODB_NOPREALLOC}"
  736. },
  737. {
  738. "name": "MONGODB_SMALLFILES",
  739. "value": "${MONGODB_SMALLFILES}"
  740. },
  741. {
  742. "name": "MONGODB_QUIET",
  743. "value": "${MONGODB_QUIET}"
  744. }
  745. ]
  746. }
  747. ],
  748. "volumes": [
  749. {
  750. "name": "${APPLICATION_NAME}-mongodb-pvol",
  751. "persistentVolumeClaim": {
  752. "claimName": "${APPLICATION_NAME}-mongodb-claim"
  753. }
  754. }
  755. ]
  756. }
  757. }
  758. }
  759. },
  760. {
  761. "apiVersion": "v1",
  762. "kind": "PersistentVolumeClaim",
  763. "metadata": {
  764. "name": "${APPLICATION_NAME}-mongodb-claim",
  765. "labels": {
  766. "application": "${APPLICATION_NAME}"
  767. }
  768. },
  769. "spec": {
  770. "accessModes": [
  771. "ReadWriteOnce"
  772. ],
  773. "resources": {
  774. "requests": {
  775. "storage": "${VOLUME_CAPACITY}"
  776. }
  777. }
  778. }
  779. }
  780. ]
  781. }