values.schema.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. {
  2. "$schema": "http://json-schema.org/schema#",
  3. "type": "object",
  4. "title": "Values",
  5. "additionalProperties": false,
  6. "properties": {
  7. "enabled": {
  8. "description": "Usually used when using Opentelemetry-demo as a subchart.",
  9. "type": "boolean"
  10. },
  11. "global": {
  12. "type": "object"
  13. },
  14. "default": {
  15. "$ref": "#/definitions/Default"
  16. },
  17. "serviceAccount": {
  18. "type": "object",
  19. "additionalProperties": false,
  20. "properties": {
  21. "create": {
  22. "type": "boolean"
  23. },
  24. "annotations": {
  25. "type": "object"
  26. },
  27. "name": {
  28. "type": "string"
  29. }
  30. },
  31. "required": ["create"]
  32. },
  33. "components": {
  34. "$ref": "#/definitions/Components"
  35. },
  36. "opentelemetry-collector": {
  37. "type": "object"
  38. },
  39. "jaeger": {
  40. "type": "object"
  41. },
  42. "prometheus": {
  43. "type": "object"
  44. },
  45. "grafana": {
  46. "type": "object"
  47. }
  48. },
  49. "required": [
  50. "components",
  51. "serviceAccount"
  52. ],
  53. "definitions": {
  54. "Components": {
  55. "type": "object",
  56. "additionalProperties": false,
  57. "properties": {
  58. "accountingService": {
  59. "$ref": "#/definitions/Component"
  60. },
  61. "adService": {
  62. "$ref": "#/definitions/Component"
  63. },
  64. "cartService": {
  65. "$ref": "#/definitions/Component"
  66. },
  67. "checkoutService": {
  68. "$ref": "#/definitions/Component"
  69. },
  70. "currencyService": {
  71. "$ref": "#/definitions/Component"
  72. },
  73. "emailService": {
  74. "$ref": "#/definitions/Component"
  75. },
  76. "featureflagService": {
  77. "$ref": "#/definitions/Component"
  78. },
  79. "frauddetectionService": {
  80. "$ref": "#/definitions/Component"
  81. },
  82. "frontend": {
  83. "$ref": "#/definitions/Component"
  84. },
  85. "frontendProxy": {
  86. "$ref": "#/definitions/Component"
  87. },
  88. "loadgenerator": {
  89. "$ref": "#/definitions/Component"
  90. },
  91. "paymentService": {
  92. "$ref": "#/definitions/Component"
  93. },
  94. "productCatalogService": {
  95. "$ref": "#/definitions/Component"
  96. },
  97. "quoteService": {
  98. "$ref": "#/definitions/Component"
  99. },
  100. "recommendationService": {
  101. "$ref": "#/definitions/Component"
  102. },
  103. "shippingService": {
  104. "$ref": "#/definitions/Component"
  105. },
  106. "ffsPostgres": {
  107. "$ref": "#/definitions/Component"
  108. },
  109. "kafka": {
  110. "$ref": "#/definitions/Component"
  111. },
  112. "redis": {
  113. "$ref": "#/definitions/Component"
  114. }
  115. },
  116. "title": "Components"
  117. },
  118. "Component": {
  119. "type": "object",
  120. "additionalProperties": false,
  121. "properties": {
  122. "enabled": {
  123. "type": "boolean"
  124. },
  125. "useDefault": {
  126. "type": "object",
  127. "additionalProperties": false,
  128. "properties": {
  129. "env": {
  130. "type": "boolean",
  131. "additionalProperties": false
  132. }
  133. },
  134. "required": [
  135. "env"
  136. ]
  137. },
  138. "imageOverride": {
  139. "$ref": "#/definitions/Image"
  140. },
  141. "replicas": {
  142. "type": "integer"
  143. },
  144. "service": {
  145. "$ref": "#/definitions/Service"
  146. },
  147. "ports": {
  148. "type": "array",
  149. "items": {
  150. "$ref": "#/definitions/Port"
  151. }
  152. },
  153. "env": {
  154. "type": "array",
  155. "items": {
  156. "$ref": "#/definitions/Env"
  157. }
  158. },
  159. "envOverrides": {
  160. "type": "array",
  161. "items": {
  162. "$ref": "#/definitions/Env"
  163. }
  164. },
  165. "command": {
  166. "type": "array",
  167. "items": {}
  168. },
  169. "configuration": {
  170. "type": "object"
  171. },
  172. "livenessProbe": {
  173. "$ref": "#/definitions/LivenessProbe"
  174. },
  175. "schedulingRules": {
  176. "$ref": "#/definitions/SchedulingRules"
  177. },
  178. "podAnnotations": {
  179. "type": "object"
  180. },
  181. "resources": {
  182. "$ref": "#/definitions/ContainerResources"
  183. },
  184. "securityContext": {
  185. "$ref": "#/definitions/SecurityContext"
  186. },
  187. "ingress": {
  188. "$ref": "#/definitions/Ingress"
  189. },
  190. "initContainers": {
  191. "type": "array",
  192. "properties": {
  193. "name": {
  194. "type": "string"
  195. },
  196. "image": {
  197. "type": "string"
  198. },
  199. "command": {
  200. "type": "object"
  201. }
  202. }
  203. }
  204. },
  205. "required": [
  206. "enabled",
  207. "useDefault"
  208. ],
  209. "title": "Service"
  210. },
  211. "Env": {
  212. "type": "object",
  213. "additionalProperties": false,
  214. "properties": {
  215. "name": {
  216. "type": "string"
  217. },
  218. "value": {
  219. "type": "string"
  220. },
  221. "valueFrom": {
  222. "type": "object",
  223. "additionalProperties": false,
  224. "properties": {
  225. "configMapKeyRef": {
  226. "$ref": "#/definitions/ConfigMapKeyRef"
  227. },
  228. "fieldRef": {
  229. "$ref": "#/definitions/FieldRef"
  230. },
  231. "resourceFieldRef": {
  232. "$ref": "#/definitions/ResourceFieldRef"
  233. },
  234. "secretKeyRef": {
  235. "$ref": "#/definitions/SecretKeyRef"
  236. }
  237. }
  238. }
  239. },
  240. "required": [
  241. "name"
  242. ],
  243. "title": "Env"
  244. },
  245. "Default": {
  246. "type": "object",
  247. "additionalProperties": false,
  248. "properties": {
  249. "enabled": {
  250. "type": "boolean"
  251. },
  252. "env": {
  253. "type": "array",
  254. "items": {
  255. "$ref": "#/definitions/Env"
  256. }
  257. },
  258. "envOverrides": {
  259. "type": "array",
  260. "items": {
  261. "$ref": "#/definitions/Env"
  262. }
  263. },
  264. "replicas": {
  265. "type": "integer"
  266. },
  267. "image": {
  268. "$ref": "#/definitions/Image"
  269. },
  270. "schedulingRules": {
  271. "$ref": "#/definitions/SchedulingRules"
  272. },
  273. "securityContext": {
  274. "type": "object"
  275. }
  276. },
  277. "required": [
  278. "image",
  279. "schedulingRules",
  280. "securityContext"
  281. ],
  282. "title": "Default"
  283. },
  284. "ConfigMapKeyRef": {
  285. "type": "object",
  286. "additionalProperties": false,
  287. "properties": {
  288. "key": {
  289. "type": "string"
  290. },
  291. "name": {
  292. "type": "string"
  293. },
  294. "optional": {
  295. "type": "boolean"
  296. }
  297. },
  298. "required": [
  299. "key"
  300. ],
  301. "title": "ConfigMapKeyRef"
  302. },
  303. "FieldRef": {
  304. "type": "object",
  305. "additionalProperties": false,
  306. "properties": {
  307. "fieldPath": {
  308. "type": "string"
  309. },
  310. "apiVersion": {
  311. "type": "string"
  312. }
  313. },
  314. "required": [
  315. "fieldPath"
  316. ],
  317. "title": "FieldRef"
  318. },
  319. "ResourceFieldRef": {
  320. "type": "object",
  321. "additionalProperties": false,
  322. "properties": {
  323. "resource": {
  324. "type": "string"
  325. },
  326. "containerName": {
  327. "type": "string"
  328. },
  329. "divisor": {
  330. "type": "integer"
  331. }
  332. },
  333. "required": [
  334. "resource"
  335. ],
  336. "title": "ResourceFieldRef"
  337. },
  338. "SecretKeyRef": {
  339. "type": "object",
  340. "additionalProperties": false,
  341. "properties": {
  342. "key": {
  343. "type": "string"
  344. },
  345. "name": {
  346. "type": "string"
  347. },
  348. "optional": {
  349. "type": "boolean"
  350. }
  351. },
  352. "required": [
  353. "key"
  354. ]
  355. },
  356. "Service": {
  357. "type": "object",
  358. "additionalProperties": false,
  359. "properties": {
  360. "type": {
  361. "type": "string"
  362. },
  363. "port": {
  364. "type": "integer"
  365. },
  366. "nodePort": {
  367. "type": "integer"
  368. },
  369. "annotations": {
  370. "type": "object"
  371. }
  372. },
  373. "title": "Service"
  374. },
  375. "Port": {
  376. "type": "object",
  377. "additionalProperties": false,
  378. "properties": {
  379. "name": {
  380. "type": "string"
  381. },
  382. "value": {
  383. "type": "integer"
  384. }
  385. },
  386. "required": [
  387. "name",
  388. "value"
  389. ],
  390. "title": "Port"
  391. },
  392. "Image": {
  393. "type": "object",
  394. "additionalProperties": false,
  395. "properties": {
  396. "repository": {
  397. "type": "string"
  398. },
  399. "tag": {
  400. "type": "string"
  401. },
  402. "pullPolicy": {
  403. "type": "string"
  404. },
  405. "pullSecrets": {
  406. "type": "array",
  407. "items": {}
  408. }
  409. },
  410. "title": "Image"
  411. },
  412. "ContainerResources": {
  413. "type": "object",
  414. "properties": {
  415. "limits": {
  416. "$ref": "#/definitions/ContainerResourceDef"
  417. },
  418. "requests": {
  419. "$ref": "#/definitions/ContainerResourceDef"
  420. }
  421. }
  422. },
  423. "ContainerResourceDef": {
  424. "type": "object",
  425. "properties": {
  426. "cpu": {
  427. "type": "string"
  428. },
  429. "memory": {
  430. "type": "string"
  431. }
  432. }
  433. },
  434. "SchedulingRules": {
  435. "title": "SchedulingRules",
  436. "type": "object",
  437. "additionalProperties": false,
  438. "properties": {
  439. "nodeSelector": {
  440. "type": "object"
  441. },
  442. "affinity": {
  443. "type": "object"
  444. },
  445. "tolerations": {
  446. "type": "array",
  447. "items": {}
  448. }
  449. }
  450. },
  451. "Ingress": {
  452. "type": "object",
  453. "additionalProperties": false,
  454. "properties": {
  455. "enabled": {
  456. "type": "boolean"
  457. },
  458. "ingressClassName": {
  459. "type": "string"
  460. },
  461. "annotations": {
  462. "type": "object"
  463. },
  464. "hosts": {
  465. "type": "array",
  466. "items": {
  467. "type": "object",
  468. "additionalProperties": false,
  469. "properties": {
  470. "host": {
  471. "type": "string"
  472. },
  473. "paths": {
  474. "type": "array",
  475. "items": {
  476. "type": "object",
  477. "additionalProperties": false,
  478. "properties": {
  479. "path": {
  480. "type": "string"
  481. },
  482. "pathType": {
  483. "type": "string",
  484. "enum": [
  485. "Exact",
  486. "Prefix",
  487. "ImplementationSpecific"
  488. ]
  489. },
  490. "port": {
  491. "type": "integer"
  492. }
  493. },
  494. "required": [
  495. "path",
  496. "pathType",
  497. "port"
  498. ]
  499. }
  500. }
  501. },
  502. "required": [
  503. "paths"
  504. ]
  505. }
  506. },
  507. "tls": {
  508. "type": "array",
  509. "items": {
  510. "type": "object",
  511. "additionalProperties": false,
  512. "properties": {
  513. "secretName": {
  514. "type": "string"
  515. },
  516. "hosts": {
  517. "type": "array",
  518. "items": {
  519. "type": "string"
  520. }
  521. }
  522. }
  523. }
  524. },
  525. "additionalIngresses": {
  526. "type": "array",
  527. "items": {
  528. "type": "object",
  529. "additionalProperties": false,
  530. "properties": {
  531. "name": {
  532. "type": "string"
  533. },
  534. "ingressClassName": {
  535. "type": "string"
  536. },
  537. "annotations": {
  538. "type": "object"
  539. },
  540. "hosts": {
  541. "type": "array",
  542. "items": {
  543. "type": "object",
  544. "additionalProperties": false,
  545. "properties": {
  546. "host": {
  547. "type": "string"
  548. },
  549. "paths": {
  550. "type": "array",
  551. "items": {
  552. "type": "object",
  553. "additionalProperties": false,
  554. "properties": {
  555. "path": {
  556. "type": "string"
  557. },
  558. "pathType": {
  559. "type": "string",
  560. "enum": [
  561. "Exact",
  562. "Prefix",
  563. "ImplementationSpecific"
  564. ]
  565. },
  566. "port": {
  567. "type": "integer"
  568. }
  569. },
  570. "required": [
  571. "path",
  572. "pathType",
  573. "port"
  574. ]
  575. }
  576. }
  577. },
  578. "required": [
  579. "paths"
  580. ]
  581. }
  582. },
  583. "tls": {
  584. "type": "array",
  585. "items": {
  586. "type": "object",
  587. "additionalProperties": false,
  588. "properties": {
  589. "secretName": {
  590. "type": "string"
  591. },
  592. "hosts": {
  593. "type": "array",
  594. "items": {
  595. "type": "string"
  596. }
  597. }
  598. }
  599. }
  600. }
  601. },
  602. "required": [
  603. "name"
  604. ]
  605. }
  606. }
  607. },
  608. "required": [
  609. "enabled"
  610. ]
  611. },
  612. "SecurityContext": {
  613. "type": "object",
  614. "additionalProperties": false,
  615. "properties": {
  616. "allowPrivilegeEscalation": {
  617. "type": "boolean"
  618. },
  619. "capabilities": {
  620. "type": "object",
  621. "additionalProperties": false,
  622. "properties": {
  623. "add": {
  624. "type": "array",
  625. "items": {
  626. "type": "string"
  627. }
  628. },
  629. "drop": {
  630. "type": "array",
  631. "items": {
  632. "type": "string"
  633. }
  634. }
  635. }
  636. },
  637. "privileged": {
  638. "type": "boolean"
  639. },
  640. "procMount": {
  641. "type": "string"
  642. },
  643. "readOnlyRootFilesystem": {
  644. "type": "boolean"
  645. },
  646. "runAsGroup": {
  647. "type": "integer"
  648. },
  649. "runAsNonRoot": {
  650. "type": "boolean"
  651. },
  652. "runAsUser": {
  653. "type": "integer"
  654. },
  655. "seLinuxOptions": {
  656. "type": "object",
  657. "additionalProperties": false,
  658. "properties": {
  659. "level": {
  660. "type": "string"
  661. },
  662. "role": {
  663. "type": "string"
  664. },
  665. "type": {
  666. "type": "string"
  667. },
  668. "user": {
  669. "type": "string"
  670. }
  671. },
  672. "privileged": {
  673. "type": "boolean"
  674. }
  675. }
  676. }
  677. },
  678. "LivenessProbe": {
  679. "type": "object",
  680. "additionalProperties": false,
  681. "required": [
  682. "httpGet"
  683. ],
  684. "properties": {
  685. "httpGet": {
  686. "type": "object",
  687. "required": [
  688. "port"
  689. ],
  690. "additionalProperties": false,
  691. "properties": {
  692. "path": {
  693. "type": "string"
  694. },
  695. "host": {
  696. "type": "string"
  697. },
  698. "scheme": {
  699. "type": "string"
  700. },
  701. "httpHeaders": {
  702. "type": "array",
  703. "items": {
  704. "type": "object",
  705. "required": [
  706. "name",
  707. "value"
  708. ],
  709. "properties": {
  710. "name": {
  711. "type": "string"
  712. },
  713. "value": {
  714. "type": "string"
  715. }
  716. }
  717. }
  718. },
  719. "port": {
  720. "type": "integer"
  721. }
  722. }
  723. },
  724. "initialDelaySeconds": {
  725. "type": "integer"
  726. },
  727. "timeoutSeconds": {
  728. "type": "integer"
  729. },
  730. "periodSeconds": {
  731. "type": "integer"
  732. },
  733. "successThreshold": {
  734. "type": "integer"
  735. },
  736. "failureThreshold": {
  737. "type": "integer"
  738. }
  739. }
  740. }
  741. }
  742. }