0prometheus-operator-0alertmanagerCustomResourceDefinition.yaml 150 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468
  1. apiVersion: apiextensions.k8s.io/v1beta1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. creationTimestamp: null
  5. name: alertmanagers.monitoring.coreos.com
  6. spec:
  7. group: monitoring.coreos.com
  8. names:
  9. kind: Alertmanager
  10. plural: alertmanagers
  11. scope: Namespaced
  12. validation:
  13. openAPIV3Schema:
  14. properties:
  15. apiVersion:
  16. description: 'APIVersion defines the versioned schema of this representation
  17. of an object. Servers should convert recognized schemas to the latest
  18. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
  19. type: string
  20. kind:
  21. description: 'Kind is a string value representing the REST resource this
  22. object represents. Servers may infer this from the endpoint the client
  23. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  24. type: string
  25. spec:
  26. description: 'AlertmanagerSpec is a specification of the desired behavior
  27. of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status'
  28. properties:
  29. additionalPeers:
  30. description: AdditionalPeers allows injecting a set of additional Alertmanagers
  31. to peer with to form a highly available cluster.
  32. items:
  33. type: string
  34. type: array
  35. affinity:
  36. description: Affinity is a group of affinity scheduling rules.
  37. properties:
  38. nodeAffinity:
  39. description: Node affinity is a group of node affinity scheduling
  40. rules.
  41. properties:
  42. preferredDuringSchedulingIgnoredDuringExecution:
  43. description: The scheduler will prefer to schedule pods to nodes
  44. that satisfy the affinity expressions specified by this field,
  45. but it may choose a node that violates one or more of the
  46. expressions. The node that is most preferred is the one with
  47. the greatest sum of weights, i.e. for each node that meets
  48. all of the scheduling requirements (resource request, requiredDuringScheduling
  49. affinity expressions, etc.), compute a sum by iterating through
  50. the elements of this field and adding "weight" to the sum
  51. if the node matches the corresponding matchExpressions; the
  52. node(s) with the highest sum are the most preferred.
  53. items:
  54. description: An empty preferred scheduling term matches all
  55. objects with implicit weight 0 (i.e. it's a no-op). A null
  56. preferred scheduling term matches no objects (i.e. is also
  57. a no-op).
  58. properties:
  59. preference:
  60. description: A null or empty node selector term matches
  61. no objects. The requirements of them are ANDed. The
  62. TopologySelectorTerm type implements a subset of the
  63. NodeSelectorTerm.
  64. properties:
  65. matchExpressions:
  66. description: A list of node selector requirements
  67. by node's labels.
  68. items:
  69. description: A node selector requirement is a selector
  70. that contains values, a key, and an operator that
  71. relates the key and values.
  72. properties:
  73. key:
  74. description: The label key that the selector
  75. applies to.
  76. type: string
  77. operator:
  78. description: Represents a key's relationship
  79. to a set of values. Valid operators are In,
  80. NotIn, Exists, DoesNotExist. Gt, and Lt.
  81. type: string
  82. values:
  83. description: An array of string values. If the
  84. operator is In or NotIn, the values array
  85. must be non-empty. If the operator is Exists
  86. or DoesNotExist, the values array must be
  87. empty. If the operator is Gt or Lt, the values
  88. array must have a single element, which will
  89. be interpreted as an integer. This array is
  90. replaced during a strategic merge patch.
  91. items:
  92. type: string
  93. type: array
  94. required:
  95. - key
  96. - operator
  97. type: array
  98. matchFields:
  99. description: A list of node selector requirements
  100. by node's fields.
  101. items:
  102. description: A node selector requirement is a selector
  103. that contains values, a key, and an operator that
  104. relates the key and values.
  105. properties:
  106. key:
  107. description: The label key that the selector
  108. applies to.
  109. type: string
  110. operator:
  111. description: Represents a key's relationship
  112. to a set of values. Valid operators are In,
  113. NotIn, Exists, DoesNotExist. Gt, and Lt.
  114. type: string
  115. values:
  116. description: An array of string values. If the
  117. operator is In or NotIn, the values array
  118. must be non-empty. If the operator is Exists
  119. or DoesNotExist, the values array must be
  120. empty. If the operator is Gt or Lt, the values
  121. array must have a single element, which will
  122. be interpreted as an integer. This array is
  123. replaced during a strategic merge patch.
  124. items:
  125. type: string
  126. type: array
  127. required:
  128. - key
  129. - operator
  130. type: array
  131. weight:
  132. description: Weight associated with matching the corresponding
  133. nodeSelectorTerm, in the range 1-100.
  134. format: int32
  135. type: integer
  136. required:
  137. - weight
  138. - preference
  139. type: array
  140. requiredDuringSchedulingIgnoredDuringExecution:
  141. description: A node selector represents the union of the results
  142. of one or more label queries over a set of nodes; that is,
  143. it represents the OR of the selectors represented by the node
  144. selector terms.
  145. properties:
  146. nodeSelectorTerms:
  147. description: Required. A list of node selector terms. The
  148. terms are ORed.
  149. items:
  150. description: A null or empty node selector term matches
  151. no objects. The requirements of them are ANDed. The
  152. TopologySelectorTerm type implements a subset of the
  153. NodeSelectorTerm.
  154. properties:
  155. matchExpressions:
  156. description: A list of node selector requirements
  157. by node's labels.
  158. items:
  159. description: A node selector requirement is a selector
  160. that contains values, a key, and an operator that
  161. relates the key and values.
  162. properties:
  163. key:
  164. description: The label key that the selector
  165. applies to.
  166. type: string
  167. operator:
  168. description: Represents a key's relationship
  169. to a set of values. Valid operators are In,
  170. NotIn, Exists, DoesNotExist. Gt, and Lt.
  171. type: string
  172. values:
  173. description: An array of string values. If the
  174. operator is In or NotIn, the values array
  175. must be non-empty. If the operator is Exists
  176. or DoesNotExist, the values array must be
  177. empty. If the operator is Gt or Lt, the values
  178. array must have a single element, which will
  179. be interpreted as an integer. This array is
  180. replaced during a strategic merge patch.
  181. items:
  182. type: string
  183. type: array
  184. required:
  185. - key
  186. - operator
  187. type: array
  188. matchFields:
  189. description: A list of node selector requirements
  190. by node's fields.
  191. items:
  192. description: A node selector requirement is a selector
  193. that contains values, a key, and an operator that
  194. relates the key and values.
  195. properties:
  196. key:
  197. description: The label key that the selector
  198. applies to.
  199. type: string
  200. operator:
  201. description: Represents a key's relationship
  202. to a set of values. Valid operators are In,
  203. NotIn, Exists, DoesNotExist. Gt, and Lt.
  204. type: string
  205. values:
  206. description: An array of string values. If the
  207. operator is In or NotIn, the values array
  208. must be non-empty. If the operator is Exists
  209. or DoesNotExist, the values array must be
  210. empty. If the operator is Gt or Lt, the values
  211. array must have a single element, which will
  212. be interpreted as an integer. This array is
  213. replaced during a strategic merge patch.
  214. items:
  215. type: string
  216. type: array
  217. required:
  218. - key
  219. - operator
  220. type: array
  221. type: array
  222. required:
  223. - nodeSelectorTerms
  224. podAffinity:
  225. description: Pod affinity is a group of inter pod affinity scheduling
  226. rules.
  227. properties:
  228. preferredDuringSchedulingIgnoredDuringExecution:
  229. description: The scheduler will prefer to schedule pods to nodes
  230. that satisfy the affinity expressions specified by this field,
  231. but it may choose a node that violates one or more of the
  232. expressions. The node that is most preferred is the one with
  233. the greatest sum of weights, i.e. for each node that meets
  234. all of the scheduling requirements (resource request, requiredDuringScheduling
  235. affinity expressions, etc.), compute a sum by iterating through
  236. the elements of this field and adding "weight" to the sum
  237. if the node has pods which matches the corresponding podAffinityTerm;
  238. the node(s) with the highest sum are the most preferred.
  239. items:
  240. description: The weights of all of the matched WeightedPodAffinityTerm
  241. fields are added per-node to find the most preferred node(s)
  242. properties:
  243. podAffinityTerm:
  244. description: Defines a set of pods (namely those matching
  245. the labelSelector relative to the given namespace(s))
  246. that this pod should be co-located (affinity) or not
  247. co-located (anti-affinity) with, where co-located is
  248. defined as running on a node whose value of the label
  249. with key <topologyKey> matches that of any node on which
  250. a pod of the set of pods is running
  251. properties:
  252. labelSelector:
  253. description: A label selector is a label query over
  254. a set of resources. The result of matchLabels and
  255. matchExpressions are ANDed. An empty label selector
  256. matches all objects. A null label selector matches
  257. no objects.
  258. properties:
  259. matchExpressions:
  260. description: matchExpressions is a list of label
  261. selector requirements. The requirements are
  262. ANDed.
  263. items:
  264. description: A label selector requirement is
  265. a selector that contains values, a key, and
  266. an operator that relates the key and values.
  267. properties:
  268. key:
  269. description: key is the label key that the
  270. selector applies to.
  271. type: string
  272. operator:
  273. description: operator represents a key's
  274. relationship to a set of values. Valid
  275. operators are In, NotIn, Exists and DoesNotExist.
  276. type: string
  277. values:
  278. description: values is an array of string
  279. values. If the operator is In or NotIn,
  280. the values array must be non-empty. If
  281. the operator is Exists or DoesNotExist,
  282. the values array must be empty. This array
  283. is replaced during a strategic merge patch.
  284. items:
  285. type: string
  286. type: array
  287. required:
  288. - key
  289. - operator
  290. type: array
  291. matchLabels:
  292. description: matchLabels is a map of {key,value}
  293. pairs. A single {key,value} in the matchLabels
  294. map is equivalent to an element of matchExpressions,
  295. whose key field is "key", the operator is "In",
  296. and the values array contains only "value".
  297. The requirements are ANDed.
  298. type: object
  299. namespaces:
  300. description: namespaces specifies which namespaces
  301. the labelSelector applies to (matches against);
  302. null or empty list means "this pod's namespace"
  303. items:
  304. type: string
  305. type: array
  306. topologyKey:
  307. description: This pod should be co-located (affinity)
  308. or not co-located (anti-affinity) with the pods
  309. matching the labelSelector in the specified namespaces,
  310. where co-located is defined as running on a node
  311. whose value of the label with key topologyKey matches
  312. that of any node on which any of the selected pods
  313. is running. Empty topologyKey is not allowed.
  314. type: string
  315. required:
  316. - topologyKey
  317. weight:
  318. description: weight associated with matching the corresponding
  319. podAffinityTerm, in the range 1-100.
  320. format: int32
  321. type: integer
  322. required:
  323. - weight
  324. - podAffinityTerm
  325. type: array
  326. requiredDuringSchedulingIgnoredDuringExecution:
  327. description: If the affinity requirements specified by this
  328. field are not met at scheduling time, the pod will not be
  329. scheduled onto the node. If the affinity requirements specified
  330. by this field cease to be met at some point during pod execution
  331. (e.g. due to a pod label update), the system may or may not
  332. try to eventually evict the pod from its node. When there
  333. are multiple elements, the lists of nodes corresponding to
  334. each podAffinityTerm are intersected, i.e. all terms must
  335. be satisfied.
  336. items:
  337. description: Defines a set of pods (namely those matching
  338. the labelSelector relative to the given namespace(s)) that
  339. this pod should be co-located (affinity) or not co-located
  340. (anti-affinity) with, where co-located is defined as running
  341. on a node whose value of the label with key <topologyKey>
  342. matches that of any node on which a pod of the set of pods
  343. is running
  344. properties:
  345. labelSelector:
  346. description: A label selector is a label query over a
  347. set of resources. The result of matchLabels and matchExpressions
  348. are ANDed. An empty label selector matches all objects.
  349. A null label selector matches no objects.
  350. properties:
  351. matchExpressions:
  352. description: matchExpressions is a list of label selector
  353. requirements. The requirements are ANDed.
  354. items:
  355. description: A label selector requirement is a selector
  356. that contains values, a key, and an operator that
  357. relates the key and values.
  358. properties:
  359. key:
  360. description: key is the label key that the selector
  361. applies to.
  362. type: string
  363. operator:
  364. description: operator represents a key's relationship
  365. to a set of values. Valid operators are In,
  366. NotIn, Exists and DoesNotExist.
  367. type: string
  368. values:
  369. description: values is an array of string values.
  370. If the operator is In or NotIn, the values
  371. array must be non-empty. If the operator is
  372. Exists or DoesNotExist, the values array must
  373. be empty. This array is replaced during a
  374. strategic merge patch.
  375. items:
  376. type: string
  377. type: array
  378. required:
  379. - key
  380. - operator
  381. type: array
  382. matchLabels:
  383. description: matchLabels is a map of {key,value} pairs.
  384. A single {key,value} in the matchLabels map is equivalent
  385. to an element of matchExpressions, whose key field
  386. is "key", the operator is "In", and the values array
  387. contains only "value". The requirements are ANDed.
  388. type: object
  389. namespaces:
  390. description: namespaces specifies which namespaces the
  391. labelSelector applies to (matches against); null or
  392. empty list means "this pod's namespace"
  393. items:
  394. type: string
  395. type: array
  396. topologyKey:
  397. description: This pod should be co-located (affinity)
  398. or not co-located (anti-affinity) with the pods matching
  399. the labelSelector in the specified namespaces, where
  400. co-located is defined as running on a node whose value
  401. of the label with key topologyKey matches that of any
  402. node on which any of the selected pods is running. Empty
  403. topologyKey is not allowed.
  404. type: string
  405. required:
  406. - topologyKey
  407. type: array
  408. podAntiAffinity:
  409. description: Pod anti affinity is a group of inter pod anti affinity
  410. scheduling rules.
  411. properties:
  412. preferredDuringSchedulingIgnoredDuringExecution:
  413. description: The scheduler will prefer to schedule pods to nodes
  414. that satisfy the anti-affinity expressions specified by this
  415. field, but it may choose a node that violates one or more
  416. of the expressions. The node that is most preferred is the
  417. one with the greatest sum of weights, i.e. for each node that
  418. meets all of the scheduling requirements (resource request,
  419. requiredDuringScheduling anti-affinity expressions, etc.),
  420. compute a sum by iterating through the elements of this field
  421. and adding "weight" to the sum if the node has pods which
  422. matches the corresponding podAffinityTerm; the node(s) with
  423. the highest sum are the most preferred.
  424. items:
  425. description: The weights of all of the matched WeightedPodAffinityTerm
  426. fields are added per-node to find the most preferred node(s)
  427. properties:
  428. podAffinityTerm:
  429. description: Defines a set of pods (namely those matching
  430. the labelSelector relative to the given namespace(s))
  431. that this pod should be co-located (affinity) or not
  432. co-located (anti-affinity) with, where co-located is
  433. defined as running on a node whose value of the label
  434. with key <topologyKey> matches that of any node on which
  435. a pod of the set of pods is running
  436. properties:
  437. labelSelector:
  438. description: A label selector is a label query over
  439. a set of resources. The result of matchLabels and
  440. matchExpressions are ANDed. An empty label selector
  441. matches all objects. A null label selector matches
  442. no objects.
  443. properties:
  444. matchExpressions:
  445. description: matchExpressions is a list of label
  446. selector requirements. The requirements are
  447. ANDed.
  448. items:
  449. description: A label selector requirement is
  450. a selector that contains values, a key, and
  451. an operator that relates the key and values.
  452. properties:
  453. key:
  454. description: key is the label key that the
  455. selector applies to.
  456. type: string
  457. operator:
  458. description: operator represents a key's
  459. relationship to a set of values. Valid
  460. operators are In, NotIn, Exists and DoesNotExist.
  461. type: string
  462. values:
  463. description: values is an array of string
  464. values. If the operator is In or NotIn,
  465. the values array must be non-empty. If
  466. the operator is Exists or DoesNotExist,
  467. the values array must be empty. This array
  468. is replaced during a strategic merge patch.
  469. items:
  470. type: string
  471. type: array
  472. required:
  473. - key
  474. - operator
  475. type: array
  476. matchLabels:
  477. description: matchLabels is a map of {key,value}
  478. pairs. A single {key,value} in the matchLabels
  479. map is equivalent to an element of matchExpressions,
  480. whose key field is "key", the operator is "In",
  481. and the values array contains only "value".
  482. The requirements are ANDed.
  483. type: object
  484. namespaces:
  485. description: namespaces specifies which namespaces
  486. the labelSelector applies to (matches against);
  487. null or empty list means "this pod's namespace"
  488. items:
  489. type: string
  490. type: array
  491. topologyKey:
  492. description: This pod should be co-located (affinity)
  493. or not co-located (anti-affinity) with the pods
  494. matching the labelSelector in the specified namespaces,
  495. where co-located is defined as running on a node
  496. whose value of the label with key topologyKey matches
  497. that of any node on which any of the selected pods
  498. is running. Empty topologyKey is not allowed.
  499. type: string
  500. required:
  501. - topologyKey
  502. weight:
  503. description: weight associated with matching the corresponding
  504. podAffinityTerm, in the range 1-100.
  505. format: int32
  506. type: integer
  507. required:
  508. - weight
  509. - podAffinityTerm
  510. type: array
  511. requiredDuringSchedulingIgnoredDuringExecution:
  512. description: If the anti-affinity requirements specified by
  513. this field are not met at scheduling time, the pod will not
  514. be scheduled onto the node. If the anti-affinity requirements
  515. specified by this field cease to be met at some point during
  516. pod execution (e.g. due to a pod label update), the system
  517. may or may not try to eventually evict the pod from its node.
  518. When there are multiple elements, the lists of nodes corresponding
  519. to each podAffinityTerm are intersected, i.e. all terms must
  520. be satisfied.
  521. items:
  522. description: Defines a set of pods (namely those matching
  523. the labelSelector relative to the given namespace(s)) that
  524. this pod should be co-located (affinity) or not co-located
  525. (anti-affinity) with, where co-located is defined as running
  526. on a node whose value of the label with key <topologyKey>
  527. matches that of any node on which a pod of the set of pods
  528. is running
  529. properties:
  530. labelSelector:
  531. description: A label selector is a label query over a
  532. set of resources. The result of matchLabels and matchExpressions
  533. are ANDed. An empty label selector matches all objects.
  534. A null label selector matches no objects.
  535. properties:
  536. matchExpressions:
  537. description: matchExpressions is a list of label selector
  538. requirements. The requirements are ANDed.
  539. items:
  540. description: A label selector requirement is a selector
  541. that contains values, a key, and an operator that
  542. relates the key and values.
  543. properties:
  544. key:
  545. description: key is the label key that the selector
  546. applies to.
  547. type: string
  548. operator:
  549. description: operator represents a key's relationship
  550. to a set of values. Valid operators are In,
  551. NotIn, Exists and DoesNotExist.
  552. type: string
  553. values:
  554. description: values is an array of string values.
  555. If the operator is In or NotIn, the values
  556. array must be non-empty. If the operator is
  557. Exists or DoesNotExist, the values array must
  558. be empty. This array is replaced during a
  559. strategic merge patch.
  560. items:
  561. type: string
  562. type: array
  563. required:
  564. - key
  565. - operator
  566. type: array
  567. matchLabels:
  568. description: matchLabels is a map of {key,value} pairs.
  569. A single {key,value} in the matchLabels map is equivalent
  570. to an element of matchExpressions, whose key field
  571. is "key", the operator is "In", and the values array
  572. contains only "value". The requirements are ANDed.
  573. type: object
  574. namespaces:
  575. description: namespaces specifies which namespaces the
  576. labelSelector applies to (matches against); null or
  577. empty list means "this pod's namespace"
  578. items:
  579. type: string
  580. type: array
  581. topologyKey:
  582. description: This pod should be co-located (affinity)
  583. or not co-located (anti-affinity) with the pods matching
  584. the labelSelector in the specified namespaces, where
  585. co-located is defined as running on a node whose value
  586. of the label with key topologyKey matches that of any
  587. node on which any of the selected pods is running. Empty
  588. topologyKey is not allowed.
  589. type: string
  590. required:
  591. - topologyKey
  592. type: array
  593. baseImage:
  594. description: Base image that is used to deploy pods, without tag.
  595. type: string
  596. configMaps:
  597. description: ConfigMaps is a list of ConfigMaps in the same namespace
  598. as the Alertmanager object, which shall be mounted into the Alertmanager
  599. Pods. The ConfigMaps are mounted into /etc/alertmanager/configmaps/<configmap-name>.
  600. items:
  601. type: string
  602. type: array
  603. containers:
  604. description: Containers allows injecting additional containers. This
  605. is meant to allow adding an authentication proxy to an Alertmanager
  606. pod.
  607. items:
  608. description: A single application container that you want to run within
  609. a pod.
  610. properties:
  611. args:
  612. description: 'Arguments to the entrypoint. The docker image''s
  613. CMD is used if this is not provided. Variable references $(VAR_NAME)
  614. are expanded using the container''s environment. If a variable
  615. cannot be resolved, the reference in the input string will be
  616. unchanged. The $(VAR_NAME) syntax can be escaped with a double
  617. $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
  618. regardless of whether the variable exists or not. Cannot be
  619. updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'
  620. items:
  621. type: string
  622. type: array
  623. command:
  624. description: 'Entrypoint array. Not executed within a shell. The
  625. docker image''s ENTRYPOINT is used if this is not provided.
  626. Variable references $(VAR_NAME) are expanded using the container''s
  627. environment. If a variable cannot be resolved, the reference
  628. in the input string will be unchanged. The $(VAR_NAME) syntax
  629. can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references
  630. will never be expanded, regardless of whether the variable exists
  631. or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'
  632. items:
  633. type: string
  634. type: array
  635. env:
  636. description: List of environment variables to set in the container.
  637. Cannot be updated.
  638. items:
  639. description: EnvVar represents an environment variable present
  640. in a Container.
  641. properties:
  642. name:
  643. description: Name of the environment variable. Must be a
  644. C_IDENTIFIER.
  645. type: string
  646. value:
  647. description: 'Variable references $(VAR_NAME) are expanded
  648. using the previous defined environment variables in the
  649. container and any service environment variables. If a
  650. variable cannot be resolved, the reference in the input
  651. string will be unchanged. The $(VAR_NAME) syntax can be
  652. escaped with a double $$, ie: $$(VAR_NAME). Escaped references
  653. will never be expanded, regardless of whether the variable
  654. exists or not. Defaults to "".'
  655. type: string
  656. valueFrom:
  657. description: EnvVarSource represents a source for the value
  658. of an EnvVar.
  659. properties:
  660. configMapKeyRef:
  661. description: Selects a key from a ConfigMap.
  662. properties:
  663. key:
  664. description: The key to select.
  665. type: string
  666. name:
  667. description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
  668. type: string
  669. optional:
  670. description: Specify whether the ConfigMap or it's
  671. key must be defined
  672. type: boolean
  673. required:
  674. - key
  675. fieldRef:
  676. description: ObjectFieldSelector selects an APIVersioned
  677. field of an object.
  678. properties:
  679. apiVersion:
  680. description: Version of the schema the FieldPath
  681. is written in terms of, defaults to "v1".
  682. type: string
  683. fieldPath:
  684. description: Path of the field to select in the
  685. specified API version.
  686. type: string
  687. required:
  688. - fieldPath
  689. resourceFieldRef:
  690. description: ResourceFieldSelector represents container
  691. resources (cpu, memory) and their output format
  692. properties:
  693. containerName:
  694. description: 'Container name: required for volumes,
  695. optional for env vars'
  696. type: string
  697. divisor: {}
  698. resource:
  699. description: 'Required: resource to select'
  700. type: string
  701. required:
  702. - resource
  703. secretKeyRef:
  704. description: SecretKeySelector selects a key of a Secret.
  705. properties:
  706. key:
  707. description: The key of the secret to select from. Must
  708. be a valid secret key.
  709. type: string
  710. name:
  711. description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
  712. type: string
  713. optional:
  714. description: Specify whether the Secret or it's
  715. key must be defined
  716. type: boolean
  717. required:
  718. - key
  719. required:
  720. - name
  721. type: array
  722. envFrom:
  723. description: List of sources to populate environment variables
  724. in the container. The keys defined within a source must be a
  725. C_IDENTIFIER. All invalid keys will be reported as an event
  726. when the container is starting. When a key exists in multiple
  727. sources, the value associated with the last source will take
  728. precedence. Values defined by an Env with a duplicate key will
  729. take precedence. Cannot be updated.
  730. items:
  731. description: EnvFromSource represents the source of a set of
  732. ConfigMaps
  733. properties:
  734. configMapRef:
  735. description: |-
  736. ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.
  737. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
  738. properties:
  739. name:
  740. description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
  741. type: string
  742. optional:
  743. description: Specify whether the ConfigMap must be defined
  744. type: boolean
  745. prefix:
  746. description: An optional identifier to prepend to each key
  747. in the ConfigMap. Must be a C_IDENTIFIER.
  748. type: string
  749. secretRef:
  750. description: |-
  751. SecretEnvSource selects a Secret to populate the environment variables with.
  752. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
  753. properties:
  754. name:
  755. description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
  756. type: string
  757. optional:
  758. description: Specify whether the Secret must be defined
  759. type: boolean
  760. type: array
  761. image:
  762. description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images
  763. This field is optional to allow higher level config management
  764. to default or override container images in workload controllers
  765. like Deployments and StatefulSets.'
  766. type: string
  767. imagePullPolicy:
  768. description: 'Image pull policy. One of Always, Never, IfNotPresent.
  769. Defaults to Always if :latest tag is specified, or IfNotPresent
  770. otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images'
  771. type: string
  772. lifecycle:
  773. description: Lifecycle describes actions that the management system
  774. should take in response to container lifecycle events. For the
  775. PostStart and PreStop lifecycle handlers, management of the
  776. container blocks until the action is complete, unless the container
  777. process fails, in which case the handler is aborted.
  778. properties:
  779. postStart:
  780. description: Handler defines a specific action that should
  781. be taken
  782. properties:
  783. exec:
  784. description: ExecAction describes a "run in container"
  785. action.
  786. properties:
  787. command:
  788. description: Command is the command line to execute
  789. inside the container, the working directory for
  790. the command is root ('/') in the container's filesystem.
  791. The command is simply exec'd, it is not run inside
  792. a shell, so traditional shell instructions ('|',
  793. etc) won't work. To use a shell, you need to explicitly
  794. call out to that shell. Exit status of 0 is treated
  795. as live/healthy and non-zero is unhealthy.
  796. items:
  797. type: string
  798. type: array
  799. httpGet:
  800. description: HTTPGetAction describes an action based on
  801. HTTP Get requests.
  802. properties:
  803. host:
  804. description: Host name to connect to, defaults to
  805. the pod IP. You probably want to set "Host" in httpHeaders
  806. instead.
  807. type: string
  808. httpHeaders:
  809. description: Custom headers to set in the request.
  810. HTTP allows repeated headers.
  811. items:
  812. description: HTTPHeader describes a custom header
  813. to be used in HTTP probes
  814. properties:
  815. name:
  816. description: The header field name
  817. type: string
  818. value:
  819. description: The header field value
  820. type: string
  821. required:
  822. - name
  823. - value
  824. type: array
  825. path:
  826. description: Path to access on the HTTP server.
  827. type: string
  828. port:
  829. anyOf:
  830. - type: string
  831. - type: integer
  832. scheme:
  833. description: Scheme to use for connecting to the host.
  834. Defaults to HTTP.
  835. type: string
  836. required:
  837. - port
  838. tcpSocket:
  839. description: TCPSocketAction describes an action based
  840. on opening a socket
  841. properties:
  842. host:
  843. description: 'Optional: Host name to connect to, defaults
  844. to the pod IP.'
  845. type: string
  846. port:
  847. anyOf:
  848. - type: string
  849. - type: integer
  850. required:
  851. - port
  852. preStop:
  853. description: Handler defines a specific action that should
  854. be taken
  855. properties:
  856. exec:
  857. description: ExecAction describes a "run in container"
  858. action.
  859. properties:
  860. command:
  861. description: Command is the command line to execute
  862. inside the container, the working directory for
  863. the command is root ('/') in the container's filesystem.
  864. The command is simply exec'd, it is not run inside
  865. a shell, so traditional shell instructions ('|',
  866. etc) won't work. To use a shell, you need to explicitly
  867. call out to that shell. Exit status of 0 is treated
  868. as live/healthy and non-zero is unhealthy.
  869. items:
  870. type: string
  871. type: array
  872. httpGet:
  873. description: HTTPGetAction describes an action based on
  874. HTTP Get requests.
  875. properties:
  876. host:
  877. description: Host name to connect to, defaults to
  878. the pod IP. You probably want to set "Host" in httpHeaders
  879. instead.
  880. type: string
  881. httpHeaders:
  882. description: Custom headers to set in the request.
  883. HTTP allows repeated headers.
  884. items:
  885. description: HTTPHeader describes a custom header
  886. to be used in HTTP probes
  887. properties:
  888. name:
  889. description: The header field name
  890. type: string
  891. value:
  892. description: The header field value
  893. type: string
  894. required:
  895. - name
  896. - value
  897. type: array
  898. path:
  899. description: Path to access on the HTTP server.
  900. type: string
  901. port:
  902. anyOf:
  903. - type: string
  904. - type: integer
  905. scheme:
  906. description: Scheme to use for connecting to the host.
  907. Defaults to HTTP.
  908. type: string
  909. required:
  910. - port
  911. tcpSocket:
  912. description: TCPSocketAction describes an action based
  913. on opening a socket
  914. properties:
  915. host:
  916. description: 'Optional: Host name to connect to, defaults
  917. to the pod IP.'
  918. type: string
  919. port:
  920. anyOf:
  921. - type: string
  922. - type: integer
  923. required:
  924. - port
  925. livenessProbe:
  926. description: Probe describes a health check to be performed against
  927. a container to determine whether it is alive or ready to receive
  928. traffic.
  929. properties:
  930. exec:
  931. description: ExecAction describes a "run in container" action.
  932. properties:
  933. command:
  934. description: Command is the command line to execute inside
  935. the container, the working directory for the command is
  936. root ('/') in the container's filesystem. The command
  937. is simply exec'd, it is not run inside a shell, so traditional
  938. shell instructions ('|', etc) won't work. To use a shell,
  939. you need to explicitly call out to that shell. Exit
  940. status of 0 is treated as live/healthy and non-zero
  941. is unhealthy.
  942. items:
  943. type: string
  944. type: array
  945. failureThreshold:
  946. description: Minimum consecutive failures for the probe to
  947. be considered failed after having succeeded. Defaults to
  948. 3. Minimum value is 1.
  949. format: int32
  950. type: integer
  951. httpGet:
  952. description: HTTPGetAction describes an action based on HTTP
  953. Get requests.
  954. properties:
  955. host:
  956. description: Host name to connect to, defaults to the
  957. pod IP. You probably want to set "Host" in httpHeaders
  958. instead.
  959. type: string
  960. httpHeaders:
  961. description: Custom headers to set in the request. HTTP
  962. allows repeated headers.
  963. items:
  964. description: HTTPHeader describes a custom header to
  965. be used in HTTP probes
  966. properties:
  967. name:
  968. description: The header field name
  969. type: string
  970. value:
  971. description: The header field value
  972. type: string
  973. required:
  974. - name
  975. - value
  976. type: array
  977. path:
  978. description: Path to access on the HTTP server.
  979. type: string
  980. port:
  981. anyOf:
  982. - type: string
  983. - type: integer
  984. scheme:
  985. description: Scheme to use for connecting to the host.
  986. Defaults to HTTP.
  987. type: string
  988. required:
  989. - port
  990. initialDelaySeconds:
  991. description: 'Number of seconds after the container has started
  992. before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
  993. format: int32
  994. type: integer
  995. periodSeconds:
  996. description: How often (in seconds) to perform the probe.
  997. Default to 10 seconds. Minimum value is 1.
  998. format: int32
  999. type: integer
  1000. successThreshold:
  1001. description: Minimum consecutive successes for the probe to
  1002. be considered successful after having failed. Defaults to
  1003. 1. Must be 1 for liveness. Minimum value is 1.
  1004. format: int32
  1005. type: integer
  1006. tcpSocket:
  1007. description: TCPSocketAction describes an action based on
  1008. opening a socket
  1009. properties:
  1010. host:
  1011. description: 'Optional: Host name to connect to, defaults
  1012. to the pod IP.'
  1013. type: string
  1014. port:
  1015. anyOf:
  1016. - type: string
  1017. - type: integer
  1018. required:
  1019. - port
  1020. timeoutSeconds:
  1021. description: 'Number of seconds after which the probe times
  1022. out. Defaults to 1 second. Minimum value is 1. More info:
  1023. https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
  1024. format: int32
  1025. type: integer
  1026. name:
  1027. description: Name of the container specified as a DNS_LABEL. Each
  1028. container in a pod must have a unique name (DNS_LABEL). Cannot
  1029. be updated.
  1030. type: string
  1031. ports:
  1032. description: List of ports to expose from the container. Exposing
  1033. a port here gives the system additional information about the
  1034. network connections a container uses, but is primarily informational.
  1035. Not specifying a port here DOES NOT prevent that port from being
  1036. exposed. Any port which is listening on the default "0.0.0.0"
  1037. address inside a container will be accessible from the network.
  1038. Cannot be updated.
  1039. items:
  1040. description: ContainerPort represents a network port in a single
  1041. container.
  1042. properties:
  1043. containerPort:
  1044. description: Number of port to expose on the pod's IP address.
  1045. This must be a valid port number, 0 < x < 65536.
  1046. format: int32
  1047. type: integer
  1048. hostIP:
  1049. description: What host IP to bind the external port to.
  1050. type: string
  1051. hostPort:
  1052. description: Number of port to expose on the host. If specified,
  1053. this must be a valid port number, 0 < x < 65536. If HostNetwork
  1054. is specified, this must match ContainerPort. Most containers
  1055. do not need this.
  1056. format: int32
  1057. type: integer
  1058. name:
  1059. description: If specified, this must be an IANA_SVC_NAME
  1060. and unique within the pod. Each named port in a pod must
  1061. have a unique name. Name for the port that can be referred
  1062. to by services.
  1063. type: string
  1064. protocol:
  1065. description: Protocol for port. Must be UDP, TCP, or SCTP.
  1066. Defaults to "TCP".
  1067. type: string
  1068. required:
  1069. - containerPort
  1070. type: array
  1071. readinessProbe:
  1072. description: Probe describes a health check to be performed against
  1073. a container to determine whether it is alive or ready to receive
  1074. traffic.
  1075. properties:
  1076. exec:
  1077. description: ExecAction describes a "run in container" action.
  1078. properties:
  1079. command:
  1080. description: Command is the command line to execute inside
  1081. the container, the working directory for the command is
  1082. root ('/') in the container's filesystem. The command
  1083. is simply exec'd, it is not run inside a shell, so traditional
  1084. shell instructions ('|', etc) won't work. To use a shell,
  1085. you need to explicitly call out to that shell. Exit
  1086. status of 0 is treated as live/healthy and non-zero
  1087. is unhealthy.
  1088. items:
  1089. type: string
  1090. type: array
  1091. failureThreshold:
  1092. description: Minimum consecutive failures for the probe to
  1093. be considered failed after having succeeded. Defaults to
  1094. 3. Minimum value is 1.
  1095. format: int32
  1096. type: integer
  1097. httpGet:
  1098. description: HTTPGetAction describes an action based on HTTP
  1099. Get requests.
  1100. properties:
  1101. host:
  1102. description: Host name to connect to, defaults to the
  1103. pod IP. You probably want to set "Host" in httpHeaders
  1104. instead.
  1105. type: string
  1106. httpHeaders:
  1107. description: Custom headers to set in the request. HTTP
  1108. allows repeated headers.
  1109. items:
  1110. description: HTTPHeader describes a custom header to
  1111. be used in HTTP probes
  1112. properties:
  1113. name:
  1114. description: The header field name
  1115. type: string
  1116. value:
  1117. description: The header field value
  1118. type: string
  1119. required:
  1120. - name
  1121. - value
  1122. type: array
  1123. path:
  1124. description: Path to access on the HTTP server.
  1125. type: string
  1126. port:
  1127. anyOf:
  1128. - type: string
  1129. - type: integer
  1130. scheme:
  1131. description: Scheme to use for connecting to the host.
  1132. Defaults to HTTP.
  1133. type: string
  1134. required:
  1135. - port
  1136. initialDelaySeconds:
  1137. description: 'Number of seconds after the container has started
  1138. before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
  1139. format: int32
  1140. type: integer
  1141. periodSeconds:
  1142. description: How often (in seconds) to perform the probe.
  1143. Default to 10 seconds. Minimum value is 1.
  1144. format: int32
  1145. type: integer
  1146. successThreshold:
  1147. description: Minimum consecutive successes for the probe to
  1148. be considered successful after having failed. Defaults to
  1149. 1. Must be 1 for liveness. Minimum value is 1.
  1150. format: int32
  1151. type: integer
  1152. tcpSocket:
  1153. description: TCPSocketAction describes an action based on
  1154. opening a socket
  1155. properties:
  1156. host:
  1157. description: 'Optional: Host name to connect to, defaults
  1158. to the pod IP.'
  1159. type: string
  1160. port:
  1161. anyOf:
  1162. - type: string
  1163. - type: integer
  1164. required:
  1165. - port
  1166. timeoutSeconds:
  1167. description: 'Number of seconds after which the probe times
  1168. out. Defaults to 1 second. Minimum value is 1. More info:
  1169. https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes'
  1170. format: int32
  1171. type: integer
  1172. resources:
  1173. description: ResourceRequirements describes the compute resource
  1174. requirements.
  1175. properties:
  1176. limits:
  1177. description: 'Limits describes the maximum amount of compute
  1178. resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1179. type: object
  1180. requests:
  1181. description: 'Requests describes the minimum amount of compute
  1182. resources required. If Requests is omitted for a container,
  1183. it defaults to Limits if that is explicitly specified, otherwise
  1184. to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1185. type: object
  1186. securityContext:
  1187. description: SecurityContext holds security configuration that
  1188. will be applied to a container. Some fields are present in both
  1189. SecurityContext and PodSecurityContext. When both are set,
  1190. the values in SecurityContext take precedence.
  1191. properties:
  1192. allowPrivilegeEscalation:
  1193. description: 'AllowPrivilegeEscalation controls whether a
  1194. process can gain more privileges than its parent process.
  1195. This bool directly controls if the no_new_privs flag will
  1196. be set on the container process. AllowPrivilegeEscalation
  1197. is true always when the container is: 1) run as Privileged
  1198. 2) has CAP_SYS_ADMIN'
  1199. type: boolean
  1200. capabilities:
  1201. description: Adds and removes POSIX capabilities from running
  1202. containers.
  1203. properties:
  1204. add:
  1205. description: Added capabilities
  1206. items:
  1207. type: string
  1208. type: array
  1209. drop:
  1210. description: Removed capabilities
  1211. items:
  1212. type: string
  1213. type: array
  1214. privileged:
  1215. description: Run container in privileged mode. Processes in
  1216. privileged containers are essentially equivalent to root
  1217. on the host. Defaults to false.
  1218. type: boolean
  1219. procMount:
  1220. description: procMount denotes the type of proc mount to use
  1221. for the containers. The default is DefaultProcMount which
  1222. uses the container runtime defaults for readonly paths and
  1223. masked paths. This requires the ProcMountType feature flag
  1224. to be enabled.
  1225. type: string
  1226. readOnlyRootFilesystem:
  1227. description: Whether this container has a read-only root filesystem.
  1228. Default is false.
  1229. type: boolean
  1230. runAsGroup:
  1231. description: The GID to run the entrypoint of the container
  1232. process. Uses runtime default if unset. May also be set
  1233. in PodSecurityContext. If set in both SecurityContext and
  1234. PodSecurityContext, the value specified in SecurityContext
  1235. takes precedence.
  1236. format: int64
  1237. type: integer
  1238. runAsNonRoot:
  1239. description: Indicates that the container must run as a non-root
  1240. user. If true, the Kubelet will validate the image at runtime
  1241. to ensure that it does not run as UID 0 (root) and fail
  1242. to start the container if it does. If unset or false, no
  1243. such validation will be performed. May also be set in PodSecurityContext. If
  1244. set in both SecurityContext and PodSecurityContext, the
  1245. value specified in SecurityContext takes precedence.
  1246. type: boolean
  1247. runAsUser:
  1248. description: The UID to run the entrypoint of the container
  1249. process. Defaults to user specified in image metadata if
  1250. unspecified. May also be set in PodSecurityContext. If
  1251. set in both SecurityContext and PodSecurityContext, the
  1252. value specified in SecurityContext takes precedence.
  1253. format: int64
  1254. type: integer
  1255. seLinuxOptions:
  1256. description: SELinuxOptions are the labels to be applied to
  1257. the container
  1258. properties:
  1259. level:
  1260. description: Level is SELinux level label that applies
  1261. to the container.
  1262. type: string
  1263. role:
  1264. description: Role is a SELinux role label that applies
  1265. to the container.
  1266. type: string
  1267. type:
  1268. description: Type is a SELinux type label that applies
  1269. to the container.
  1270. type: string
  1271. user:
  1272. description: User is a SELinux user label that applies
  1273. to the container.
  1274. type: string
  1275. stdin:
  1276. description: Whether this container should allocate a buffer for
  1277. stdin in the container runtime. If this is not set, reads from
  1278. stdin in the container will always result in EOF. Default is
  1279. false.
  1280. type: boolean
  1281. stdinOnce:
  1282. description: Whether the container runtime should close the stdin
  1283. channel after it has been opened by a single attach. When stdin
  1284. is true the stdin stream will remain open across multiple attach
  1285. sessions. If stdinOnce is set to true, stdin is opened on container
  1286. start, is empty until the first client attaches to stdin, and
  1287. then remains open and accepts data until the client disconnects,
  1288. at which time stdin is closed and remains closed until the container
  1289. is restarted. If this flag is false, a container processes that
  1290. reads from stdin will never receive an EOF. Default is false
  1291. type: boolean
  1292. terminationMessagePath:
  1293. description: 'Optional: Path at which the file to which the container''s
  1294. termination message will be written is mounted into the container''s
  1295. filesystem. Message written is intended to be brief final status,
  1296. such as an assertion failure message. Will be truncated by the
  1297. node if greater than 4096 bytes. The total message length across
  1298. all containers will be limited to 12kb. Defaults to /dev/termination-log.
  1299. Cannot be updated.'
  1300. type: string
  1301. terminationMessagePolicy:
  1302. description: Indicate how the termination message should be populated.
  1303. File will use the contents of terminationMessagePath to populate
  1304. the container status message on both success and failure. FallbackToLogsOnError
  1305. will use the last chunk of container log output if the termination
  1306. message file is empty and the container exited with an error.
  1307. The log output is limited to 2048 bytes or 80 lines, whichever
  1308. is smaller. Defaults to File. Cannot be updated.
  1309. type: string
  1310. tty:
  1311. description: Whether this container should allocate a TTY for
  1312. itself, also requires 'stdin' to be true. Default is false.
  1313. type: boolean
  1314. volumeDevices:
  1315. description: volumeDevices is the list of block devices to be
  1316. used by the container. This is an alpha feature and may change
  1317. in the future.
  1318. items:
  1319. description: volumeDevice describes a mapping of a raw block
  1320. device within a container.
  1321. properties:
  1322. devicePath:
  1323. description: devicePath is the path inside of the container
  1324. that the device will be mapped to.
  1325. type: string
  1326. name:
  1327. description: name must match the name of a persistentVolumeClaim
  1328. in the pod
  1329. type: string
  1330. required:
  1331. - name
  1332. - devicePath
  1333. type: array
  1334. volumeMounts:
  1335. description: Pod volumes to mount into the container's filesystem.
  1336. Cannot be updated.
  1337. items:
  1338. description: VolumeMount describes a mounting of a Volume within
  1339. a container.
  1340. properties:
  1341. mountPath:
  1342. description: Path within the container at which the volume
  1343. should be mounted. Must not contain ':'.
  1344. type: string
  1345. mountPropagation:
  1346. description: mountPropagation determines how mounts are
  1347. propagated from the host to container and the other way
  1348. around. When not set, MountPropagationNone is used. This
  1349. field is beta in 1.10.
  1350. type: string
  1351. name:
  1352. description: This must match the Name of a Volume.
  1353. type: string
  1354. readOnly:
  1355. description: Mounted read-only if true, read-write otherwise
  1356. (false or unspecified). Defaults to false.
  1357. type: boolean
  1358. subPath:
  1359. description: Path within the volume from which the container's
  1360. volume should be mounted. Defaults to "" (volume's root).
  1361. type: string
  1362. required:
  1363. - name
  1364. - mountPath
  1365. type: array
  1366. workingDir:
  1367. description: Container's working directory. If not specified,
  1368. the container runtime's default will be used, which might be
  1369. configured in the container image. Cannot be updated.
  1370. type: string
  1371. required:
  1372. - name
  1373. type: array
  1374. externalUrl:
  1375. description: The external URL the Alertmanager instances will be available
  1376. under. This is necessary to generate correct URLs. This is necessary
  1377. if Alertmanager is not served from root of a DNS name.
  1378. type: string
  1379. imagePullSecrets:
  1380. description: An optional list of references to secrets in the same namespace
  1381. to use for pulling prometheus and alertmanager images from registries
  1382. see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod
  1383. items:
  1384. description: LocalObjectReference contains enough information to let
  1385. you locate the referenced object inside the same namespace.
  1386. properties:
  1387. name:
  1388. description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
  1389. type: string
  1390. type: array
  1391. listenLocal:
  1392. description: ListenLocal makes the Alertmanager server listen on loopback,
  1393. so that it does not bind against the Pod IP. Note this is only for
  1394. the Alertmanager UI, not the gossip communication.
  1395. type: boolean
  1396. logLevel:
  1397. description: Log level for Alertmanager to be configured with.
  1398. type: string
  1399. nodeSelector:
  1400. description: Define which Nodes the Pods are scheduled on.
  1401. type: object
  1402. paused:
  1403. description: If set to true all actions on the underlaying managed objects
  1404. are not goint to be performed, except for delete actions.
  1405. type: boolean
  1406. podMetadata:
  1407. description: ObjectMeta is metadata that all persisted resources must
  1408. have, which includes all objects users must create.
  1409. properties:
  1410. annotations:
  1411. description: 'Annotations is an unstructured key value map stored
  1412. with a resource that may be set by external tools to store and
  1413. retrieve arbitrary metadata. They are not queryable and should
  1414. be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
  1415. type: object
  1416. clusterName:
  1417. description: The name of the cluster which the object belongs to.
  1418. This is used to distinguish resources with same name and namespace
  1419. in different clusters. This field is not set anywhere right now
  1420. and apiserver is going to ignore it if set in create or update
  1421. request.
  1422. type: string
  1423. creationTimestamp:
  1424. description: Time is a wrapper around time.Time which supports correct
  1425. marshaling to YAML and JSON. Wrappers are provided for many of
  1426. the factory methods that the time package offers.
  1427. format: date-time
  1428. type: string
  1429. deletionGracePeriodSeconds:
  1430. description: Number of seconds allowed for this object to gracefully
  1431. terminate before it will be removed from the system. Only set
  1432. when deletionTimestamp is also set. May only be shortened. Read-only.
  1433. format: int64
  1434. type: integer
  1435. deletionTimestamp:
  1436. description: Time is a wrapper around time.Time which supports correct
  1437. marshaling to YAML and JSON. Wrappers are provided for many of
  1438. the factory methods that the time package offers.
  1439. format: date-time
  1440. type: string
  1441. finalizers:
  1442. description: Must be empty before the object is deleted from the
  1443. registry. Each entry is an identifier for the responsible component
  1444. that will remove the entry from the list. If the deletionTimestamp
  1445. of the object is non-nil, entries in this list can only be removed.
  1446. items:
  1447. type: string
  1448. type: array
  1449. generateName:
  1450. description: |-
  1451. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
  1452. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).
  1453. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
  1454. type: string
  1455. generation:
  1456. description: A sequence number representing a specific generation
  1457. of the desired state. Populated by the system. Read-only.
  1458. format: int64
  1459. type: integer
  1460. initializers:
  1461. description: Initializers tracks the progress of initialization.
  1462. properties:
  1463. pending:
  1464. description: Pending is a list of initializers that must execute
  1465. in order before this object is visible. When the last pending
  1466. initializer is removed, and no failing result is set, the
  1467. initializers struct will be set to nil and the object is considered
  1468. as initialized and visible to all clients.
  1469. items:
  1470. description: Initializer is information about an initializer
  1471. that has not yet completed.
  1472. properties:
  1473. name:
  1474. description: name of the process that is responsible for
  1475. initializing this object.
  1476. type: string
  1477. required:
  1478. - name
  1479. type: array
  1480. result:
  1481. description: Status is a return value for calls that don't return
  1482. other objects.
  1483. properties:
  1484. apiVersion:
  1485. description: 'APIVersion defines the versioned schema of
  1486. this representation of an object. Servers should convert
  1487. recognized schemas to the latest internal value, and may
  1488. reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
  1489. type: string
  1490. code:
  1491. description: Suggested HTTP return code for this status,
  1492. 0 if not set.
  1493. format: int32
  1494. type: integer
  1495. details:
  1496. description: StatusDetails is a set of additional properties
  1497. that MAY be set by the server to provide additional information
  1498. about a response. The Reason field of a Status object
  1499. defines what attributes will be set. Clients must ignore
  1500. fields that do not match the defined type of each attribute,
  1501. and should assume that any attribute may be empty, invalid,
  1502. or under defined.
  1503. properties:
  1504. causes:
  1505. description: The Causes array includes more details
  1506. associated with the StatusReason failure. Not all
  1507. StatusReasons may provide detailed causes.
  1508. items:
  1509. description: StatusCause provides more information
  1510. about an api.Status failure, including cases when
  1511. multiple errors are encountered.
  1512. properties:
  1513. field:
  1514. description: |-
  1515. The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
  1516. Examples:
  1517. "name" - the field "name" on the current resource
  1518. "items[0].name" - the field "name" on the first array entry in "items"
  1519. type: string
  1520. message:
  1521. description: A human-readable description of the
  1522. cause of the error. This field may be presented
  1523. as-is to a reader.
  1524. type: string
  1525. reason:
  1526. description: A machine-readable description of
  1527. the cause of the error. If this value is empty
  1528. there is no information available.
  1529. type: string
  1530. type: array
  1531. group:
  1532. description: The group attribute of the resource associated
  1533. with the status StatusReason.
  1534. type: string
  1535. kind:
  1536. description: 'The kind attribute of the resource associated
  1537. with the status StatusReason. On some operations may
  1538. differ from the requested resource Kind. More info:
  1539. https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  1540. type: string
  1541. name:
  1542. description: The name attribute of the resource associated
  1543. with the status StatusReason (when there is a single
  1544. name which can be described).
  1545. type: string
  1546. retryAfterSeconds:
  1547. description: If specified, the time in seconds before
  1548. the operation should be retried. Some errors may indicate
  1549. the client must take an alternate action - for those
  1550. errors this field may indicate how long to wait before
  1551. taking the alternate action.
  1552. format: int32
  1553. type: integer
  1554. uid:
  1555. description: 'UID of the resource. (when there is a
  1556. single resource which can be described). More info:
  1557. http://kubernetes.io/docs/user-guide/identifiers#uids'
  1558. type: string
  1559. kind:
  1560. description: 'Kind is a string value representing the REST
  1561. resource this object represents. Servers may infer this
  1562. from the endpoint the client submits requests to. Cannot
  1563. be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  1564. type: string
  1565. message:
  1566. description: A human-readable description of the status
  1567. of this operation.
  1568. type: string
  1569. metadata:
  1570. description: ListMeta describes metadata that synthetic
  1571. resources must have, including lists and various status
  1572. objects. A resource may have only one of {ObjectMeta,
  1573. ListMeta}.
  1574. properties:
  1575. continue:
  1576. description: continue may be set if the user set a limit
  1577. on the number of items returned, and indicates that
  1578. the server has more data available. The value is opaque
  1579. and may be used to issue another request to the endpoint
  1580. that served this list to retrieve the next set of
  1581. available objects. Continuing a consistent list may
  1582. not be possible if the server configuration has changed
  1583. or more than a few minutes have passed. The resourceVersion
  1584. field returned when using this continue value will
  1585. be identical to the value in the first response, unless
  1586. you have received this token from an error message.
  1587. type: string
  1588. resourceVersion:
  1589. description: 'String that identifies the server''s internal
  1590. version of this object that can be used by clients
  1591. to determine when objects have changed. Value must
  1592. be treated as opaque by clients and passed unmodified
  1593. back to the server. Populated by the system. Read-only.
  1594. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency'
  1595. type: string
  1596. selfLink:
  1597. description: selfLink is a URL representing this object.
  1598. Populated by the system. Read-only.
  1599. type: string
  1600. reason:
  1601. description: A machine-readable description of why this
  1602. operation is in the "Failure" status. If this value is
  1603. empty there is no information available. A Reason clarifies
  1604. an HTTP status code but does not override it.
  1605. type: string
  1606. status:
  1607. description: 'Status of the operation. One of: "Success"
  1608. or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status'
  1609. type: string
  1610. required:
  1611. - pending
  1612. labels:
  1613. description: 'Map of string keys and values that can be used to
  1614. organize and categorize (scope and select) objects. May match
  1615. selectors of replication controllers and services. More info:
  1616. http://kubernetes.io/docs/user-guide/labels'
  1617. type: object
  1618. name:
  1619. description: 'Name must be unique within a namespace. Is required
  1620. when creating resources, although some resources may allow a client
  1621. to request the generation of an appropriate name automatically.
  1622. Name is primarily intended for creation idempotence and configuration
  1623. definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
  1624. type: string
  1625. namespace:
  1626. description: |-
  1627. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
  1628. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
  1629. type: string
  1630. ownerReferences:
  1631. description: List of objects depended by this object. If ALL objects
  1632. in the list have been deleted, this object will be garbage collected.
  1633. If this object is managed by a controller, then an entry in this
  1634. list will point to this controller, with the controller field
  1635. set to true. There cannot be more than one managing controller.
  1636. items:
  1637. description: OwnerReference contains enough information to let
  1638. you identify an owning object. Currently, an owning object must
  1639. be in the same namespace, so there is no namespace field.
  1640. properties:
  1641. apiVersion:
  1642. description: API version of the referent.
  1643. type: string
  1644. blockOwnerDeletion:
  1645. description: If true, AND if the owner has the "foregroundDeletion"
  1646. finalizer, then the owner cannot be deleted from the key-value
  1647. store until this reference is removed. Defaults to false.
  1648. To set this field, a user needs "delete" permission of the
  1649. owner, otherwise 422 (Unprocessable Entity) will be returned.
  1650. type: boolean
  1651. controller:
  1652. description: If true, this reference points to the managing
  1653. controller.
  1654. type: boolean
  1655. kind:
  1656. description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  1657. type: string
  1658. name:
  1659. description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
  1660. type: string
  1661. uid:
  1662. description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
  1663. type: string
  1664. required:
  1665. - apiVersion
  1666. - kind
  1667. - name
  1668. - uid
  1669. type: array
  1670. resourceVersion:
  1671. description: |-
  1672. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
  1673. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
  1674. type: string
  1675. selfLink:
  1676. description: SelfLink is a URL representing this object. Populated
  1677. by the system. Read-only.
  1678. type: string
  1679. uid:
  1680. description: |-
  1681. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
  1682. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
  1683. type: string
  1684. priorityClassName:
  1685. description: Priority class assigned to the Pods
  1686. type: string
  1687. replicas:
  1688. description: Size is the expected size of the alertmanager cluster.
  1689. The controller will eventually make the size of the running cluster
  1690. equal to the expected size.
  1691. format: int32
  1692. type: integer
  1693. resources:
  1694. description: ResourceRequirements describes the compute resource requirements.
  1695. properties:
  1696. limits:
  1697. description: 'Limits describes the maximum amount of compute resources
  1698. allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1699. type: object
  1700. requests:
  1701. description: 'Requests describes the minimum amount of compute resources
  1702. required. If Requests is omitted for a container, it defaults
  1703. to Limits if that is explicitly specified, otherwise to an implementation-defined
  1704. value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1705. type: object
  1706. retention:
  1707. description: Time duration Alertmanager shall retain data for. Default
  1708. is '120h', and must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)`
  1709. (milliseconds seconds minutes hours days weeks years).
  1710. type: string
  1711. routePrefix:
  1712. description: The route prefix Alertmanager registers HTTP handlers for.
  1713. This is useful, if using ExternalURL and a proxy is rewriting HTTP
  1714. routes of a request, and the actual ExternalURL is still true, but
  1715. the server serves requests under a different route prefix. For example
  1716. for use with `kubectl proxy`.
  1717. type: string
  1718. secrets:
  1719. description: Secrets is a list of Secrets in the same namespace as the
  1720. Alertmanager object, which shall be mounted into the Alertmanager
  1721. Pods. The Secrets are mounted into /etc/alertmanager/secrets/<secret-name>.
  1722. items:
  1723. type: string
  1724. type: array
  1725. securityContext:
  1726. description: PodSecurityContext holds pod-level security attributes
  1727. and common container settings. Some fields are also present in container.securityContext. Field
  1728. values of container.securityContext take precedence over field values
  1729. of PodSecurityContext.
  1730. properties:
  1731. fsGroup:
  1732. description: |-
  1733. A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:
  1734. 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----
  1735. If unset, the Kubelet will not modify the ownership and permissions of any volume.
  1736. format: int64
  1737. type: integer
  1738. runAsGroup:
  1739. description: The GID to run the entrypoint of the container process.
  1740. Uses runtime default if unset. May also be set in SecurityContext. If
  1741. set in both SecurityContext and PodSecurityContext, the value
  1742. specified in SecurityContext takes precedence for that container.
  1743. format: int64
  1744. type: integer
  1745. runAsNonRoot:
  1746. description: Indicates that the container must run as a non-root
  1747. user. If true, the Kubelet will validate the image at runtime
  1748. to ensure that it does not run as UID 0 (root) and fail to start
  1749. the container if it does. If unset or false, no such validation
  1750. will be performed. May also be set in SecurityContext. If set
  1751. in both SecurityContext and PodSecurityContext, the value specified
  1752. in SecurityContext takes precedence.
  1753. type: boolean
  1754. runAsUser:
  1755. description: The UID to run the entrypoint of the container process.
  1756. Defaults to user specified in image metadata if unspecified. May
  1757. also be set in SecurityContext. If set in both SecurityContext
  1758. and PodSecurityContext, the value specified in SecurityContext
  1759. takes precedence for that container.
  1760. format: int64
  1761. type: integer
  1762. seLinuxOptions:
  1763. description: SELinuxOptions are the labels to be applied to the
  1764. container
  1765. properties:
  1766. level:
  1767. description: Level is SELinux level label that applies to the
  1768. container.
  1769. type: string
  1770. role:
  1771. description: Role is a SELinux role label that applies to the
  1772. container.
  1773. type: string
  1774. type:
  1775. description: Type is a SELinux type label that applies to the
  1776. container.
  1777. type: string
  1778. user:
  1779. description: User is a SELinux user label that applies to the
  1780. container.
  1781. type: string
  1782. supplementalGroups:
  1783. description: A list of groups applied to the first process run in
  1784. each container, in addition to the container's primary GID. If
  1785. unspecified, no groups will be added to any container.
  1786. items:
  1787. format: int64
  1788. type: integer
  1789. type: array
  1790. sysctls:
  1791. description: Sysctls hold a list of namespaced sysctls used for
  1792. the pod. Pods with unsupported sysctls (by the container runtime)
  1793. might fail to launch.
  1794. items:
  1795. description: Sysctl defines a kernel parameter to be set
  1796. properties:
  1797. name:
  1798. description: Name of a property to set
  1799. type: string
  1800. value:
  1801. description: Value of a property to set
  1802. type: string
  1803. required:
  1804. - name
  1805. - value
  1806. type: array
  1807. serviceAccountName:
  1808. description: ServiceAccountName is the name of the ServiceAccount to
  1809. use to run the Prometheus Pods.
  1810. type: string
  1811. sha:
  1812. description: SHA of Alertmanager container image to be deployed. Defaults
  1813. to the value of `version`. Similar to a tag, but the SHA explicitly
  1814. deploys an immutable container image. Version and Tag are ignored
  1815. if SHA is set.
  1816. type: string
  1817. storage:
  1818. description: StorageSpec defines the configured storage for a group
  1819. Prometheus servers. If neither `emptyDir` nor `volumeClaimTemplate`
  1820. is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir)
  1821. will be used.
  1822. properties:
  1823. class:
  1824. description: 'Name of the StorageClass to use when requesting storage
  1825. provisioning. More info: https://kubernetes.io/docs/user-guide/persistent-volumes/#storageclasses
  1826. (DEPRECATED - instead use `volumeClaimTemplate.spec.storageClassName`)'
  1827. type: string
  1828. emptyDir:
  1829. description: Represents an empty directory for a pod. Empty directory
  1830. volumes support ownership management and SELinux relabeling.
  1831. properties:
  1832. medium:
  1833. description: 'What type of storage medium should back this directory.
  1834. The default is "" which means to use the node''s default medium.
  1835. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir'
  1836. type: string
  1837. sizeLimit: {}
  1838. resources:
  1839. description: ResourceRequirements describes the compute resource
  1840. requirements.
  1841. properties:
  1842. limits:
  1843. description: 'Limits describes the maximum amount of compute
  1844. resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1845. type: object
  1846. requests:
  1847. description: 'Requests describes the minimum amount of compute
  1848. resources required. If Requests is omitted for a container,
  1849. it defaults to Limits if that is explicitly specified, otherwise
  1850. to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  1851. type: object
  1852. selector:
  1853. description: A label selector is a label query over a set of resources.
  1854. The result of matchLabels and matchExpressions are ANDed. An empty
  1855. label selector matches all objects. A null label selector matches
  1856. no objects.
  1857. properties:
  1858. matchExpressions:
  1859. description: matchExpressions is a list of label selector requirements.
  1860. The requirements are ANDed.
  1861. items:
  1862. description: A label selector requirement is a selector that
  1863. contains values, a key, and an operator that relates the
  1864. key and values.
  1865. properties:
  1866. key:
  1867. description: key is the label key that the selector applies
  1868. to.
  1869. type: string
  1870. operator:
  1871. description: operator represents a key's relationship
  1872. to a set of values. Valid operators are In, NotIn, Exists
  1873. and DoesNotExist.
  1874. type: string
  1875. values:
  1876. description: values is an array of string values. If the
  1877. operator is In or NotIn, the values array must be non-empty.
  1878. If the operator is Exists or DoesNotExist, the values
  1879. array must be empty. This array is replaced during a
  1880. strategic merge patch.
  1881. items:
  1882. type: string
  1883. type: array
  1884. required:
  1885. - key
  1886. - operator
  1887. type: array
  1888. matchLabels:
  1889. description: matchLabels is a map of {key,value} pairs. A single
  1890. {key,value} in the matchLabels map is equivalent to an element
  1891. of matchExpressions, whose key field is "key", the operator
  1892. is "In", and the values array contains only "value". The requirements
  1893. are ANDed.
  1894. type: object
  1895. volumeClaimTemplate:
  1896. description: PersistentVolumeClaim is a user's request for and claim
  1897. to a persistent volume
  1898. properties:
  1899. apiVersion:
  1900. description: 'APIVersion defines the versioned schema of this
  1901. representation of an object. Servers should convert recognized
  1902. schemas to the latest internal value, and may reject unrecognized
  1903. values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
  1904. type: string
  1905. kind:
  1906. description: 'Kind is a string value representing the REST resource
  1907. this object represents. Servers may infer this from the endpoint
  1908. the client submits requests to. Cannot be updated. In CamelCase.
  1909. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  1910. type: string
  1911. metadata:
  1912. description: ObjectMeta is metadata that all persisted resources
  1913. must have, which includes all objects users must create.
  1914. properties:
  1915. annotations:
  1916. description: 'Annotations is an unstructured key value map
  1917. stored with a resource that may be set by external tools
  1918. to store and retrieve arbitrary metadata. They are not
  1919. queryable and should be preserved when modifying objects.
  1920. More info: http://kubernetes.io/docs/user-guide/annotations'
  1921. type: object
  1922. clusterName:
  1923. description: The name of the cluster which the object belongs
  1924. to. This is used to distinguish resources with same name
  1925. and namespace in different clusters. This field is not
  1926. set anywhere right now and apiserver is going to ignore
  1927. it if set in create or update request.
  1928. type: string
  1929. creationTimestamp:
  1930. description: Time is a wrapper around time.Time which supports
  1931. correct marshaling to YAML and JSON. Wrappers are provided
  1932. for many of the factory methods that the time package
  1933. offers.
  1934. format: date-time
  1935. type: string
  1936. deletionGracePeriodSeconds:
  1937. description: Number of seconds allowed for this object to
  1938. gracefully terminate before it will be removed from the
  1939. system. Only set when deletionTimestamp is also set. May
  1940. only be shortened. Read-only.
  1941. format: int64
  1942. type: integer
  1943. deletionTimestamp:
  1944. description: Time is a wrapper around time.Time which supports
  1945. correct marshaling to YAML and JSON. Wrappers are provided
  1946. for many of the factory methods that the time package
  1947. offers.
  1948. format: date-time
  1949. type: string
  1950. finalizers:
  1951. description: Must be empty before the object is deleted
  1952. from the registry. Each entry is an identifier for the
  1953. responsible component that will remove the entry from
  1954. the list. If the deletionTimestamp of the object is non-nil,
  1955. entries in this list can only be removed.
  1956. items:
  1957. type: string
  1958. type: array
  1959. generateName:
  1960. description: |-
  1961. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
  1962. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).
  1963. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
  1964. type: string
  1965. generation:
  1966. description: A sequence number representing a specific generation
  1967. of the desired state. Populated by the system. Read-only.
  1968. format: int64
  1969. type: integer
  1970. initializers:
  1971. description: Initializers tracks the progress of initialization.
  1972. properties:
  1973. pending:
  1974. description: Pending is a list of initializers that
  1975. must execute in order before this object is visible.
  1976. When the last pending initializer is removed, and
  1977. no failing result is set, the initializers struct
  1978. will be set to nil and the object is considered as
  1979. initialized and visible to all clients.
  1980. items:
  1981. description: Initializer is information about an initializer
  1982. that has not yet completed.
  1983. properties:
  1984. name:
  1985. description: name of the process that is responsible
  1986. for initializing this object.
  1987. type: string
  1988. required:
  1989. - name
  1990. type: array
  1991. result:
  1992. description: Status is a return value for calls that
  1993. don't return other objects.
  1994. properties:
  1995. apiVersion:
  1996. description: 'APIVersion defines the versioned schema
  1997. of this representation of an object. Servers should
  1998. convert recognized schemas to the latest internal
  1999. value, and may reject unrecognized values. More
  2000. info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
  2001. type: string
  2002. code:
  2003. description: Suggested HTTP return code for this
  2004. status, 0 if not set.
  2005. format: int32
  2006. type: integer
  2007. details:
  2008. description: StatusDetails is a set of additional
  2009. properties that MAY be set by the server to provide
  2010. additional information about a response. The Reason
  2011. field of a Status object defines what attributes
  2012. will be set. Clients must ignore fields that do
  2013. not match the defined type of each attribute,
  2014. and should assume that any attribute may be empty,
  2015. invalid, or under defined.
  2016. properties:
  2017. causes:
  2018. description: The Causes array includes more
  2019. details associated with the StatusReason failure.
  2020. Not all StatusReasons may provide detailed
  2021. causes.
  2022. items:
  2023. description: StatusCause provides more information
  2024. about an api.Status failure, including cases
  2025. when multiple errors are encountered.
  2026. properties:
  2027. field:
  2028. description: |-
  2029. The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
  2030. Examples:
  2031. "name" - the field "name" on the current resource
  2032. "items[0].name" - the field "name" on the first array entry in "items"
  2033. type: string
  2034. message:
  2035. description: A human-readable description
  2036. of the cause of the error. This field
  2037. may be presented as-is to a reader.
  2038. type: string
  2039. reason:
  2040. description: A machine-readable description
  2041. of the cause of the error. If this value
  2042. is empty there is no information available.
  2043. type: string
  2044. type: array
  2045. group:
  2046. description: The group attribute of the resource
  2047. associated with the status StatusReason.
  2048. type: string
  2049. kind:
  2050. description: 'The kind attribute of the resource
  2051. associated with the status StatusReason. On
  2052. some operations may differ from the requested
  2053. resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  2054. type: string
  2055. name:
  2056. description: The name attribute of the resource
  2057. associated with the status StatusReason (when
  2058. there is a single name which can be described).
  2059. type: string
  2060. retryAfterSeconds:
  2061. description: If specified, the time in seconds
  2062. before the operation should be retried. Some
  2063. errors may indicate the client must take an
  2064. alternate action - for those errors this field
  2065. may indicate how long to wait before taking
  2066. the alternate action.
  2067. format: int32
  2068. type: integer
  2069. uid:
  2070. description: 'UID of the resource. (when there
  2071. is a single resource which can be described).
  2072. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
  2073. type: string
  2074. kind:
  2075. description: 'Kind is a string value representing
  2076. the REST resource this object represents. Servers
  2077. may infer this from the endpoint the client submits
  2078. requests to. Cannot be updated. In CamelCase.
  2079. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  2080. type: string
  2081. message:
  2082. description: A human-readable description of the
  2083. status of this operation.
  2084. type: string
  2085. metadata:
  2086. description: ListMeta describes metadata that synthetic
  2087. resources must have, including lists and various
  2088. status objects. A resource may have only one of
  2089. {ObjectMeta, ListMeta}.
  2090. properties:
  2091. continue:
  2092. description: continue may be set if the user
  2093. set a limit on the number of items returned,
  2094. and indicates that the server has more data
  2095. available. The value is opaque and may be
  2096. used to issue another request to the endpoint
  2097. that served this list to retrieve the next
  2098. set of available objects. Continuing a consistent
  2099. list may not be possible if the server configuration
  2100. has changed or more than a few minutes have
  2101. passed. The resourceVersion field returned
  2102. when using this continue value will be identical
  2103. to the value in the first response, unless
  2104. you have received this token from an error
  2105. message.
  2106. type: string
  2107. resourceVersion:
  2108. description: 'String that identifies the server''s
  2109. internal version of this object that can be
  2110. used by clients to determine when objects
  2111. have changed. Value must be treated as opaque
  2112. by clients and passed unmodified back to the
  2113. server. Populated by the system. Read-only.
  2114. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency'
  2115. type: string
  2116. selfLink:
  2117. description: selfLink is a URL representing
  2118. this object. Populated by the system. Read-only.
  2119. type: string
  2120. reason:
  2121. description: A machine-readable description of why
  2122. this operation is in the "Failure" status. If
  2123. this value is empty there is no information available.
  2124. A Reason clarifies an HTTP status code but does
  2125. not override it.
  2126. type: string
  2127. status:
  2128. description: 'Status of the operation. One of: "Success"
  2129. or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status'
  2130. type: string
  2131. required:
  2132. - pending
  2133. labels:
  2134. description: 'Map of string keys and values that can be
  2135. used to organize and categorize (scope and select) objects.
  2136. May match selectors of replication controllers and services.
  2137. More info: http://kubernetes.io/docs/user-guide/labels'
  2138. type: object
  2139. name:
  2140. description: 'Name must be unique within a namespace. Is
  2141. required when creating resources, although some resources
  2142. may allow a client to request the generation of an appropriate
  2143. name automatically. Name is primarily intended for creation
  2144. idempotence and configuration definition. Cannot be updated.
  2145. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
  2146. type: string
  2147. namespace:
  2148. description: |-
  2149. Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
  2150. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
  2151. type: string
  2152. ownerReferences:
  2153. description: List of objects depended by this object. If
  2154. ALL objects in the list have been deleted, this object
  2155. will be garbage collected. If this object is managed by
  2156. a controller, then an entry in this list will point to
  2157. this controller, with the controller field set to true.
  2158. There cannot be more than one managing controller.
  2159. items:
  2160. description: OwnerReference contains enough information
  2161. to let you identify an owning object. Currently, an
  2162. owning object must be in the same namespace, so there
  2163. is no namespace field.
  2164. properties:
  2165. apiVersion:
  2166. description: API version of the referent.
  2167. type: string
  2168. blockOwnerDeletion:
  2169. description: If true, AND if the owner has the "foregroundDeletion"
  2170. finalizer, then the owner cannot be deleted from
  2171. the key-value store until this reference is removed.
  2172. Defaults to false. To set this field, a user needs
  2173. "delete" permission of the owner, otherwise 422
  2174. (Unprocessable Entity) will be returned.
  2175. type: boolean
  2176. controller:
  2177. description: If true, this reference points to the
  2178. managing controller.
  2179. type: boolean
  2180. kind:
  2181. description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
  2182. type: string
  2183. name:
  2184. description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
  2185. type: string
  2186. uid:
  2187. description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
  2188. type: string
  2189. required:
  2190. - apiVersion
  2191. - kind
  2192. - name
  2193. - uid
  2194. type: array
  2195. resourceVersion:
  2196. description: |-
  2197. An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
  2198. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
  2199. type: string
  2200. selfLink:
  2201. description: SelfLink is a URL representing this object.
  2202. Populated by the system. Read-only.
  2203. type: string
  2204. uid:
  2205. description: |-
  2206. UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
  2207. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
  2208. type: string
  2209. spec:
  2210. description: PersistentVolumeClaimSpec describes the common
  2211. attributes of storage devices and allows a Source for provider-specific
  2212. attributes
  2213. properties:
  2214. accessModes:
  2215. description: 'AccessModes contains the desired access modes
  2216. the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
  2217. items:
  2218. type: string
  2219. type: array
  2220. dataSource:
  2221. description: TypedLocalObjectReference contains enough information
  2222. to let you locate the typed referenced object inside the
  2223. same namespace.
  2224. properties:
  2225. apiGroup:
  2226. description: APIGroup is the group for the resource
  2227. being referenced. If APIGroup is not specified, the
  2228. specified Kind must be in the core API group. For
  2229. any other third-party types, APIGroup is required.
  2230. type: string
  2231. kind:
  2232. description: Kind is the type of resource being referenced
  2233. type: string
  2234. name:
  2235. description: Name is the name of resource being referenced
  2236. type: string
  2237. required:
  2238. - kind
  2239. - name
  2240. resources:
  2241. description: ResourceRequirements describes the compute
  2242. resource requirements.
  2243. properties:
  2244. limits:
  2245. description: 'Limits describes the maximum amount of
  2246. compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  2247. type: object
  2248. requests:
  2249. description: 'Requests describes the minimum amount
  2250. of compute resources required. If Requests is omitted
  2251. for a container, it defaults to Limits if that is
  2252. explicitly specified, otherwise to an implementation-defined
  2253. value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
  2254. type: object
  2255. selector:
  2256. description: A label selector is a label query over a set
  2257. of resources. The result of matchLabels and matchExpressions
  2258. are ANDed. An empty label selector matches all objects.
  2259. A null label selector matches no objects.
  2260. properties:
  2261. matchExpressions:
  2262. description: matchExpressions is a list of label selector
  2263. requirements. The requirements are ANDed.
  2264. items:
  2265. description: A label selector requirement is a selector
  2266. that contains values, a key, and an operator that
  2267. relates the key and values.
  2268. properties:
  2269. key:
  2270. description: key is the label key that the selector
  2271. applies to.
  2272. type: string
  2273. operator:
  2274. description: operator represents a key's relationship
  2275. to a set of values. Valid operators are In,
  2276. NotIn, Exists and DoesNotExist.
  2277. type: string
  2278. values:
  2279. description: values is an array of string values.
  2280. If the operator is In or NotIn, the values array
  2281. must be non-empty. If the operator is Exists
  2282. or DoesNotExist, the values array must be empty.
  2283. This array is replaced during a strategic merge
  2284. patch.
  2285. items:
  2286. type: string
  2287. type: array
  2288. required:
  2289. - key
  2290. - operator
  2291. type: array
  2292. matchLabels:
  2293. description: matchLabels is a map of {key,value} pairs.
  2294. A single {key,value} in the matchLabels map is equivalent
  2295. to an element of matchExpressions, whose key field
  2296. is "key", the operator is "In", and the values array
  2297. contains only "value". The requirements are ANDed.
  2298. type: object
  2299. storageClassName:
  2300. description: 'Name of the StorageClass required by the claim.
  2301. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
  2302. type: string
  2303. volumeMode:
  2304. description: volumeMode defines what type of volume is required
  2305. by the claim. Value of Filesystem is implied when not
  2306. included in claim spec. This is an alpha feature and may
  2307. change in the future.
  2308. type: string
  2309. volumeName:
  2310. description: VolumeName is the binding reference to the
  2311. PersistentVolume backing this claim.
  2312. type: string
  2313. status:
  2314. description: PersistentVolumeClaimStatus is the current status
  2315. of a persistent volume claim.
  2316. properties:
  2317. accessModes:
  2318. description: 'AccessModes contains the actual access modes
  2319. the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
  2320. items:
  2321. type: string
  2322. type: array
  2323. capacity:
  2324. description: Represents the actual resources of the underlying
  2325. volume.
  2326. type: object
  2327. conditions:
  2328. description: Current Condition of persistent volume claim.
  2329. If underlying persistent volume is being resized then
  2330. the Condition will be set to 'ResizeStarted'.
  2331. items:
  2332. description: PersistentVolumeClaimCondition contails details
  2333. about state of pvc
  2334. properties:
  2335. lastProbeTime:
  2336. description: Time is a wrapper around time.Time which
  2337. supports correct marshaling to YAML and JSON. Wrappers
  2338. are provided for many of the factory methods that
  2339. the time package offers.
  2340. format: date-time
  2341. type: string
  2342. lastTransitionTime:
  2343. description: Time is a wrapper around time.Time which
  2344. supports correct marshaling to YAML and JSON. Wrappers
  2345. are provided for many of the factory methods that
  2346. the time package offers.
  2347. format: date-time
  2348. type: string
  2349. message:
  2350. description: Human-readable message indicating details
  2351. about last transition.
  2352. type: string
  2353. reason:
  2354. description: Unique, this should be a short, machine
  2355. understandable string that gives the reason for
  2356. condition's last transition. If it reports "ResizeStarted"
  2357. that means the underlying persistent volume is being
  2358. resized.
  2359. type: string
  2360. status:
  2361. type: string
  2362. type:
  2363. type: string
  2364. required:
  2365. - type
  2366. - status
  2367. type: array
  2368. phase:
  2369. description: Phase represents the current phase of PersistentVolumeClaim.
  2370. type: string
  2371. tag:
  2372. description: Tag of Alertmanager container image to be deployed. Defaults
  2373. to the value of `version`. Version is ignored if Tag is set.
  2374. type: string
  2375. tolerations:
  2376. description: If specified, the pod's tolerations.
  2377. items:
  2378. description: The pod this Toleration is attached to tolerates any
  2379. taint that matches the triple <key,value,effect> using the matching
  2380. operator <operator>.
  2381. properties:
  2382. effect:
  2383. description: Effect indicates the taint effect to match. Empty
  2384. means match all taint effects. When specified, allowed values
  2385. are NoSchedule, PreferNoSchedule and NoExecute.
  2386. type: string
  2387. key:
  2388. description: Key is the taint key that the toleration applies
  2389. to. Empty means match all taint keys. If the key is empty, operator
  2390. must be Exists; this combination means to match all values and
  2391. all keys.
  2392. type: string
  2393. operator:
  2394. description: Operator represents a key's relationship to the value.
  2395. Valid operators are Exists and Equal. Defaults to Equal. Exists
  2396. is equivalent to wildcard for value, so that a pod can tolerate
  2397. all taints of a particular category.
  2398. type: string
  2399. tolerationSeconds:
  2400. description: TolerationSeconds represents the period of time the
  2401. toleration (which must be of effect NoExecute, otherwise this
  2402. field is ignored) tolerates the taint. By default, it is not
  2403. set, which means tolerate the taint forever (do not evict).
  2404. Zero and negative values will be treated as 0 (evict immediately)
  2405. by the system.
  2406. format: int64
  2407. type: integer
  2408. value:
  2409. description: Value is the taint value the toleration matches to.
  2410. If the operator is Exists, the value should be empty, otherwise
  2411. just a regular string.
  2412. type: string
  2413. type: array
  2414. version:
  2415. description: Version the cluster should be on.
  2416. type: string
  2417. status:
  2418. description: 'AlertmanagerStatus is the most recent observed status of the
  2419. Alertmanager cluster. Read-only. Not included when requesting from the
  2420. apiserver, only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status'
  2421. properties:
  2422. availableReplicas:
  2423. description: Total number of available pods (ready for at least minReadySeconds)
  2424. targeted by this Alertmanager cluster.
  2425. format: int32
  2426. type: integer
  2427. paused:
  2428. description: Represents whether any actions on the underlaying managed
  2429. objects are being performed. Only delete actions will be performed.
  2430. type: boolean
  2431. replicas:
  2432. description: Total number of non-terminated pods targeted by this Alertmanager
  2433. cluster (their labels match the selector).
  2434. format: int32
  2435. type: integer
  2436. unavailableReplicas:
  2437. description: Total number of unavailable pods targeted by this Alertmanager
  2438. cluster.
  2439. format: int32
  2440. type: integer
  2441. updatedReplicas:
  2442. description: Total number of non-terminated pods targeted by this Alertmanager
  2443. cluster that have the desired version spec.
  2444. format: int32
  2445. type: integer
  2446. required:
  2447. - paused
  2448. - replicas
  2449. - updatedReplicas
  2450. - availableReplicas
  2451. - unavailableReplicas
  2452. version: v1