processserver62-mysql-persistent-s2i.json 30 KB

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