processserver63-mysql-persistent-s2i.json 31 KB

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