eap70-amq-persistent-s2i.json 33 KB

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