values.schema.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930
  1. {
  2. "$schema": "http://json-schema.org/schema#",
  3. "$defs": {
  4. "intOrString": {
  5. "anyOf": [
  6. {
  7. "type": "string"
  8. },
  9. {
  10. "type": "integer"
  11. }
  12. ]
  13. }
  14. },
  15. "type": "object",
  16. "title": "Values",
  17. "additionalProperties": false,
  18. "properties": {
  19. "enabled": {
  20. "description": "Usually used when using Opentelemetry-collector as a subchart.",
  21. "type": "boolean"
  22. },
  23. "global": {
  24. "type": "object"
  25. },
  26. "nameOverride": {
  27. "description": "Override name of the chart used in Kubernetes object names.",
  28. "type": "string"
  29. },
  30. "fullnameOverride": {
  31. "description": "Override fully qualified app name.",
  32. "type": "string"
  33. },
  34. "mode": {
  35. "type": "string",
  36. "enum": ["daemonset", "deployment", "statefulset", ""]
  37. },
  38. "namespaceOverride": {
  39. "type": "string",
  40. "description": "Name of the namespace to deploy the resources into."
  41. },
  42. "presets": {
  43. "type": "object",
  44. "additionalProperties": false,
  45. "properties": {
  46. "logsCollection": {
  47. "type": "object",
  48. "additionalProperties": false,
  49. "properties": {
  50. "enabled": {
  51. "description": "Specifies whether the collector should collect logs.",
  52. "type": "boolean"
  53. },
  54. "includeCollectorLogs": {
  55. "description": "Specifies whether the collector should collect its own logs.",
  56. "type": "boolean"
  57. },
  58. "storeCheckpoints": {
  59. "description": "Specifies whether logs checkpoints should be stored in /var/lib/otelcol/ host directory.",
  60. "type": "boolean"
  61. },
  62. "maxRecombineLogSize": {
  63. "description": "Specifies the max recombine log size.",
  64. "type": "integer"
  65. }
  66. }
  67. },
  68. "hostMetrics": {
  69. "type": "object",
  70. "additionalProperties": false,
  71. "properties": {
  72. "enabled": {
  73. "description": "Specifies whether the collector should collect host metrics.",
  74. "type": "boolean"
  75. }
  76. }
  77. },
  78. "kubeletMetrics": {
  79. "type": "object",
  80. "additionalProperties": false,
  81. "properties": {
  82. "enabled": {
  83. "description": "Specifies whether the collector should collect kubelet metrics.",
  84. "type": "boolean"
  85. }
  86. }
  87. },
  88. "kubernetesAttributes": {
  89. "type": "object",
  90. "additionalProperties": false,
  91. "properties": {
  92. "enabled": {
  93. "description": "Specifies whether the collector should add Kubernetes metdata to resource attributes.",
  94. "type": "boolean"
  95. },
  96. "extractAllPodLabels": {
  97. "description": "Specifies whether the k8sattributes processor should extract all pod labels.",
  98. "type": "boolean"
  99. },
  100. "extractAllPodAnnotations": {
  101. "description": "Specifies whether the k8sattributes processor should extract all pod annotations.",
  102. "type": "boolean"
  103. }
  104. }
  105. },
  106. "kubernetesEvents": {
  107. "type": "object",
  108. "additionalProperties": false,
  109. "properties": {
  110. "enabled": {
  111. "description": "Specifies whether the collector should collect Kubernetes objects.",
  112. "type": "boolean"
  113. }
  114. }
  115. },
  116. "clusterMetrics": {
  117. "type": "object",
  118. "additionalProperties": false,
  119. "properties": {
  120. "enabled": {
  121. "description": "Specifies whether the collector should collect cluster metrics.",
  122. "type": "boolean"
  123. }
  124. }
  125. }
  126. }
  127. },
  128. "configMap": {
  129. "type": "object",
  130. "properties": {
  131. "create": {
  132. "description": "Specifies whether a configMap should be created (true by default).",
  133. "type": "boolean"
  134. },
  135. "existingName": {
  136. "description": "Specifies an existing configMap to be mounted to the pod",
  137. "type": "string"
  138. }
  139. }
  140. },
  141. "config": {
  142. "description": "Configuration that applies to both standalone and agent collector. Overwritable by standalone and agent specific configs.",
  143. "type": "object"
  144. },
  145. "image": {
  146. "description": "Image use in both standalone and agent configs",
  147. "type": "object",
  148. "additionalProperties": false,
  149. "properties": {
  150. "registry": {
  151. "type": "string"
  152. },
  153. "repository": {
  154. "type": "string"
  155. },
  156. "tag": {
  157. "type": "string"
  158. },
  159. "digest": {
  160. "type": "string"
  161. },
  162. "pullPolicy": {
  163. "type": "string",
  164. "enum": ["IfNotPresent", "Always", "Never"]
  165. }
  166. }
  167. },
  168. "imagePullSecrets": {
  169. "type": "array",
  170. "items": {
  171. "type": "object"
  172. }
  173. },
  174. "command": {
  175. "description": "OpenTelemetry Collector executable",
  176. "type": "object",
  177. "additionalProperties": false,
  178. "properties": {
  179. "name": {
  180. "type": "string"
  181. },
  182. "extraArgs": {
  183. "type": "array",
  184. "items": {
  185. "type": "string"
  186. }
  187. }
  188. }
  189. },
  190. "serviceAccount": {
  191. "type": "object",
  192. "additionalProperties": false,
  193. "properties": {
  194. "create": {
  195. "type": "boolean"
  196. },
  197. "annotations": {
  198. "type": "object"
  199. },
  200. "name": {
  201. "type": "string"
  202. }
  203. },
  204. "required": ["create"]
  205. },
  206. "clusterRole": {
  207. "type": "object",
  208. "additionalProperties": false,
  209. "properties": {
  210. "create": {
  211. "type": "boolean"
  212. },
  213. "annotations": {
  214. "type": "object"
  215. },
  216. "name": {
  217. "type": "string"
  218. },
  219. "rules": {
  220. "type": "array",
  221. "items": {
  222. "type": "object"
  223. }
  224. },
  225. "clusterRoleBinding": {
  226. "type": "object",
  227. "additionalProperties": false,
  228. "properties": {
  229. "annotations": {
  230. "type": "object"
  231. },
  232. "name": {
  233. "type": "string"
  234. }
  235. }
  236. }
  237. },
  238. "required": ["create"]
  239. },
  240. "podSecurityContext": {
  241. "type": "object"
  242. },
  243. "securityContext": {
  244. "type": "object"
  245. },
  246. "nodeSelector": {
  247. "type": "object"
  248. },
  249. "tolerations": {
  250. "type": "array",
  251. "items": {
  252. "type": "object"
  253. }
  254. },
  255. "affinity": {
  256. "type": "object"
  257. },
  258. "topologySpreadConstraints": {
  259. "type": "array",
  260. "items": {
  261. "type": "object"
  262. }
  263. },
  264. "priorityClassName": {
  265. "type": "string"
  266. },
  267. "extraContainers": {
  268. "type": "array",
  269. "items": {
  270. "type": "object",
  271. "additionalProperties": true,
  272. "properties": {
  273. "name": {
  274. "type": "string"
  275. }
  276. },
  277. "required": ["name"]
  278. }
  279. },
  280. "initContainers": {
  281. "type": "array",
  282. "items": {
  283. "type": "object",
  284. "additionalProperties": true,
  285. "properties": {
  286. "name": {
  287. "type": "string"
  288. }
  289. },
  290. "required": ["name"]
  291. }
  292. },
  293. "extraEnvs": {
  294. "type": "array",
  295. "items": {
  296. "type": "object"
  297. }
  298. },
  299. "extraEnvsFrom": {
  300. "type": "array",
  301. "items": {
  302. "type": "object"
  303. }
  304. },
  305. "extraVolumes": {
  306. "type": "array",
  307. "items": {
  308. "type": "object"
  309. }
  310. },
  311. "extraVolumeMounts": {
  312. "type": "array",
  313. "items": {
  314. "type": "object"
  315. }
  316. },
  317. "ports": {
  318. "type": "object",
  319. "patternProperties": {
  320. ".*": {
  321. "type": "object",
  322. "additionalProperties": false,
  323. "properties": {
  324. "enabled": {
  325. "type": "boolean"
  326. },
  327. "containerPort": {
  328. "type": "integer"
  329. },
  330. "servicePort": {
  331. "type": "integer"
  332. },
  333. "hostPort": {
  334. "type": "integer"
  335. },
  336. "nodePort": {
  337. "type": "integer"
  338. },
  339. "protocol": {
  340. "type": "string"
  341. },
  342. "appProtocol": {
  343. "type": "string"
  344. }
  345. },
  346. "required": ["enabled"]
  347. }
  348. }
  349. },
  350. "resources": {
  351. "type": "object",
  352. "additionalProperties": false,
  353. "properties": {
  354. "limits": {
  355. "type": "object",
  356. "additionalProperties": false,
  357. "properties": {
  358. "cpu": {
  359. "type": ["string", "integer"]
  360. },
  361. "ephemeral-storage": {
  362. "type": "string"
  363. },
  364. "memory": {
  365. "type": "string"
  366. }
  367. }
  368. },
  369. "requests": {
  370. "type": "object",
  371. "additionalProperties": false,
  372. "properties": {
  373. "cpu": {
  374. "type": ["string", "integer"]
  375. },
  376. "ephemeral-storage": {
  377. "type": "string"
  378. },
  379. "memory": {
  380. "type": "string"
  381. }
  382. }
  383. }
  384. }
  385. },
  386. "lifecycleHooks": {
  387. "type": "object",
  388. "additionalProperties": false,
  389. "properties": {
  390. "postStart": {
  391. "type": "object",
  392. "additionalProperties": false,
  393. "properties": {
  394. "exec": {
  395. "type": "object",
  396. "additionalProperties": false,
  397. "properties": {
  398. "command": {
  399. "type": "array",
  400. "items": {
  401. "type": "string"
  402. }
  403. }
  404. }
  405. },
  406. "httpGet": {
  407. "type": "object",
  408. "additionalProperties": false,
  409. "properties": {
  410. "host": {
  411. "type": "string"
  412. },
  413. "httpHeaders": {
  414. "type": "array"
  415. },
  416. "path": {
  417. "type": "string"
  418. },
  419. "port": {
  420. "type": "integer"
  421. },
  422. "scheme": {
  423. "type": "string"
  424. }
  425. }
  426. }
  427. },
  428. "oneOf": [
  429. {
  430. "required": ["exec"]
  431. },
  432. {
  433. "required": ["httpGet"]
  434. }
  435. ]
  436. },
  437. "preStop": {
  438. "type": "object",
  439. "additionalProperties": false,
  440. "properties": {
  441. "exec": {
  442. "type": "object",
  443. "additionalProperties": false,
  444. "properties": {
  445. "command": {
  446. "type": "array",
  447. "items": {
  448. "type": "string"
  449. }
  450. }
  451. }
  452. },
  453. "httpGet": {
  454. "type": "object",
  455. "additionalProperties": false,
  456. "properties": {
  457. "host": {
  458. "type": "string"
  459. },
  460. "httpHeaders": {
  461. "type": "array"
  462. },
  463. "path": {
  464. "type": "string"
  465. },
  466. "port": {
  467. "type": "integer"
  468. },
  469. "scheme": {
  470. "type": "string"
  471. }
  472. }
  473. }
  474. },
  475. "oneOf": [
  476. {
  477. "required": ["exec"]
  478. },
  479. {
  480. "required": ["httpGet"]
  481. }
  482. ]
  483. }
  484. }
  485. },
  486. "livenessProbe": {
  487. "type": "object",
  488. "additionalProperties": false,
  489. "properties": {
  490. "initialDelaySeconds": {
  491. "type": "integer"
  492. },
  493. "periodSeconds": {
  494. "type": "integer"
  495. },
  496. "timeoutSeconds": {
  497. "type": "integer"
  498. },
  499. "failureThreshold": {
  500. "type": "integer"
  501. },
  502. "terminationGracePeriodSeconds": {
  503. "type": "integer"
  504. },
  505. "httpGet": {
  506. "type": "object",
  507. "additionalProperties": false,
  508. "properties": {
  509. "port": {
  510. "type": "integer"
  511. },
  512. "path": {
  513. "type": "string"
  514. }
  515. }
  516. }
  517. }
  518. },
  519. "readinessProbe": {
  520. "type": "object",
  521. "additionalProperties": false,
  522. "properties": {
  523. "initialDelaySeconds": {
  524. "type": "integer"
  525. },
  526. "periodSeconds": {
  527. "type": "integer"
  528. },
  529. "timeoutSeconds": {
  530. "type": "integer"
  531. },
  532. "successThreshold": {
  533. "type": "integer"
  534. },
  535. "failureThreshold": {
  536. "type": "integer"
  537. },
  538. "httpGet": {
  539. "type": "object",
  540. "additionalProperties": false,
  541. "properties": {
  542. "port": {
  543. "type": "integer"
  544. },
  545. "path": {
  546. "type": "string"
  547. }
  548. }
  549. }
  550. }
  551. },
  552. "podAnnotations": {
  553. "type": "object"
  554. },
  555. "podLabels": {
  556. "type": "object"
  557. },
  558. "additionalLabels": {
  559. "type": "object"
  560. },
  561. "hostNetwork": {
  562. "type": "boolean"
  563. },
  564. "hostAliases": {
  565. "type": "array",
  566. "items": {
  567. "type": "object"
  568. }
  569. },
  570. "dnsPolicy": {
  571. "type": "string",
  572. "enum": ["ClusterFirst", "ClusterFirstWithHostNet", "Default", "None", ""]
  573. },
  574. "dnsConfig": {
  575. "type": "object"
  576. },
  577. "replicaCount": {
  578. "type": "integer"
  579. },
  580. "revisionHistoryLimit": {
  581. "type": "integer"
  582. },
  583. "annotations": {
  584. "type": "object"
  585. },
  586. "service": {
  587. "type": "object",
  588. "additionalProperties": false,
  589. "properties": {
  590. "enabled": {
  591. "type": "boolean"
  592. },
  593. "type": {
  594. "type": "string",
  595. "enum": ["ClusterIP", "NodePort", "LoadBalancer", "ExternalName"]
  596. },
  597. "clusterIP": {
  598. "type": "string"
  599. },
  600. "loadBalancerIP": {
  601. "type": "string"
  602. },
  603. "loadBalancerSourceRanges": {
  604. "type": "array",
  605. "items": {
  606. "type": "string"
  607. }
  608. },
  609. "annotations": {
  610. "type": "object"
  611. },
  612. "internalTrafficPolicy": {
  613. "type": "string",
  614. "enum": ["Cluster", "Local", ""]
  615. },
  616. "externalTrafficPolicy": {
  617. "type": "string",
  618. "enum": ["Cluster", "Local", ""]
  619. }
  620. }
  621. },
  622. "ingress": {
  623. "type": "object",
  624. "additionalProperties": false,
  625. "properties": {
  626. "enabled": {
  627. "type": "boolean"
  628. },
  629. "ingressClassName": {
  630. "type": "string"
  631. },
  632. "annotations": {
  633. "type": "object"
  634. },
  635. "hosts": {
  636. "type": "array",
  637. "items": {
  638. "type": "object",
  639. "additionalProperties": false,
  640. "properties": {
  641. "host": {
  642. "type": "string"
  643. },
  644. "paths": {
  645. "type": "array",
  646. "items": {
  647. "type": "object",
  648. "additionalProperties": false,
  649. "properties": {
  650. "path": {
  651. "type": "string"
  652. },
  653. "pathType": {
  654. "type": "string",
  655. "enum": ["Exact", "Prefix", "ImplementationSpecific"]
  656. },
  657. "port": {
  658. "type": "integer"
  659. }
  660. },
  661. "required": ["path", "pathType", "port"]
  662. }
  663. }
  664. },
  665. "required": ["paths"]
  666. }
  667. },
  668. "tls": {
  669. "type": "array",
  670. "items": {
  671. "type": "object",
  672. "additionalProperties": false,
  673. "properties": {
  674. "secretName": {
  675. "type": "string"
  676. },
  677. "hosts": {
  678. "type": "array",
  679. "items": {
  680. "type": "string"
  681. }
  682. }
  683. }
  684. }
  685. },
  686. "additionalIngresses": {
  687. "type": "array",
  688. "items": {
  689. "type": "object",
  690. "additionalProperties": false,
  691. "properties": {
  692. "name": {
  693. "type": "string"
  694. },
  695. "ingressClassName": {
  696. "type": "string"
  697. },
  698. "annotations": {
  699. "type": "object"
  700. },
  701. "hosts": {
  702. "type": "array",
  703. "items": {
  704. "type": "object",
  705. "additionalProperties": false,
  706. "properties": {
  707. "host": {
  708. "type": "string"
  709. },
  710. "paths": {
  711. "type": "array",
  712. "items": {
  713. "type": "object",
  714. "additionalProperties": false,
  715. "properties": {
  716. "path": {
  717. "type": "string"
  718. },
  719. "pathType": {
  720. "type": "string",
  721. "enum": [
  722. "Exact",
  723. "Prefix",
  724. "ImplementationSpecific"
  725. ]
  726. },
  727. "port": {
  728. "type": "integer"
  729. }
  730. },
  731. "required": ["path", "pathType", "port"]
  732. }
  733. }
  734. },
  735. "required": ["paths"]
  736. }
  737. },
  738. "tls": {
  739. "type": "array",
  740. "items": {
  741. "type": "object",
  742. "additionalProperties": false,
  743. "properties": {
  744. "secretName": {
  745. "type": "string"
  746. },
  747. "hosts": {
  748. "type": "array",
  749. "items": {
  750. "type": "string"
  751. }
  752. }
  753. }
  754. }
  755. }
  756. },
  757. "required": ["name"]
  758. }
  759. }
  760. },
  761. "required": ["enabled"]
  762. },
  763. "podMonitor": {
  764. "type": "object",
  765. "properties": {
  766. "enabled": {
  767. "type": "boolean"
  768. },
  769. "metricsEndpoints": {
  770. "type": "array",
  771. "items": {
  772. "type": "object"
  773. }
  774. },
  775. "extraLabels": {
  776. "type": "object"
  777. }
  778. },
  779. "required": ["enabled"]
  780. },
  781. "serviceMonitor": {
  782. "type": "object",
  783. "properties": {
  784. "enabled": {
  785. "type": "boolean"
  786. },
  787. "metricsEndpoints": {
  788. "type": "array",
  789. "items": {
  790. "type": "object"
  791. }
  792. },
  793. "extraLabels": {
  794. "type": "object"
  795. }
  796. },
  797. "required": ["enabled"]
  798. },
  799. "podDisruptionBudget": {
  800. "type": "object",
  801. "properties": {
  802. "enabled": {
  803. "type": "boolean"
  804. }
  805. },
  806. "required": ["enabled"]
  807. },
  808. "autoscaling": {
  809. "type": "object",
  810. "properties": {
  811. "enabled": {
  812. "type": "boolean"
  813. },
  814. "minReplicas": {
  815. "type": "integer"
  816. },
  817. "maxReplicas": {
  818. "type": "integer"
  819. },
  820. "behavior": {
  821. "type": "object"
  822. },
  823. "targetCPUUtilizationPercentage": {
  824. "type": "integer"
  825. }
  826. },
  827. "required": ["enabled"]
  828. },
  829. "rollout": {
  830. "type": "object",
  831. "properties": {
  832. "rollingUpdate": {
  833. "type": "object",
  834. "properties": {
  835. "maxSurge": {
  836. "$ref": "#/$defs/intOrString"
  837. },
  838. "maxUnavailable": {
  839. "$ref": "#/$defs/intOrString"
  840. }
  841. }
  842. },
  843. "strategy": {
  844. "type": "string",
  845. "enum": ["OnDelete", "Recreate", "RollingUpdate"],
  846. "default": "RollingUpdate"
  847. }
  848. },
  849. "required": ["strategy"]
  850. },
  851. "prometheusRule": {
  852. "type": "object",
  853. "properties": {
  854. "enabled": {
  855. "type": "boolean"
  856. },
  857. "groups": {
  858. "type": "array",
  859. "items": {
  860. "type": "object"
  861. }
  862. },
  863. "defaultRules": {
  864. "type": "object",
  865. "properties": {
  866. "enabled": {
  867. "type": "boolean"
  868. }
  869. },
  870. "required": ["enabled"]
  871. },
  872. "extraLabels": {
  873. "type": "object"
  874. }
  875. },
  876. "required": ["enabled"]
  877. },
  878. "statefulset": {
  879. "type": "object",
  880. "properties": {
  881. "volumeClaimTemplates": {
  882. "type": "array",
  883. "items": {
  884. "type": "object"
  885. }
  886. },
  887. "podManagementPolicy": {
  888. "type": "string"
  889. }
  890. }
  891. },
  892. "networkPolicy": {
  893. "type": "object",
  894. "additionalProperties": false,
  895. "properties": {
  896. "enabled": {
  897. "type": "boolean"
  898. },
  899. "annotations": {
  900. "type": "object"
  901. },
  902. "allowIngressFrom": {
  903. "type": "array",
  904. "description": "List of sources which should be able to access the collector. See the standard NetworkPolicy 'spec.ingress.from' definition for more information: https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/. If left empty, ingress traffic will be permitted on to all enabled ports from all sources.",
  905. "items": {
  906. "type": "object"
  907. }
  908. },
  909. "extraIngressRules": {
  910. "type": "array",
  911. "description": "Additional ingress rules to apply to the policy. See the standard NetworkPolicy 'spec.ingress' definition for more information: https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/",
  912. "items": {
  913. "type": "object"
  914. }
  915. },
  916. "egressRules": {
  917. "description": "Optional egress configuration, see the standard NetworkPolicy 'spec.egress' definition for more information: https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/network-policy-v1/",
  918. "type": "array",
  919. "items": {
  920. "type": "object"
  921. }
  922. }
  923. }
  924. },
  925. "useGOMEMLIMIT": {
  926. "type": "boolean"
  927. }
  928. },
  929. "required": ["mode"]
  930. }