jws30-tomcat7-mysql-persistent-s2i.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. {
  2. "kind": "Template",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "annotations": {
  6. "iconClass": "icon-tomcat",
  7. "description": "Application template for JWS MySQL applications with persistent storage built using S2I.",
  8. "tags": "tomcat,tomcat7,java,jboss,xpaas",
  9. "version": "1.4.0",
  10. "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Tomcat 7 + MySQL (Persistent with https)"
  11. },
  12. "name": "jws30-tomcat7-mysql-persistent-s2i"
  13. },
  14. "labels": {
  15. "template": "jws30-tomcat7-mysql-persistent-s2i",
  16. "xpaas": "1.4.0"
  17. },
  18. "message": "A new persistent JWS application for Tomcat 7 (using MySQL) has been created in your project. The username/password for administering your JWS is ${JWS_ADMIN_USERNAME}/${JWS_ADMIN_PASSWORD}. For accessing the MySQL database \"${DB_DATABASE}\" use the credentials ${DB_USERNAME}/${DB_PASSWORD}. Please be sure to create the \"jws-service-account\" service account and the secret named \"${JWS_HTTPS_SECRET}\" containing the ${JWS_HTTPS_CERTIFICATE} file used for serving secure content.",
  19. "parameters": [
  20. {
  21. "displayName": "Application Name",
  22. "description": "The name for the application.",
  23. "name": "APPLICATION_NAME",
  24. "value": "jws-app",
  25. "required": true
  26. },
  27. {
  28. "displayName": "Custom http Route Hostname",
  29. "description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
  30. "name": "HOSTNAME_HTTP",
  31. "value": "",
  32. "required": false
  33. },
  34. {
  35. "displayName": "Custom https Route Hostname",
  36. "description": "Custom hostname for https service route. Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
  37. "name": "HOSTNAME_HTTPS",
  38. "value": "",
  39. "required": false
  40. },
  41. {
  42. "displayName": "Git Repository URL",
  43. "description": "Git source URI for application",
  44. "name": "SOURCE_REPOSITORY_URL",
  45. "value": "https://github.com/jboss-openshift/openshift-quickstarts",
  46. "required": true
  47. },
  48. {
  49. "displayName": "Git Reference",
  50. "description": "Git branch/tag reference",
  51. "name": "SOURCE_REPOSITORY_REF",
  52. "value": "1.2",
  53. "required": false
  54. },
  55. {
  56. "displayName": "Context Directory",
  57. "description": "Path within Git project to build; empty for root project directory.",
  58. "name": "CONTEXT_DIR",
  59. "value": "todolist/todolist-jdbc",
  60. "required": false
  61. },
  62. {
  63. "displayName": "Database JNDI Name",
  64. "description": "Database JNDI name used by application to resolve the datasource, e.g. jboss/datasources/mysqlDS",
  65. "name": "DB_JNDI",
  66. "value": "jboss/datasources/defaultDS",
  67. "required": false
  68. },
  69. {
  70. "displayName": "Database Name",
  71. "description": "Database name",
  72. "name": "DB_DATABASE",
  73. "value": "root",
  74. "required": true
  75. },
  76. {
  77. "displayName": "Database Volume Capacity",
  78. "description": "Size of persistent storage for database volume.",
  79. "name": "VOLUME_CAPACITY",
  80. "value": "512Mi",
  81. "required": true
  82. },
  83. {
  84. "displayName": "Secret Name",
  85. "description": "The name of the secret containing the certificate files",
  86. "name": "JWS_HTTPS_SECRET",
  87. "value": "jws-app-secret",
  88. "required": true
  89. },
  90. {
  91. "displayName": "Certificate Name",
  92. "description": "The name of the certificate file within the secret",
  93. "name": "JWS_HTTPS_CERTIFICATE",
  94. "value": "server.crt",
  95. "required": false
  96. },
  97. {
  98. "displayName": "Certificate Key Name",
  99. "description": "The name of the certificate key file within the secret",
  100. "name": "JWS_HTTPS_CERTIFICATE_KEY",
  101. "value": "server.key",
  102. "required": false
  103. },
  104. {
  105. "displayName": "Certificate Password",
  106. "description": "The certificate password",
  107. "name": "JWS_HTTPS_CERTIFICATE_PASSWORD",
  108. "value": "",
  109. "required": false
  110. },
  111. {
  112. "displayName": "Datasource Minimum Pool Size",
  113. "description": "Sets xa-pool/min-pool-size for the configured datasource.",
  114. "name": "DB_MIN_POOL_SIZE",
  115. "required": false
  116. },
  117. {
  118. "displayName": "Datasource Maximum Pool Size",
  119. "description": "Sets xa-pool/max-pool-size for the configured datasource.",
  120. "name": "DB_MAX_POOL_SIZE",
  121. "required": false
  122. },
  123. {
  124. "displayName": "Datasource Transaction Isolation",
  125. "description": "Sets transaction-isolation for the configured datasource.",
  126. "name": "DB_TX_ISOLATION",
  127. "required": false
  128. },
  129. {
  130. "displayName": "MySQL Lower Case Table Names",
  131. "description": "Sets how the table names are stored and compared.",
  132. "name": "MYSQL_LOWER_CASE_TABLE_NAMES",
  133. "required": false
  134. },
  135. {
  136. "displayName": "MySQL Maximum number of connections",
  137. "description": "The maximum permitted number of simultaneous client connections.",
  138. "name": "MYSQL_MAX_CONNECTIONS",
  139. "required": false
  140. },
  141. {
  142. "displayName": "MySQL FullText Minimum Word Length",
  143. "description": "The minimum length of the word to be included in a FULLTEXT index.",
  144. "name": "MYSQL_FT_MIN_WORD_LEN",
  145. "required": false
  146. },
  147. {
  148. "displayName": "MySQL FullText Maximum Word Length",
  149. "description": "The maximum length of the word to be included in a FULLTEXT index.",
  150. "name": "MYSQL_FT_MAX_WORD_LEN",
  151. "required": false
  152. },
  153. {
  154. "displayName": "MySQL AIO",
  155. "description": "Controls the innodb_use_native_aio setting value if the native AIO is broken.",
  156. "name": "MYSQL_AIO",
  157. "required": false
  158. },
  159. {
  160. "displayName": "Database Username",
  161. "description": "Database user name",
  162. "name": "DB_USERNAME",
  163. "from": "user[a-zA-Z0-9]{3}",
  164. "generate": "expression",
  165. "required": true
  166. },
  167. {
  168. "displayName": "Database Password",
  169. "description": "Database user password",
  170. "name": "DB_PASSWORD",
  171. "from": "[a-zA-Z0-9]{8}",
  172. "generate": "expression",
  173. "required": true
  174. },
  175. {
  176. "displayName": "JWS Admin Username",
  177. "description": "JWS Admin User",
  178. "name": "JWS_ADMIN_USERNAME",
  179. "from": "[a-zA-Z0-9]{8}",
  180. "generate": "expression",
  181. "required": true
  182. },
  183. {
  184. "displayName": "JWS Admin Password",
  185. "description": "JWS Admin Password",
  186. "name": "JWS_ADMIN_PASSWORD",
  187. "from": "[a-zA-Z0-9]{8}",
  188. "generate": "expression",
  189. "required": true
  190. },
  191. {
  192. "displayName": "Github Webhook Secret",
  193. "description": "GitHub trigger secret",
  194. "name": "GITHUB_WEBHOOK_SECRET",
  195. "from": "[a-zA-Z0-9]{8}",
  196. "generate": "expression",
  197. "required": true
  198. },
  199. {
  200. "displayName": "Generic Webhook Secret",
  201. "description": "Generic build trigger secret",
  202. "name": "GENERIC_WEBHOOK_SECRET",
  203. "from": "[a-zA-Z0-9]{8}",
  204. "generate": "expression",
  205. "required": true
  206. },
  207. {
  208. "displayName": "ImageStream Namespace",
  209. "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.",
  210. "name": "IMAGE_STREAM_NAMESPACE",
  211. "value": "openshift",
  212. "required": true
  213. },
  214. {
  215. "displayName": "Maven mirror URL",
  216. "description": "Maven mirror to use for S2I builds",
  217. "name": "MAVEN_MIRROR_URL",
  218. "value": "",
  219. "required": false
  220. },
  221. {
  222. "description": "List of directories from which archives will be copied into the deployment folder. If unspecified, all archives in /target will be copied.",
  223. "name": "ARTIFACT_DIR",
  224. "value": "",
  225. "required": false
  226. },
  227. {
  228. "displayName": "MySQL Image Stream Tag",
  229. "description": "The tag to use for the \"mysql\" image stream. Typically, this aligns with the major.minor version of MySQL.",
  230. "name": "MYSQL_IMAGE_STREAM_TAG",
  231. "value": "5.7",
  232. "required": true
  233. }
  234. ],
  235. "objects": [
  236. {
  237. "kind": "Service",
  238. "apiVersion": "v1",
  239. "spec": {
  240. "ports": [
  241. {
  242. "port": 8080,
  243. "targetPort": 8080
  244. }
  245. ],
  246. "selector": {
  247. "deploymentConfig": "${APPLICATION_NAME}"
  248. }
  249. },
  250. "metadata": {
  251. "name": "${APPLICATION_NAME}",
  252. "labels": {
  253. "application": "${APPLICATION_NAME}"
  254. },
  255. "annotations": {
  256. "description": "The web server's http port.",
  257. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-mysql\", \"kind\": \"Service\"}]"
  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. "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-mysql\", \"kind\": \"Service\"}]"
  283. }
  284. }
  285. },
  286. {
  287. "kind": "Service",
  288. "apiVersion": "v1",
  289. "spec": {
  290. "ports": [
  291. {
  292. "port": 3306,
  293. "targetPort": 3306
  294. }
  295. ],
  296. "selector": {
  297. "deploymentConfig": "${APPLICATION_NAME}-mysql"
  298. }
  299. },
  300. "metadata": {
  301. "name": "${APPLICATION_NAME}-mysql",
  302. "labels": {
  303. "application": "${APPLICATION_NAME}"
  304. },
  305. "annotations": {
  306. "description": "The database server's port."
  307. }
  308. }
  309. },
  310. {
  311. "kind": "Route",
  312. "apiVersion": "v1",
  313. "id": "${APPLICATION_NAME}-http",
  314. "metadata": {
  315. "name": "${APPLICATION_NAME}",
  316. "labels": {
  317. "application": "${APPLICATION_NAME}"
  318. },
  319. "annotations": {
  320. "description": "Route for application's http service."
  321. }
  322. },
  323. "spec": {
  324. "host": "${HOSTNAME_HTTP}",
  325. "to": {
  326. "name": "${APPLICATION_NAME}"
  327. }
  328. }
  329. },
  330. {
  331. "kind": "Route",
  332. "apiVersion": "v1",
  333. "id": "${APPLICATION_NAME}-https",
  334. "metadata": {
  335. "name": "secure-${APPLICATION_NAME}",
  336. "labels": {
  337. "application": "${APPLICATION_NAME}"
  338. },
  339. "annotations": {
  340. "description": "Route for application's https service."
  341. }
  342. },
  343. "spec": {
  344. "host": "${HOSTNAME_HTTPS}",
  345. "to": {
  346. "name": "secure-${APPLICATION_NAME}"
  347. },
  348. "tls": {
  349. "termination": "passthrough"
  350. }
  351. }
  352. },
  353. {
  354. "kind": "ImageStream",
  355. "apiVersion": "v1",
  356. "metadata": {
  357. "name": "${APPLICATION_NAME}",
  358. "labels": {
  359. "application": "${APPLICATION_NAME}"
  360. }
  361. }
  362. },
  363. {
  364. "kind": "BuildConfig",
  365. "apiVersion": "v1",
  366. "metadata": {
  367. "name": "${APPLICATION_NAME}",
  368. "labels": {
  369. "application": "${APPLICATION_NAME}"
  370. }
  371. },
  372. "spec": {
  373. "source": {
  374. "type": "Git",
  375. "git": {
  376. "uri": "${SOURCE_REPOSITORY_URL}",
  377. "ref": "${SOURCE_REPOSITORY_REF}"
  378. },
  379. "contextDir": "${CONTEXT_DIR}"
  380. },
  381. "strategy": {
  382. "type": "Source",
  383. "sourceStrategy": {
  384. "env": [
  385. {
  386. "name": "MAVEN_MIRROR_URL",
  387. "value": "${MAVEN_MIRROR_URL}"
  388. },
  389. {
  390. "name": "ARTIFACT_DIR",
  391. "value": "${ARTIFACT_DIR}"
  392. }
  393. ],
  394. "forcePull": true,
  395. "from": {
  396. "kind": "ImageStreamTag",
  397. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  398. "name": "jboss-webserver30-tomcat7-openshift:1.3"
  399. }
  400. }
  401. },
  402. "output": {
  403. "to": {
  404. "kind": "ImageStreamTag",
  405. "name": "${APPLICATION_NAME}:latest"
  406. }
  407. },
  408. "triggers": [
  409. {
  410. "type": "GitHub",
  411. "github": {
  412. "secret": "${GITHUB_WEBHOOK_SECRET}"
  413. }
  414. },
  415. {
  416. "type": "Generic",
  417. "generic": {
  418. "secret": "${GENERIC_WEBHOOK_SECRET}"
  419. }
  420. },
  421. {
  422. "type": "ImageChange",
  423. "imageChange": {}
  424. },
  425. {
  426. "type": "ConfigChange"
  427. }
  428. ]
  429. }
  430. },
  431. {
  432. "kind": "DeploymentConfig",
  433. "apiVersion": "v1",
  434. "metadata": {
  435. "name": "${APPLICATION_NAME}",
  436. "labels": {
  437. "application": "${APPLICATION_NAME}"
  438. }
  439. },
  440. "spec": {
  441. "strategy": {
  442. "type": "Recreate"
  443. },
  444. "triggers": [
  445. {
  446. "type": "ImageChange",
  447. "imageChangeParams": {
  448. "automatic": true,
  449. "containerNames": [
  450. "${APPLICATION_NAME}"
  451. ],
  452. "from": {
  453. "kind": "ImageStreamTag",
  454. "name": "${APPLICATION_NAME}:latest"
  455. }
  456. }
  457. },
  458. {
  459. "type": "ConfigChange"
  460. }
  461. ],
  462. "replicas": 1,
  463. "selector": {
  464. "deploymentConfig": "${APPLICATION_NAME}"
  465. },
  466. "template": {
  467. "metadata": {
  468. "name": "${APPLICATION_NAME}",
  469. "labels": {
  470. "deploymentConfig": "${APPLICATION_NAME}",
  471. "application": "${APPLICATION_NAME}"
  472. }
  473. },
  474. "spec": {
  475. "serviceAccountName": "jws-service-account",
  476. "terminationGracePeriodSeconds": 60,
  477. "containers": [
  478. {
  479. "name": "${APPLICATION_NAME}",
  480. "image": "${APPLICATION_NAME}",
  481. "imagePullPolicy": "Always",
  482. "readinessProbe": {
  483. "exec": {
  484. "command": [
  485. "/bin/bash",
  486. "-c",
  487. "curl --noproxy '*' -s -u ${JWS_ADMIN_USERNAME}:${JWS_ADMIN_PASSWORD} 'http://localhost:8080/manager/jmxproxy/?get=Catalina%3Atype%3DServer&att=stateName' |grep -iq 'stateName *= *STARTED'"
  488. ]
  489. }
  490. },
  491. "volumeMounts": [
  492. {
  493. "name": "jws-certificate-volume",
  494. "mountPath": "/etc/jws-secret-volume",
  495. "readOnly": true
  496. }
  497. ],
  498. "ports": [
  499. {
  500. "name": "jolokia",
  501. "containerPort": 8778,
  502. "protocol": "TCP"
  503. },
  504. {
  505. "name": "http",
  506. "containerPort": 8080,
  507. "protocol": "TCP"
  508. },
  509. {
  510. "name": "https",
  511. "containerPort": 8443,
  512. "protocol": "TCP"
  513. }
  514. ],
  515. "env": [
  516. {
  517. "name": "DB_SERVICE_PREFIX_MAPPING",
  518. "value": "${APPLICATION_NAME}-mysql=DB"
  519. },
  520. {
  521. "name": "DB_JNDI",
  522. "value": "${DB_JNDI}"
  523. },
  524. {
  525. "name": "DB_USERNAME",
  526. "value": "${DB_USERNAME}"
  527. },
  528. {
  529. "name": "DB_PASSWORD",
  530. "value": "${DB_PASSWORD}"
  531. },
  532. {
  533. "name": "DB_DATABASE",
  534. "value": "${DB_DATABASE}"
  535. },
  536. {
  537. "name": "DB_MIN_POOL_SIZE",
  538. "value": "${DB_MIN_POOL_SIZE}"
  539. },
  540. {
  541. "name": "DB_MAX_POOL_SIZE",
  542. "value": "${DB_MAX_POOL_SIZE}"
  543. },
  544. {
  545. "name": "DB_TX_ISOLATION",
  546. "value": "${DB_TX_ISOLATION}"
  547. },
  548. {
  549. "name": "JWS_HTTPS_CERTIFICATE_DIR",
  550. "value": "/etc/jws-secret-volume"
  551. },
  552. {
  553. "name": "JWS_HTTPS_CERTIFICATE",
  554. "value": "${JWS_HTTPS_CERTIFICATE}"
  555. },
  556. {
  557. "name": "JWS_HTTPS_CERTIFICATE_KEY",
  558. "value": "${JWS_HTTPS_CERTIFICATE_KEY}"
  559. },
  560. {
  561. "name": "JWS_HTTPS_CERTIFICATE_PASSWORD",
  562. "value": "${JWS_HTTPS_CERTIFICATE_PASSWORD}"
  563. },
  564. {
  565. "name": "JWS_ADMIN_USERNAME",
  566. "value": "${JWS_ADMIN_USERNAME}"
  567. },
  568. {
  569. "name": "JWS_ADMIN_PASSWORD",
  570. "value": "${JWS_ADMIN_PASSWORD}"
  571. }
  572. ]
  573. }
  574. ],
  575. "volumes": [
  576. {
  577. "name": "jws-certificate-volume",
  578. "secret": {
  579. "secretName": "${JWS_HTTPS_SECRET}"
  580. }
  581. }
  582. ]
  583. }
  584. }
  585. }
  586. },
  587. {
  588. "kind": "DeploymentConfig",
  589. "apiVersion": "v1",
  590. "metadata": {
  591. "name": "${APPLICATION_NAME}-mysql",
  592. "labels": {
  593. "application": "${APPLICATION_NAME}"
  594. }
  595. },
  596. "spec": {
  597. "strategy": {
  598. "type": "Recreate"
  599. },
  600. "triggers": [
  601. {
  602. "type": "ImageChange",
  603. "imageChangeParams": {
  604. "automatic": true,
  605. "containerNames": [
  606. "${APPLICATION_NAME}-mysql"
  607. ],
  608. "from": {
  609. "kind": "ImageStreamTag",
  610. "namespace": "${IMAGE_STREAM_NAMESPACE}",
  611. "name": "mysql:${MYSQL_IMAGE_STREAM_TAG}"
  612. }
  613. }
  614. },
  615. {
  616. "type": "ConfigChange"
  617. }
  618. ],
  619. "replicas": 1,
  620. "selector": {
  621. "deploymentConfig": "${APPLICATION_NAME}-mysql"
  622. },
  623. "template": {
  624. "metadata": {
  625. "name": "${APPLICATION_NAME}-mysql",
  626. "labels": {
  627. "deploymentConfig": "${APPLICATION_NAME}-mysql",
  628. "application": "${APPLICATION_NAME}"
  629. }
  630. },
  631. "spec": {
  632. "terminationGracePeriodSeconds": 60,
  633. "containers": [
  634. {
  635. "name": "${APPLICATION_NAME}-mysql",
  636. "image": "mysql",
  637. "ports": [
  638. {
  639. "containerPort": 3306,
  640. "protocol": "TCP"
  641. }
  642. ],
  643. "volumeMounts": [
  644. {
  645. "mountPath": "/var/lib/mysql/data",
  646. "name": "${APPLICATION_NAME}-mysql-pvol"
  647. }
  648. ],
  649. "env": [
  650. {
  651. "name": "MYSQL_USER",
  652. "value": "${DB_USERNAME}"
  653. },
  654. {
  655. "name": "MYSQL_PASSWORD",
  656. "value": "${DB_PASSWORD}"
  657. },
  658. {
  659. "name": "MYSQL_DATABASE",
  660. "value": "${DB_DATABASE}"
  661. },
  662. {
  663. "name": "MYSQL_LOWER_CASE_TABLE_NAMES",
  664. "value": "${MYSQL_LOWER_CASE_TABLE_NAMES}"
  665. },
  666. {
  667. "name": "MYSQL_MAX_CONNECTIONS",
  668. "value": "${MYSQL_MAX_CONNECTIONS}"
  669. },
  670. {
  671. "name": "MYSQL_FT_MIN_WORD_LEN",
  672. "value": "${MYSQL_FT_MIN_WORD_LEN}"
  673. },
  674. {
  675. "name": "MYSQL_FT_MAX_WORD_LEN",
  676. "value": "${MYSQL_FT_MAX_WORD_LEN}"
  677. },
  678. {
  679. "name": "MYSQL_AIO",
  680. "value": "${MYSQL_AIO}"
  681. }
  682. ]
  683. }
  684. ],
  685. "volumes": [
  686. {
  687. "name": "${APPLICATION_NAME}-mysql-pvol",
  688. "persistentVolumeClaim": {
  689. "claimName": "${APPLICATION_NAME}-mysql-claim"
  690. }
  691. }
  692. ]
  693. }
  694. }
  695. }
  696. },
  697. {
  698. "apiVersion": "v1",
  699. "kind": "PersistentVolumeClaim",
  700. "metadata": {
  701. "name": "${APPLICATION_NAME}-mysql-claim",
  702. "labels": {
  703. "application": "${APPLICATION_NAME}"
  704. }
  705. },
  706. "spec": {
  707. "accessModes": [
  708. "ReadWriteOnce"
  709. ],
  710. "resources": {
  711. "requests": {
  712. "storage": "${VOLUME_CAPACITY}"
  713. }
  714. }
  715. }
  716. }
  717. ]
  718. }