eap64-amq-persistent-s2i.json 31 KB

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