locostack.com_components.yaml 275 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940
  1. ---
  2. apiVersion: apiextensions.k8s.io/v1
  3. kind: CustomResourceDefinition
  4. metadata:
  5. annotations:
  6. controller-gen.kubebuilder.io/version: v0.20.1
  7. name: components.locostack.com
  8. spec:
  9. group: locostack.com
  10. names:
  11. kind: Component
  12. listKind: ComponentList
  13. plural: components
  14. shortNames:
  15. - comp
  16. singular: component
  17. scope: Namespaced
  18. versions:
  19. - additionalPrinterColumns:
  20. - jsonPath: .spec.template.name
  21. name: Template
  22. type: string
  23. - jsonPath: .spec.template.spec.runtime.name
  24. name: Runtime
  25. type: string
  26. - jsonPath: .status.conditions[?(@.type=='Available')].status
  27. name: Available
  28. type: string
  29. name: v1alpha1
  30. schema:
  31. openAPIV3Schema:
  32. description: Component is the Schema for the components API
  33. properties:
  34. apiVersion:
  35. description: |-
  36. APIVersion defines the versioned schema of this representation of an object.
  37. Servers should convert recognized schemas to the latest internal value, and
  38. may reject unrecognized values.
  39. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  40. type: string
  41. kind:
  42. description: |-
  43. Kind is a string value representing the REST resource this object represents.
  44. Servers may infer this from the endpoint the client submits requests to.
  45. Cannot be updated.
  46. In CamelCase.
  47. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  48. type: string
  49. metadata:
  50. type: object
  51. spec:
  52. description: spec defines the desired state of Component
  53. properties:
  54. category:
  55. description: |-
  56. category is a string that represents the category of the component.
  57. category should be a short name for the workload type, such as "gateway", "database", or "model". It is used to generate consistent and descriptive names for resources like Deployments, Services, and ConfigMaps.
  58. category also limits the template options available for the component, as only templates that match the specified category will be considered valid.
  59. type: string
  60. dependencies:
  61. description: dependencies lists other components that this component
  62. depends on.
  63. items:
  64. description: ObjectReference contains enough information to let
  65. you inspect or modify the referred object.
  66. properties:
  67. apiVersion:
  68. description: API version of the referent.
  69. type: string
  70. fieldPath:
  71. description: |-
  72. If referring to a piece of an object instead of an entire object, this string
  73. should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
  74. For example, if the object reference is to a container within a pod, this would take on a value like:
  75. "spec.containers{name}" (where "name" refers to the name of the container that triggered
  76. the event) or if no container name is specified "spec.containers[2]" (container with
  77. index 2 in this pod). This syntax is chosen only to have some well-defined way of
  78. referencing a part of an object.
  79. type: string
  80. kind:
  81. description: |-
  82. Kind of the referent.
  83. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  84. type: string
  85. name:
  86. description: |-
  87. Name of the referent.
  88. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  89. type: string
  90. namespace:
  91. description: |-
  92. Namespace of the referent.
  93. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
  94. type: string
  95. resourceVersion:
  96. description: |-
  97. Specific resourceVersion to which this reference is made, if any.
  98. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
  99. type: string
  100. uid:
  101. description: |-
  102. UID of the referent.
  103. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
  104. type: string
  105. type: object
  106. x-kubernetes-map-type: atomic
  107. type: array
  108. stackRef:
  109. description: |-
  110. stackRef optionally references the Stack this component belongs to.
  111. Component may integrate with other enabled components in the same stack,
  112. resulting in different deployment manifests.
  113. properties:
  114. name:
  115. default: ""
  116. description: |-
  117. Name of the referent.
  118. This field is effectively required, but due to backwards compatibility is
  119. allowed to be empty. Instances of this type with an empty value here are
  120. almost certainly wrong.
  121. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  122. type: string
  123. type: object
  124. x-kubernetes-map-type: atomic
  125. template:
  126. description: template holds the configuration overrides for the component.
  127. properties:
  128. metadata:
  129. description: metadata is a standard object metadata.
  130. type: object
  131. name:
  132. description: name selects a built-in preset.
  133. type: string
  134. spec:
  135. description: spec holds the pod-level configuration for the workload.
  136. properties:
  137. affinity:
  138. description: affinity provides fine-grained node and pod (anti-)affinity
  139. rules.
  140. properties:
  141. nodeAffinity:
  142. description: Describes node affinity scheduling rules
  143. for the pod.
  144. properties:
  145. preferredDuringSchedulingIgnoredDuringExecution:
  146. description: |-
  147. The scheduler will prefer to schedule pods to nodes that satisfy
  148. the affinity expressions specified by this field, but it may choose
  149. a node that violates one or more of the expressions. The node that is
  150. most preferred is the one with the greatest sum of weights, i.e.
  151. for each node that meets all of the scheduling requirements (resource
  152. request, requiredDuringScheduling affinity expressions, etc.),
  153. compute a sum by iterating through the elements of this field and adding
  154. "weight" to the sum if the node matches the corresponding matchExpressions; the
  155. node(s) with the highest sum are the most preferred.
  156. items:
  157. description: |-
  158. An empty preferred scheduling term matches all objects with implicit weight 0
  159. (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
  160. properties:
  161. preference:
  162. description: A node selector term, associated
  163. with the corresponding weight.
  164. properties:
  165. matchExpressions:
  166. description: A list of node selector requirements
  167. by node's labels.
  168. items:
  169. description: |-
  170. A node selector requirement is a selector that contains values, a key, and an operator
  171. that relates the key and values.
  172. properties:
  173. key:
  174. description: The label key that the
  175. selector applies to.
  176. type: string
  177. operator:
  178. description: |-
  179. Represents a key's relationship to a set of values.
  180. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
  181. type: string
  182. values:
  183. description: |-
  184. An array of string values. If the operator is In or NotIn,
  185. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  186. the values array must be empty. If the operator is Gt or Lt, the values
  187. array must have a single element, which will be interpreted as an integer.
  188. This array is replaced during a strategic merge patch.
  189. items:
  190. type: string
  191. type: array
  192. x-kubernetes-list-type: atomic
  193. required:
  194. - key
  195. - operator
  196. type: object
  197. type: array
  198. x-kubernetes-list-type: atomic
  199. matchFields:
  200. description: A list of node selector requirements
  201. by node's fields.
  202. items:
  203. description: |-
  204. A node selector requirement is a selector that contains values, a key, and an operator
  205. that relates the key and values.
  206. properties:
  207. key:
  208. description: The label key that the
  209. selector applies to.
  210. type: string
  211. operator:
  212. description: |-
  213. Represents a key's relationship to a set of values.
  214. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
  215. type: string
  216. values:
  217. description: |-
  218. An array of string values. If the operator is In or NotIn,
  219. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  220. the values array must be empty. If the operator is Gt or Lt, the values
  221. array must have a single element, which will be interpreted as an integer.
  222. This array is replaced during a strategic merge patch.
  223. items:
  224. type: string
  225. type: array
  226. x-kubernetes-list-type: atomic
  227. required:
  228. - key
  229. - operator
  230. type: object
  231. type: array
  232. x-kubernetes-list-type: atomic
  233. type: object
  234. x-kubernetes-map-type: atomic
  235. weight:
  236. description: Weight associated with matching
  237. the corresponding nodeSelectorTerm, in the
  238. range 1-100.
  239. format: int32
  240. type: integer
  241. required:
  242. - preference
  243. - weight
  244. type: object
  245. type: array
  246. x-kubernetes-list-type: atomic
  247. requiredDuringSchedulingIgnoredDuringExecution:
  248. description: |-
  249. If the affinity requirements specified by this field are not met at
  250. scheduling time, the pod will not be scheduled onto the node.
  251. If the affinity requirements specified by this field cease to be met
  252. at some point during pod execution (e.g. due to an update), the system
  253. may or may not try to eventually evict the pod from its node.
  254. properties:
  255. nodeSelectorTerms:
  256. description: Required. A list of node selector
  257. terms. The terms are ORed.
  258. items:
  259. description: |-
  260. A null or empty node selector term matches no objects. The requirements of
  261. them are ANDed.
  262. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
  263. properties:
  264. matchExpressions:
  265. description: A list of node selector requirements
  266. by node's labels.
  267. items:
  268. description: |-
  269. A node selector requirement is a selector that contains values, a key, and an operator
  270. that relates the key and values.
  271. properties:
  272. key:
  273. description: The label key that the
  274. selector applies to.
  275. type: string
  276. operator:
  277. description: |-
  278. Represents a key's relationship to a set of values.
  279. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
  280. type: string
  281. values:
  282. description: |-
  283. An array of string values. If the operator is In or NotIn,
  284. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  285. the values array must be empty. If the operator is Gt or Lt, the values
  286. array must have a single element, which will be interpreted as an integer.
  287. This array is replaced during a strategic merge patch.
  288. items:
  289. type: string
  290. type: array
  291. x-kubernetes-list-type: atomic
  292. required:
  293. - key
  294. - operator
  295. type: object
  296. type: array
  297. x-kubernetes-list-type: atomic
  298. matchFields:
  299. description: A list of node selector requirements
  300. by node's fields.
  301. items:
  302. description: |-
  303. A node selector requirement is a selector that contains values, a key, and an operator
  304. that relates the key and values.
  305. properties:
  306. key:
  307. description: The label key that the
  308. selector applies to.
  309. type: string
  310. operator:
  311. description: |-
  312. Represents a key's relationship to a set of values.
  313. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
  314. type: string
  315. values:
  316. description: |-
  317. An array of string values. If the operator is In or NotIn,
  318. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  319. the values array must be empty. If the operator is Gt or Lt, the values
  320. array must have a single element, which will be interpreted as an integer.
  321. This array is replaced during a strategic merge patch.
  322. items:
  323. type: string
  324. type: array
  325. x-kubernetes-list-type: atomic
  326. required:
  327. - key
  328. - operator
  329. type: object
  330. type: array
  331. x-kubernetes-list-type: atomic
  332. type: object
  333. x-kubernetes-map-type: atomic
  334. type: array
  335. x-kubernetes-list-type: atomic
  336. required:
  337. - nodeSelectorTerms
  338. type: object
  339. x-kubernetes-map-type: atomic
  340. type: object
  341. podAffinity:
  342. description: Describes pod affinity scheduling rules (e.g.
  343. co-locate this pod in the same node, zone, etc. as some
  344. other pod(s)).
  345. properties:
  346. preferredDuringSchedulingIgnoredDuringExecution:
  347. description: |-
  348. The scheduler will prefer to schedule pods to nodes that satisfy
  349. the affinity expressions specified by this field, but it may choose
  350. a node that violates one or more of the expressions. The node that is
  351. most preferred is the one with the greatest sum of weights, i.e.
  352. for each node that meets all of the scheduling requirements (resource
  353. request, requiredDuringScheduling affinity expressions, etc.),
  354. compute a sum by iterating through the elements of this field and adding
  355. "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
  356. node(s) with the highest sum are the most preferred.
  357. items:
  358. description: The weights of all of the matched WeightedPodAffinityTerm
  359. fields are added per-node to find the most preferred
  360. node(s)
  361. properties:
  362. podAffinityTerm:
  363. description: Required. A pod affinity term,
  364. associated with the corresponding weight.
  365. properties:
  366. labelSelector:
  367. description: |-
  368. A label query over a set of resources, in this case pods.
  369. If it's null, this PodAffinityTerm matches with no Pods.
  370. properties:
  371. matchExpressions:
  372. description: matchExpressions is a list
  373. of label selector requirements. The
  374. requirements are ANDed.
  375. items:
  376. description: |-
  377. A label selector requirement is a selector that contains values, a key, and an operator that
  378. relates the key and values.
  379. properties:
  380. key:
  381. description: key is the label
  382. key that the selector applies
  383. to.
  384. type: string
  385. operator:
  386. description: |-
  387. operator represents a key's relationship to a set of values.
  388. Valid operators are In, NotIn, Exists and DoesNotExist.
  389. type: string
  390. values:
  391. description: |-
  392. values is an array of string values. If the operator is In or NotIn,
  393. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  394. the values array must be empty. This array is replaced during a strategic
  395. merge patch.
  396. items:
  397. type: string
  398. type: array
  399. x-kubernetes-list-type: atomic
  400. required:
  401. - key
  402. - operator
  403. type: object
  404. type: array
  405. x-kubernetes-list-type: atomic
  406. matchLabels:
  407. additionalProperties:
  408. type: string
  409. description: |-
  410. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  411. map is equivalent to an element of matchExpressions, whose key field is "key", the
  412. operator is "In", and the values array contains only "value". The requirements are ANDed.
  413. type: object
  414. type: object
  415. x-kubernetes-map-type: atomic
  416. matchLabelKeys:
  417. description: |-
  418. MatchLabelKeys is a set of pod label keys to select which pods will
  419. be taken into consideration. The keys are used to lookup values from the
  420. incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
  421. to select the group of existing pods which pods will be taken into consideration
  422. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  423. pod labels will be ignored. The default value is empty.
  424. The same key is forbidden to exist in both matchLabelKeys and labelSelector.
  425. Also, matchLabelKeys cannot be set when labelSelector isn't set.
  426. items:
  427. type: string
  428. type: array
  429. x-kubernetes-list-type: atomic
  430. mismatchLabelKeys:
  431. description: |-
  432. MismatchLabelKeys is a set of pod label keys to select which pods will
  433. be taken into consideration. The keys are used to lookup values from the
  434. incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
  435. to select the group of existing pods which pods will be taken into consideration
  436. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  437. pod labels will be ignored. The default value is empty.
  438. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
  439. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
  440. items:
  441. type: string
  442. type: array
  443. x-kubernetes-list-type: atomic
  444. namespaceSelector:
  445. description: |-
  446. A label query over the set of namespaces that the term applies to.
  447. The term is applied to the union of the namespaces selected by this field
  448. and the ones listed in the namespaces field.
  449. null selector and null or empty namespaces list means "this pod's namespace".
  450. An empty selector ({}) matches all namespaces.
  451. properties:
  452. matchExpressions:
  453. description: matchExpressions is a list
  454. of label selector requirements. The
  455. requirements are ANDed.
  456. items:
  457. description: |-
  458. A label selector requirement is a selector that contains values, a key, and an operator that
  459. relates the key and values.
  460. properties:
  461. key:
  462. description: key is the label
  463. key that the selector applies
  464. to.
  465. type: string
  466. operator:
  467. description: |-
  468. operator represents a key's relationship to a set of values.
  469. Valid operators are In, NotIn, Exists and DoesNotExist.
  470. type: string
  471. values:
  472. description: |-
  473. values is an array of string values. If the operator is In or NotIn,
  474. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  475. the values array must be empty. This array is replaced during a strategic
  476. merge patch.
  477. items:
  478. type: string
  479. type: array
  480. x-kubernetes-list-type: atomic
  481. required:
  482. - key
  483. - operator
  484. type: object
  485. type: array
  486. x-kubernetes-list-type: atomic
  487. matchLabels:
  488. additionalProperties:
  489. type: string
  490. description: |-
  491. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  492. map is equivalent to an element of matchExpressions, whose key field is "key", the
  493. operator is "In", and the values array contains only "value". The requirements are ANDed.
  494. type: object
  495. type: object
  496. x-kubernetes-map-type: atomic
  497. namespaces:
  498. description: |-
  499. namespaces specifies a static list of namespace names that the term applies to.
  500. The term is applied to the union of the namespaces listed in this field
  501. and the ones selected by namespaceSelector.
  502. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
  503. items:
  504. type: string
  505. type: array
  506. x-kubernetes-list-type: atomic
  507. topologyKey:
  508. description: |-
  509. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
  510. the labelSelector in the specified namespaces, where co-located is defined as running on a node
  511. whose value of the label with key topologyKey matches that of any node on which any of the
  512. selected pods is running.
  513. Empty topologyKey is not allowed.
  514. type: string
  515. required:
  516. - topologyKey
  517. type: object
  518. weight:
  519. description: |-
  520. weight associated with matching the corresponding podAffinityTerm,
  521. in the range 1-100.
  522. format: int32
  523. type: integer
  524. required:
  525. - podAffinityTerm
  526. - weight
  527. type: object
  528. type: array
  529. x-kubernetes-list-type: atomic
  530. requiredDuringSchedulingIgnoredDuringExecution:
  531. description: |-
  532. If the affinity requirements specified by this field are not met at
  533. scheduling time, the pod will not be scheduled onto the node.
  534. If the affinity requirements specified by this field cease to be met
  535. at some point during pod execution (e.g. due to a pod label update), the
  536. system may or may not try to eventually evict the pod from its node.
  537. When there are multiple elements, the lists of nodes corresponding to each
  538. podAffinityTerm are intersected, i.e. all terms must be satisfied.
  539. items:
  540. description: |-
  541. Defines a set of pods (namely those matching the labelSelector
  542. relative to the given namespace(s)) that this pod should be
  543. co-located (affinity) or not co-located (anti-affinity) with,
  544. where co-located is defined as running on a node whose value of
  545. the label with key <topologyKey> matches that of any node on which
  546. a pod of the set of pods is running
  547. properties:
  548. labelSelector:
  549. description: |-
  550. A label query over a set of resources, in this case pods.
  551. If it's null, this PodAffinityTerm matches with no Pods.
  552. properties:
  553. matchExpressions:
  554. description: matchExpressions is a list
  555. of label selector requirements. The requirements
  556. are ANDed.
  557. items:
  558. description: |-
  559. A label selector requirement is a selector that contains values, a key, and an operator that
  560. relates the key and values.
  561. properties:
  562. key:
  563. description: key is the label key
  564. that the selector applies to.
  565. type: string
  566. operator:
  567. description: |-
  568. operator represents a key's relationship to a set of values.
  569. Valid operators are In, NotIn, Exists and DoesNotExist.
  570. type: string
  571. values:
  572. description: |-
  573. values is an array of string values. If the operator is In or NotIn,
  574. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  575. the values array must be empty. This array is replaced during a strategic
  576. merge patch.
  577. items:
  578. type: string
  579. type: array
  580. x-kubernetes-list-type: atomic
  581. required:
  582. - key
  583. - operator
  584. type: object
  585. type: array
  586. x-kubernetes-list-type: atomic
  587. matchLabels:
  588. additionalProperties:
  589. type: string
  590. description: |-
  591. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  592. map is equivalent to an element of matchExpressions, whose key field is "key", the
  593. operator is "In", and the values array contains only "value". The requirements are ANDed.
  594. type: object
  595. type: object
  596. x-kubernetes-map-type: atomic
  597. matchLabelKeys:
  598. description: |-
  599. MatchLabelKeys is a set of pod label keys to select which pods will
  600. be taken into consideration. The keys are used to lookup values from the
  601. incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
  602. to select the group of existing pods which pods will be taken into consideration
  603. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  604. pod labels will be ignored. The default value is empty.
  605. The same key is forbidden to exist in both matchLabelKeys and labelSelector.
  606. Also, matchLabelKeys cannot be set when labelSelector isn't set.
  607. items:
  608. type: string
  609. type: array
  610. x-kubernetes-list-type: atomic
  611. mismatchLabelKeys:
  612. description: |-
  613. MismatchLabelKeys is a set of pod label keys to select which pods will
  614. be taken into consideration. The keys are used to lookup values from the
  615. incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
  616. to select the group of existing pods which pods will be taken into consideration
  617. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  618. pod labels will be ignored. The default value is empty.
  619. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
  620. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
  621. items:
  622. type: string
  623. type: array
  624. x-kubernetes-list-type: atomic
  625. namespaceSelector:
  626. description: |-
  627. A label query over the set of namespaces that the term applies to.
  628. The term is applied to the union of the namespaces selected by this field
  629. and the ones listed in the namespaces field.
  630. null selector and null or empty namespaces list means "this pod's namespace".
  631. An empty selector ({}) matches all namespaces.
  632. properties:
  633. matchExpressions:
  634. description: matchExpressions is a list
  635. of label selector requirements. The requirements
  636. are ANDed.
  637. items:
  638. description: |-
  639. A label selector requirement is a selector that contains values, a key, and an operator that
  640. relates the key and values.
  641. properties:
  642. key:
  643. description: key is the label key
  644. that the selector applies to.
  645. type: string
  646. operator:
  647. description: |-
  648. operator represents a key's relationship to a set of values.
  649. Valid operators are In, NotIn, Exists and DoesNotExist.
  650. type: string
  651. values:
  652. description: |-
  653. values is an array of string values. If the operator is In or NotIn,
  654. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  655. the values array must be empty. This array is replaced during a strategic
  656. merge patch.
  657. items:
  658. type: string
  659. type: array
  660. x-kubernetes-list-type: atomic
  661. required:
  662. - key
  663. - operator
  664. type: object
  665. type: array
  666. x-kubernetes-list-type: atomic
  667. matchLabels:
  668. additionalProperties:
  669. type: string
  670. description: |-
  671. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  672. map is equivalent to an element of matchExpressions, whose key field is "key", the
  673. operator is "In", and the values array contains only "value". The requirements are ANDed.
  674. type: object
  675. type: object
  676. x-kubernetes-map-type: atomic
  677. namespaces:
  678. description: |-
  679. namespaces specifies a static list of namespace names that the term applies to.
  680. The term is applied to the union of the namespaces listed in this field
  681. and the ones selected by namespaceSelector.
  682. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
  683. items:
  684. type: string
  685. type: array
  686. x-kubernetes-list-type: atomic
  687. topologyKey:
  688. description: |-
  689. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
  690. the labelSelector in the specified namespaces, where co-located is defined as running on a node
  691. whose value of the label with key topologyKey matches that of any node on which any of the
  692. selected pods is running.
  693. Empty topologyKey is not allowed.
  694. type: string
  695. required:
  696. - topologyKey
  697. type: object
  698. type: array
  699. x-kubernetes-list-type: atomic
  700. type: object
  701. podAntiAffinity:
  702. description: Describes pod anti-affinity scheduling rules
  703. (e.g. avoid putting this pod in the same node, zone,
  704. etc. as some other pod(s)).
  705. properties:
  706. preferredDuringSchedulingIgnoredDuringExecution:
  707. description: |-
  708. The scheduler will prefer to schedule pods to nodes that satisfy
  709. the anti-affinity expressions specified by this field, but it may choose
  710. a node that violates one or more of the expressions. The node that is
  711. most preferred is the one with the greatest sum of weights, i.e.
  712. for each node that meets all of the scheduling requirements (resource
  713. request, requiredDuringScheduling anti-affinity expressions, etc.),
  714. compute a sum by iterating through the elements of this field and subtracting
  715. "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
  716. node(s) with the highest sum are the most preferred.
  717. items:
  718. description: The weights of all of the matched WeightedPodAffinityTerm
  719. fields are added per-node to find the most preferred
  720. node(s)
  721. properties:
  722. podAffinityTerm:
  723. description: Required. A pod affinity term,
  724. associated with the corresponding weight.
  725. properties:
  726. labelSelector:
  727. description: |-
  728. A label query over a set of resources, in this case pods.
  729. If it's null, this PodAffinityTerm matches with no Pods.
  730. properties:
  731. matchExpressions:
  732. description: matchExpressions is a list
  733. of label selector requirements. The
  734. requirements are ANDed.
  735. items:
  736. description: |-
  737. A label selector requirement is a selector that contains values, a key, and an operator that
  738. relates the key and values.
  739. properties:
  740. key:
  741. description: key is the label
  742. key that the selector applies
  743. to.
  744. type: string
  745. operator:
  746. description: |-
  747. operator represents a key's relationship to a set of values.
  748. Valid operators are In, NotIn, Exists and DoesNotExist.
  749. type: string
  750. values:
  751. description: |-
  752. values is an array of string values. If the operator is In or NotIn,
  753. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  754. the values array must be empty. This array is replaced during a strategic
  755. merge patch.
  756. items:
  757. type: string
  758. type: array
  759. x-kubernetes-list-type: atomic
  760. required:
  761. - key
  762. - operator
  763. type: object
  764. type: array
  765. x-kubernetes-list-type: atomic
  766. matchLabels:
  767. additionalProperties:
  768. type: string
  769. description: |-
  770. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  771. map is equivalent to an element of matchExpressions, whose key field is "key", the
  772. operator is "In", and the values array contains only "value". The requirements are ANDed.
  773. type: object
  774. type: object
  775. x-kubernetes-map-type: atomic
  776. matchLabelKeys:
  777. description: |-
  778. MatchLabelKeys is a set of pod label keys to select which pods will
  779. be taken into consideration. The keys are used to lookup values from the
  780. incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
  781. to select the group of existing pods which pods will be taken into consideration
  782. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  783. pod labels will be ignored. The default value is empty.
  784. The same key is forbidden to exist in both matchLabelKeys and labelSelector.
  785. Also, matchLabelKeys cannot be set when labelSelector isn't set.
  786. items:
  787. type: string
  788. type: array
  789. x-kubernetes-list-type: atomic
  790. mismatchLabelKeys:
  791. description: |-
  792. MismatchLabelKeys is a set of pod label keys to select which pods will
  793. be taken into consideration. The keys are used to lookup values from the
  794. incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
  795. to select the group of existing pods which pods will be taken into consideration
  796. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  797. pod labels will be ignored. The default value is empty.
  798. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
  799. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
  800. items:
  801. type: string
  802. type: array
  803. x-kubernetes-list-type: atomic
  804. namespaceSelector:
  805. description: |-
  806. A label query over the set of namespaces that the term applies to.
  807. The term is applied to the union of the namespaces selected by this field
  808. and the ones listed in the namespaces field.
  809. null selector and null or empty namespaces list means "this pod's namespace".
  810. An empty selector ({}) matches all namespaces.
  811. properties:
  812. matchExpressions:
  813. description: matchExpressions is a list
  814. of label selector requirements. The
  815. requirements are ANDed.
  816. items:
  817. description: |-
  818. A label selector requirement is a selector that contains values, a key, and an operator that
  819. relates the key and values.
  820. properties:
  821. key:
  822. description: key is the label
  823. key that the selector applies
  824. to.
  825. type: string
  826. operator:
  827. description: |-
  828. operator represents a key's relationship to a set of values.
  829. Valid operators are In, NotIn, Exists and DoesNotExist.
  830. type: string
  831. values:
  832. description: |-
  833. values is an array of string values. If the operator is In or NotIn,
  834. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  835. the values array must be empty. This array is replaced during a strategic
  836. merge patch.
  837. items:
  838. type: string
  839. type: array
  840. x-kubernetes-list-type: atomic
  841. required:
  842. - key
  843. - operator
  844. type: object
  845. type: array
  846. x-kubernetes-list-type: atomic
  847. matchLabels:
  848. additionalProperties:
  849. type: string
  850. description: |-
  851. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  852. map is equivalent to an element of matchExpressions, whose key field is "key", the
  853. operator is "In", and the values array contains only "value". The requirements are ANDed.
  854. type: object
  855. type: object
  856. x-kubernetes-map-type: atomic
  857. namespaces:
  858. description: |-
  859. namespaces specifies a static list of namespace names that the term applies to.
  860. The term is applied to the union of the namespaces listed in this field
  861. and the ones selected by namespaceSelector.
  862. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
  863. items:
  864. type: string
  865. type: array
  866. x-kubernetes-list-type: atomic
  867. topologyKey:
  868. description: |-
  869. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
  870. the labelSelector in the specified namespaces, where co-located is defined as running on a node
  871. whose value of the label with key topologyKey matches that of any node on which any of the
  872. selected pods is running.
  873. Empty topologyKey is not allowed.
  874. type: string
  875. required:
  876. - topologyKey
  877. type: object
  878. weight:
  879. description: |-
  880. weight associated with matching the corresponding podAffinityTerm,
  881. in the range 1-100.
  882. format: int32
  883. type: integer
  884. required:
  885. - podAffinityTerm
  886. - weight
  887. type: object
  888. type: array
  889. x-kubernetes-list-type: atomic
  890. requiredDuringSchedulingIgnoredDuringExecution:
  891. description: |-
  892. If the anti-affinity requirements specified by this field are not met at
  893. scheduling time, the pod will not be scheduled onto the node.
  894. If the anti-affinity requirements specified by this field cease to be met
  895. at some point during pod execution (e.g. due to a pod label update), the
  896. system may or may not try to eventually evict the pod from its node.
  897. When there are multiple elements, the lists of nodes corresponding to each
  898. podAffinityTerm are intersected, i.e. all terms must be satisfied.
  899. items:
  900. description: |-
  901. Defines a set of pods (namely those matching the labelSelector
  902. relative to the given namespace(s)) that this pod should be
  903. co-located (affinity) or not co-located (anti-affinity) with,
  904. where co-located is defined as running on a node whose value of
  905. the label with key <topologyKey> matches that of any node on which
  906. a pod of the set of pods is running
  907. properties:
  908. labelSelector:
  909. description: |-
  910. A label query over a set of resources, in this case pods.
  911. If it's null, this PodAffinityTerm matches with no Pods.
  912. properties:
  913. matchExpressions:
  914. description: matchExpressions is a list
  915. of label selector requirements. The requirements
  916. are ANDed.
  917. items:
  918. description: |-
  919. A label selector requirement is a selector that contains values, a key, and an operator that
  920. relates the key and values.
  921. properties:
  922. key:
  923. description: key is the label key
  924. that the selector applies to.
  925. type: string
  926. operator:
  927. description: |-
  928. operator represents a key's relationship to a set of values.
  929. Valid operators are In, NotIn, Exists and DoesNotExist.
  930. type: string
  931. values:
  932. description: |-
  933. values is an array of string values. If the operator is In or NotIn,
  934. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  935. the values array must be empty. This array is replaced during a strategic
  936. merge patch.
  937. items:
  938. type: string
  939. type: array
  940. x-kubernetes-list-type: atomic
  941. required:
  942. - key
  943. - operator
  944. type: object
  945. type: array
  946. x-kubernetes-list-type: atomic
  947. matchLabels:
  948. additionalProperties:
  949. type: string
  950. description: |-
  951. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  952. map is equivalent to an element of matchExpressions, whose key field is "key", the
  953. operator is "In", and the values array contains only "value". The requirements are ANDed.
  954. type: object
  955. type: object
  956. x-kubernetes-map-type: atomic
  957. matchLabelKeys:
  958. description: |-
  959. MatchLabelKeys is a set of pod label keys to select which pods will
  960. be taken into consideration. The keys are used to lookup values from the
  961. incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
  962. to select the group of existing pods which pods will be taken into consideration
  963. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  964. pod labels will be ignored. The default value is empty.
  965. The same key is forbidden to exist in both matchLabelKeys and labelSelector.
  966. Also, matchLabelKeys cannot be set when labelSelector isn't set.
  967. items:
  968. type: string
  969. type: array
  970. x-kubernetes-list-type: atomic
  971. mismatchLabelKeys:
  972. description: |-
  973. MismatchLabelKeys is a set of pod label keys to select which pods will
  974. be taken into consideration. The keys are used to lookup values from the
  975. incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
  976. to select the group of existing pods which pods will be taken into consideration
  977. for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
  978. pod labels will be ignored. The default value is empty.
  979. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
  980. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
  981. items:
  982. type: string
  983. type: array
  984. x-kubernetes-list-type: atomic
  985. namespaceSelector:
  986. description: |-
  987. A label query over the set of namespaces that the term applies to.
  988. The term is applied to the union of the namespaces selected by this field
  989. and the ones listed in the namespaces field.
  990. null selector and null or empty namespaces list means "this pod's namespace".
  991. An empty selector ({}) matches all namespaces.
  992. properties:
  993. matchExpressions:
  994. description: matchExpressions is a list
  995. of label selector requirements. The requirements
  996. are ANDed.
  997. items:
  998. description: |-
  999. A label selector requirement is a selector that contains values, a key, and an operator that
  1000. relates the key and values.
  1001. properties:
  1002. key:
  1003. description: key is the label key
  1004. that the selector applies to.
  1005. type: string
  1006. operator:
  1007. description: |-
  1008. operator represents a key's relationship to a set of values.
  1009. Valid operators are In, NotIn, Exists and DoesNotExist.
  1010. type: string
  1011. values:
  1012. description: |-
  1013. values is an array of string values. If the operator is In or NotIn,
  1014. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  1015. the values array must be empty. This array is replaced during a strategic
  1016. merge patch.
  1017. items:
  1018. type: string
  1019. type: array
  1020. x-kubernetes-list-type: atomic
  1021. required:
  1022. - key
  1023. - operator
  1024. type: object
  1025. type: array
  1026. x-kubernetes-list-type: atomic
  1027. matchLabels:
  1028. additionalProperties:
  1029. type: string
  1030. description: |-
  1031. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  1032. map is equivalent to an element of matchExpressions, whose key field is "key", the
  1033. operator is "In", and the values array contains only "value". The requirements are ANDed.
  1034. type: object
  1035. type: object
  1036. x-kubernetes-map-type: atomic
  1037. namespaces:
  1038. description: |-
  1039. namespaces specifies a static list of namespace names that the term applies to.
  1040. The term is applied to the union of the namespaces listed in this field
  1041. and the ones selected by namespaceSelector.
  1042. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
  1043. items:
  1044. type: string
  1045. type: array
  1046. x-kubernetes-list-type: atomic
  1047. topologyKey:
  1048. description: |-
  1049. This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
  1050. the labelSelector in the specified namespaces, where co-located is defined as running on a node
  1051. whose value of the label with key topologyKey matches that of any node on which any of the
  1052. selected pods is running.
  1053. Empty topologyKey is not allowed.
  1054. type: string
  1055. required:
  1056. - topologyKey
  1057. type: object
  1058. type: array
  1059. x-kubernetes-list-type: atomic
  1060. type: object
  1061. type: object
  1062. nodeSelector:
  1063. additionalProperties:
  1064. type: string
  1065. description: nodeSelector pins pods to nodes that match all
  1066. the specified labels.
  1067. type: object
  1068. resources:
  1069. description: resources sets per-container resource requests
  1070. and limits.
  1071. properties:
  1072. claims:
  1073. description: |-
  1074. Claims lists the names of resources, defined in spec.resourceClaims,
  1075. that are used by this container.
  1076. This field depends on the
  1077. DynamicResourceAllocation feature gate.
  1078. This field is immutable. It can only be set for containers.
  1079. items:
  1080. description: ResourceClaim references one entry in PodSpec.ResourceClaims.
  1081. properties:
  1082. name:
  1083. description: |-
  1084. Name must match the name of one entry in pod.spec.resourceClaims of
  1085. the Pod where this field is used. It makes that resource available
  1086. inside a container.
  1087. type: string
  1088. request:
  1089. description: |-
  1090. Request is the name chosen for a request in the referenced claim.
  1091. If empty, everything from the claim is made available, otherwise
  1092. only the result of this request.
  1093. type: string
  1094. required:
  1095. - name
  1096. type: object
  1097. type: array
  1098. x-kubernetes-list-map-keys:
  1099. - name
  1100. x-kubernetes-list-type: map
  1101. limits:
  1102. additionalProperties:
  1103. anyOf:
  1104. - type: integer
  1105. - type: string
  1106. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  1107. x-kubernetes-int-or-string: true
  1108. description: |-
  1109. Limits describes the maximum amount of compute resources allowed.
  1110. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  1111. type: object
  1112. requests:
  1113. additionalProperties:
  1114. anyOf:
  1115. - type: integer
  1116. - type: string
  1117. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  1118. x-kubernetes-int-or-string: true
  1119. description: |-
  1120. Requests describes the minimum amount of compute resources required.
  1121. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
  1122. otherwise to an implementation-defined value. Requests cannot exceed Limits.
  1123. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  1124. type: object
  1125. type: object
  1126. runtime:
  1127. description: runtime describes the container runtime to use
  1128. for the workload.
  1129. properties:
  1130. args:
  1131. description: args specifies or overrides the preset's
  1132. container command.
  1133. items:
  1134. type: string
  1135. type: array
  1136. command:
  1137. description: command specifies or overrides the preset's
  1138. container entrypoint.
  1139. items:
  1140. type: string
  1141. type: array
  1142. conditionalArgs:
  1143. description: conditionalArgs are appended to the preset
  1144. command conditionally.
  1145. items:
  1146. properties:
  1147. args:
  1148. description: args are appended to the preset args.
  1149. items:
  1150. type: string
  1151. type: array
  1152. when:
  1153. description: when the value is not empty after variable
  1154. substitution, the args are appended to the preset
  1155. args.
  1156. type: string
  1157. required:
  1158. - args
  1159. - when
  1160. type: object
  1161. type: array
  1162. env:
  1163. description: env holds environment variables injected
  1164. into the container.
  1165. items:
  1166. description: EnvVar represents an environment variable
  1167. present in a Container.
  1168. properties:
  1169. name:
  1170. description: |-
  1171. Name of the environment variable.
  1172. May consist of any printable ASCII characters except '='.
  1173. type: string
  1174. value:
  1175. description: |-
  1176. Variable references $(VAR_NAME) are expanded
  1177. using the previously defined environment variables in the container and
  1178. any service environment variables. If a variable cannot be resolved,
  1179. the reference in the input string will be unchanged. Double $$ are reduced
  1180. to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
  1181. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
  1182. Escaped references will never be expanded, regardless of whether the variable
  1183. exists or not.
  1184. Defaults to "".
  1185. type: string
  1186. valueFrom:
  1187. description: Source for the environment variable's
  1188. value. Cannot be used if value is not empty.
  1189. properties:
  1190. configMapKeyRef:
  1191. description: Selects a key of a ConfigMap.
  1192. properties:
  1193. key:
  1194. description: The key to select.
  1195. type: string
  1196. name:
  1197. default: ""
  1198. description: |-
  1199. Name of the referent.
  1200. This field is effectively required, but due to backwards compatibility is
  1201. allowed to be empty. Instances of this type with an empty value here are
  1202. almost certainly wrong.
  1203. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  1204. type: string
  1205. optional:
  1206. description: Specify whether the ConfigMap
  1207. or its key must be defined
  1208. type: boolean
  1209. required:
  1210. - key
  1211. type: object
  1212. x-kubernetes-map-type: atomic
  1213. fieldRef:
  1214. description: |-
  1215. Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
  1216. spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
  1217. properties:
  1218. apiVersion:
  1219. description: Version of the schema the FieldPath
  1220. is written in terms of, defaults to "v1".
  1221. type: string
  1222. fieldPath:
  1223. description: Path of the field to select
  1224. in the specified API version.
  1225. type: string
  1226. required:
  1227. - fieldPath
  1228. type: object
  1229. x-kubernetes-map-type: atomic
  1230. fileKeyRef:
  1231. description: |-
  1232. FileKeyRef selects a key of the env file.
  1233. Requires the EnvFiles feature gate to be enabled.
  1234. properties:
  1235. key:
  1236. description: |-
  1237. The key within the env file. An invalid key will prevent the pod from starting.
  1238. The keys defined within a source may consist of any printable ASCII characters except '='.
  1239. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
  1240. type: string
  1241. optional:
  1242. default: false
  1243. description: |-
  1244. Specify whether the file or its key must be defined. If the file or key
  1245. does not exist, then the env var is not published.
  1246. If optional is set to true and the specified key does not exist,
  1247. the environment variable will not be set in the Pod's containers.
  1248. If optional is set to false and the specified key does not exist,
  1249. an error will be returned during Pod creation.
  1250. type: boolean
  1251. path:
  1252. description: |-
  1253. The path within the volume from which to select the file.
  1254. Must be relative and may not contain the '..' path or start with '..'.
  1255. type: string
  1256. volumeName:
  1257. description: The name of the volume mount
  1258. containing the env file.
  1259. type: string
  1260. required:
  1261. - key
  1262. - path
  1263. - volumeName
  1264. type: object
  1265. x-kubernetes-map-type: atomic
  1266. resourceFieldRef:
  1267. description: |-
  1268. Selects a resource of the container: only resources limits and requests
  1269. (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
  1270. properties:
  1271. containerName:
  1272. description: 'Container name: required for
  1273. volumes, optional for env vars'
  1274. type: string
  1275. divisor:
  1276. anyOf:
  1277. - type: integer
  1278. - type: string
  1279. description: Specifies the output format
  1280. of the exposed resources, defaults to
  1281. "1"
  1282. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  1283. x-kubernetes-int-or-string: true
  1284. resource:
  1285. description: 'Required: resource to select'
  1286. type: string
  1287. required:
  1288. - resource
  1289. type: object
  1290. x-kubernetes-map-type: atomic
  1291. secretKeyRef:
  1292. description: Selects a key of a secret in the
  1293. pod's namespace
  1294. properties:
  1295. key:
  1296. description: The key of the secret to select
  1297. from. Must be a valid secret key.
  1298. type: string
  1299. name:
  1300. default: ""
  1301. description: |-
  1302. Name of the referent.
  1303. This field is effectively required, but due to backwards compatibility is
  1304. allowed to be empty. Instances of this type with an empty value here are
  1305. almost certainly wrong.
  1306. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  1307. type: string
  1308. optional:
  1309. description: Specify whether the Secret
  1310. or its key must be defined
  1311. type: boolean
  1312. required:
  1313. - key
  1314. type: object
  1315. x-kubernetes-map-type: atomic
  1316. type: object
  1317. required:
  1318. - name
  1319. type: object
  1320. type: array
  1321. envFrom:
  1322. description: envFrom references ConfigMaps or Secrets
  1323. whose key-value pairs are injected as environment variables.
  1324. items:
  1325. description: EnvFromSource represents the source of
  1326. a set of ConfigMaps or Secrets
  1327. properties:
  1328. configMapRef:
  1329. description: The ConfigMap to select from
  1330. properties:
  1331. name:
  1332. default: ""
  1333. description: |-
  1334. Name of the referent.
  1335. This field is effectively required, but due to backwards compatibility is
  1336. allowed to be empty. Instances of this type with an empty value here are
  1337. almost certainly wrong.
  1338. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  1339. type: string
  1340. optional:
  1341. description: Specify whether the ConfigMap must
  1342. be defined
  1343. type: boolean
  1344. type: object
  1345. x-kubernetes-map-type: atomic
  1346. prefix:
  1347. description: |-
  1348. Optional text to prepend to the name of each environment variable.
  1349. May consist of any printable ASCII characters except '='.
  1350. type: string
  1351. secretRef:
  1352. description: The Secret to select from
  1353. properties:
  1354. name:
  1355. default: ""
  1356. description: |-
  1357. Name of the referent.
  1358. This field is effectively required, but due to backwards compatibility is
  1359. allowed to be empty. Instances of this type with an empty value here are
  1360. almost certainly wrong.
  1361. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  1362. type: string
  1363. optional:
  1364. description: Specify whether the Secret must
  1365. be defined
  1366. type: boolean
  1367. type: object
  1368. x-kubernetes-map-type: atomic
  1369. type: object
  1370. type: array
  1371. extraArgs:
  1372. description: extraArgs are appended to the preset command.
  1373. items:
  1374. type: string
  1375. type: array
  1376. image:
  1377. description: |-
  1378. image specifies or overrides the preset's container image, e.g. to pin a specific tag
  1379. or pull from a private registry mirror.
  1380. type: string
  1381. name:
  1382. description: name selects a built-in runtime preset.
  1383. type: string
  1384. port:
  1385. description: port specifies or overrides the container
  1386. port the runtime listens on.
  1387. format: int32
  1388. type: integer
  1389. volumeMounts:
  1390. description: volumeMounts defines where pod volumes are
  1391. mounted inside the container.
  1392. items:
  1393. description: VolumeMount describes a mounting of a Volume
  1394. within a container.
  1395. properties:
  1396. mountPath:
  1397. description: |-
  1398. Path within the container at which the volume should be mounted. Must
  1399. not contain ':'.
  1400. type: string
  1401. mountPropagation:
  1402. description: |-
  1403. mountPropagation determines how mounts are propagated from the host
  1404. to container and the other way around.
  1405. When not set, MountPropagationNone is used.
  1406. This field is beta in 1.10.
  1407. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
  1408. (which defaults to None).
  1409. type: string
  1410. name:
  1411. description: This must match the Name of a Volume.
  1412. type: string
  1413. readOnly:
  1414. description: |-
  1415. Mounted read-only if true, read-write otherwise (false or unspecified).
  1416. Defaults to false.
  1417. type: boolean
  1418. recursiveReadOnly:
  1419. description: |-
  1420. RecursiveReadOnly specifies whether read-only mounts should be handled
  1421. recursively.
  1422. If ReadOnly is false, this field has no meaning and must be unspecified.
  1423. If ReadOnly is true, and this field is set to Disabled, the mount is not made
  1424. recursively read-only. If this field is set to IfPossible, the mount is made
  1425. recursively read-only, if it is supported by the container runtime. If this
  1426. field is set to Enabled, the mount is made recursively read-only if it is
  1427. supported by the container runtime, otherwise the pod will not be started and
  1428. an error will be generated to indicate the reason.
  1429. If this field is set to IfPossible or Enabled, MountPropagation must be set to
  1430. None (or be unspecified, which defaults to None).
  1431. If this field is not specified, it is treated as an equivalent of Disabled.
  1432. type: string
  1433. subPath:
  1434. description: |-
  1435. Path within the volume from which the container's volume should be mounted.
  1436. Defaults to "" (volume's root).
  1437. type: string
  1438. subPathExpr:
  1439. description: |-
  1440. Expanded path within the volume from which the container's volume should be mounted.
  1441. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
  1442. Defaults to "" (volume's root).
  1443. SubPathExpr and SubPath are mutually exclusive.
  1444. type: string
  1445. required:
  1446. - mountPath
  1447. - name
  1448. type: object
  1449. type: array
  1450. type: object
  1451. securityContext:
  1452. description: |-
  1453. securityContext sets pod-level security attributes such as runAsUser,
  1454. runAsGroup, fsGroup, and sysctls.
  1455. properties:
  1456. appArmorProfile:
  1457. description: |-
  1458. appArmorProfile is the AppArmor options to use by the containers in this pod.
  1459. Note that this field cannot be set when spec.os.name is windows.
  1460. properties:
  1461. localhostProfile:
  1462. description: |-
  1463. localhostProfile indicates a profile loaded on the node that should be used.
  1464. The profile must be preconfigured on the node to work.
  1465. Must match the loaded name of the profile.
  1466. Must be set if and only if type is "Localhost".
  1467. type: string
  1468. type:
  1469. description: |-
  1470. type indicates which kind of AppArmor profile will be applied.
  1471. Valid options are:
  1472. Localhost - a profile pre-loaded on the node.
  1473. RuntimeDefault - the container runtime's default profile.
  1474. Unconfined - no AppArmor enforcement.
  1475. type: string
  1476. required:
  1477. - type
  1478. type: object
  1479. fsGroup:
  1480. description: |-
  1481. A special supplemental group that applies to all containers in a pod.
  1482. Some volume types allow the Kubelet to change the ownership of that volume
  1483. to be owned by the pod:
  1484. 1. The owning GID will be the FSGroup
  1485. 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
  1486. 3. The permission bits are OR'd with rw-rw----
  1487. If unset, the Kubelet will not modify the ownership and permissions of any volume.
  1488. Note that this field cannot be set when spec.os.name is windows.
  1489. format: int64
  1490. type: integer
  1491. fsGroupChangePolicy:
  1492. description: |-
  1493. fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
  1494. before being exposed inside Pod. This field will only apply to
  1495. volume types which support fsGroup based ownership(and permissions).
  1496. It will have no effect on ephemeral volume types such as: secret, configmaps
  1497. and emptydir.
  1498. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
  1499. Note that this field cannot be set when spec.os.name is windows.
  1500. type: string
  1501. runAsGroup:
  1502. description: |-
  1503. The GID to run the entrypoint of the container process.
  1504. Uses runtime default if unset.
  1505. May also be set in SecurityContext. If set in both SecurityContext and
  1506. PodSecurityContext, the value specified in SecurityContext takes precedence
  1507. for that container.
  1508. Note that this field cannot be set when spec.os.name is windows.
  1509. format: int64
  1510. type: integer
  1511. runAsNonRoot:
  1512. description: |-
  1513. Indicates that the container must run as a non-root user.
  1514. If true, the Kubelet will validate the image at runtime to ensure that it
  1515. does not run as UID 0 (root) and fail to start the container if it does.
  1516. If unset or false, no such validation will be performed.
  1517. May also be set in SecurityContext. If set in both SecurityContext and
  1518. PodSecurityContext, the value specified in SecurityContext takes precedence.
  1519. type: boolean
  1520. runAsUser:
  1521. description: |-
  1522. The UID to run the entrypoint of the container process.
  1523. Defaults to user specified in image metadata if unspecified.
  1524. May also be set in SecurityContext. If set in both SecurityContext and
  1525. PodSecurityContext, the value specified in SecurityContext takes precedence
  1526. for that container.
  1527. Note that this field cannot be set when spec.os.name is windows.
  1528. format: int64
  1529. type: integer
  1530. seLinuxChangePolicy:
  1531. description: |-
  1532. seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.
  1533. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.
  1534. Valid values are "MountOption" and "Recursive".
  1535. "Recursive" means relabeling of all files on all Pod volumes by the container runtime.
  1536. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
  1537. "MountOption" mounts all eligible Pod volumes with `-o context` mount option.
  1538. This requires all Pods that share the same volume to use the same SELinux label.
  1539. It is not possible to share the same volume among privileged and unprivileged Pods.
  1540. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes
  1541. whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their
  1542. CSIDriver instance. Other volumes are always re-labelled recursively.
  1543. "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
  1544. If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.
  1545. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes
  1546. and "Recursive" for all other volumes.
  1547. This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
  1548. All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.
  1549. Note that this field cannot be set when spec.os.name is windows.
  1550. type: string
  1551. seLinuxOptions:
  1552. description: |-
  1553. The SELinux context to be applied to all containers.
  1554. If unspecified, the container runtime will allocate a random SELinux context for each
  1555. container. May also be set in SecurityContext. If set in
  1556. both SecurityContext and PodSecurityContext, the value specified in SecurityContext
  1557. takes precedence for that container.
  1558. Note that this field cannot be set when spec.os.name is windows.
  1559. properties:
  1560. level:
  1561. description: Level is SELinux level label that applies
  1562. to the container.
  1563. type: string
  1564. role:
  1565. description: Role is a SELinux role label that applies
  1566. to the container.
  1567. type: string
  1568. type:
  1569. description: Type is a SELinux type label that applies
  1570. to the container.
  1571. type: string
  1572. user:
  1573. description: User is a SELinux user label that applies
  1574. to the container.
  1575. type: string
  1576. type: object
  1577. seccompProfile:
  1578. description: |-
  1579. The seccomp options to use by the containers in this pod.
  1580. Note that this field cannot be set when spec.os.name is windows.
  1581. properties:
  1582. localhostProfile:
  1583. description: |-
  1584. localhostProfile indicates a profile defined in a file on the node should be used.
  1585. The profile must be preconfigured on the node to work.
  1586. Must be a descending path, relative to the kubelet's configured seccomp profile location.
  1587. Must be set if type is "Localhost". Must NOT be set for any other type.
  1588. type: string
  1589. type:
  1590. description: |-
  1591. type indicates which kind of seccomp profile will be applied.
  1592. Valid options are:
  1593. Localhost - a profile defined in a file on the node should be used.
  1594. RuntimeDefault - the container runtime default profile should be used.
  1595. Unconfined - no profile should be applied.
  1596. type: string
  1597. required:
  1598. - type
  1599. type: object
  1600. supplementalGroups:
  1601. description: |-
  1602. A list of groups applied to the first process run in each container, in
  1603. addition to the container's primary GID and fsGroup (if specified). If
  1604. the SupplementalGroupsPolicy feature is enabled, the
  1605. supplementalGroupsPolicy field determines whether these are in addition
  1606. to or instead of any group memberships defined in the container image.
  1607. If unspecified, no additional groups are added, though group memberships
  1608. defined in the container image may still be used, depending on the
  1609. supplementalGroupsPolicy field.
  1610. Note that this field cannot be set when spec.os.name is windows.
  1611. items:
  1612. format: int64
  1613. type: integer
  1614. type: array
  1615. x-kubernetes-list-type: atomic
  1616. supplementalGroupsPolicy:
  1617. description: |-
  1618. Defines how supplemental groups of the first container processes are calculated.
  1619. Valid values are "Merge" and "Strict". If not specified, "Merge" is used.
  1620. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled
  1621. and the container runtime must implement support for this feature.
  1622. Note that this field cannot be set when spec.os.name is windows.
  1623. type: string
  1624. sysctls:
  1625. description: |-
  1626. Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
  1627. sysctls (by the container runtime) might fail to launch.
  1628. Note that this field cannot be set when spec.os.name is windows.
  1629. items:
  1630. description: Sysctl defines a kernel parameter to be
  1631. set
  1632. properties:
  1633. name:
  1634. description: Name of a property to set
  1635. type: string
  1636. value:
  1637. description: Value of a property to set
  1638. type: string
  1639. required:
  1640. - name
  1641. - value
  1642. type: object
  1643. type: array
  1644. x-kubernetes-list-type: atomic
  1645. windowsOptions:
  1646. description: |-
  1647. The Windows specific settings applied to all containers.
  1648. If unspecified, the options within a container's SecurityContext will be used.
  1649. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
  1650. Note that this field cannot be set when spec.os.name is linux.
  1651. properties:
  1652. gmsaCredentialSpec:
  1653. description: |-
  1654. GMSACredentialSpec is where the GMSA admission webhook
  1655. (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
  1656. GMSA credential spec named by the GMSACredentialSpecName field.
  1657. type: string
  1658. gmsaCredentialSpecName:
  1659. description: GMSACredentialSpecName is the name of
  1660. the GMSA credential spec to use.
  1661. type: string
  1662. hostProcess:
  1663. description: |-
  1664. HostProcess determines if a container should be run as a 'Host Process' container.
  1665. All of a Pod's containers must have the same effective HostProcess value
  1666. (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
  1667. In addition, if HostProcess is true then HostNetwork must also be set to true.
  1668. type: boolean
  1669. runAsUserName:
  1670. description: |-
  1671. The UserName in Windows to run the entrypoint of the container process.
  1672. Defaults to the user specified in image metadata if unspecified.
  1673. May also be set in PodSecurityContext. If set in both SecurityContext and
  1674. PodSecurityContext, the value specified in SecurityContext takes precedence.
  1675. type: string
  1676. type: object
  1677. type: object
  1678. tolerations:
  1679. description: tolerations allow pods to be scheduled onto nodes
  1680. with matching taints.
  1681. items:
  1682. description: |-
  1683. The pod this Toleration is attached to tolerates any taint that matches
  1684. the triple <key,value,effect> using the matching operator <operator>.
  1685. properties:
  1686. effect:
  1687. description: |-
  1688. Effect indicates the taint effect to match. Empty means match all taint effects.
  1689. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
  1690. type: string
  1691. key:
  1692. description: |-
  1693. Key is the taint key that the toleration applies to. Empty means match all taint keys.
  1694. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
  1695. type: string
  1696. operator:
  1697. description: |-
  1698. Operator represents a key's relationship to the value.
  1699. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
  1700. Exists is equivalent to wildcard for value, so that a pod can
  1701. tolerate all taints of a particular category.
  1702. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
  1703. type: string
  1704. tolerationSeconds:
  1705. description: |-
  1706. TolerationSeconds represents the period of time the toleration (which must be
  1707. of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
  1708. it is not set, which means tolerate the taint forever (do not evict). Zero and
  1709. negative values will be treated as 0 (evict immediately) by the system.
  1710. format: int64
  1711. type: integer
  1712. value:
  1713. description: |-
  1714. Value is the taint value the toleration matches to.
  1715. If the operator is Exists, the value should be empty, otherwise just a regular string.
  1716. type: string
  1717. type: object
  1718. type: array
  1719. topologySpreadConstraints:
  1720. description: |-
  1721. topologySpreadConstraints controls how pods are spread across failure
  1722. domains (zones, nodes). Prefer this over pod anti-affinity for HA spread.
  1723. items:
  1724. description: TopologySpreadConstraint specifies how to spread
  1725. matching pods among the given topology.
  1726. properties:
  1727. labelSelector:
  1728. description: |-
  1729. LabelSelector is used to find matching pods.
  1730. Pods that match this label selector are counted to determine the number of pods
  1731. in their corresponding topology domain.
  1732. properties:
  1733. matchExpressions:
  1734. description: matchExpressions is a list of label
  1735. selector requirements. The requirements are ANDed.
  1736. items:
  1737. description: |-
  1738. A label selector requirement is a selector that contains values, a key, and an operator that
  1739. relates the key and values.
  1740. properties:
  1741. key:
  1742. description: key is the label key that the
  1743. selector applies to.
  1744. type: string
  1745. operator:
  1746. description: |-
  1747. operator represents a key's relationship to a set of values.
  1748. Valid operators are In, NotIn, Exists and DoesNotExist.
  1749. type: string
  1750. values:
  1751. description: |-
  1752. values is an array of string values. If the operator is In or NotIn,
  1753. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  1754. the values array must be empty. This array is replaced during a strategic
  1755. merge patch.
  1756. items:
  1757. type: string
  1758. type: array
  1759. x-kubernetes-list-type: atomic
  1760. required:
  1761. - key
  1762. - operator
  1763. type: object
  1764. type: array
  1765. x-kubernetes-list-type: atomic
  1766. matchLabels:
  1767. additionalProperties:
  1768. type: string
  1769. description: |-
  1770. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  1771. map is equivalent to an element of matchExpressions, whose key field is "key", the
  1772. operator is "In", and the values array contains only "value". The requirements are ANDed.
  1773. type: object
  1774. type: object
  1775. x-kubernetes-map-type: atomic
  1776. matchLabelKeys:
  1777. description: |-
  1778. MatchLabelKeys is a set of pod label keys to select the pods over which
  1779. spreading will be calculated. The keys are used to lookup values from the
  1780. incoming pod labels, those key-value labels are ANDed with labelSelector
  1781. to select the group of existing pods over which spreading will be calculated
  1782. for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
  1783. MatchLabelKeys cannot be set when LabelSelector isn't set.
  1784. Keys that don't exist in the incoming pod labels will
  1785. be ignored. A null or empty list means only match against labelSelector.
  1786. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
  1787. items:
  1788. type: string
  1789. type: array
  1790. x-kubernetes-list-type: atomic
  1791. maxSkew:
  1792. description: |-
  1793. MaxSkew describes the degree to which pods may be unevenly distributed.
  1794. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
  1795. between the number of matching pods in the target topology and the global minimum.
  1796. The global minimum is the minimum number of matching pods in an eligible domain
  1797. or zero if the number of eligible domains is less than MinDomains.
  1798. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
  1799. labelSelector spread as 2/2/1:
  1800. In this case, the global minimum is 1.
  1801. | zone1 | zone2 | zone3 |
  1802. | P P | P P | P |
  1803. - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
  1804. scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
  1805. violate MaxSkew(1).
  1806. - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
  1807. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
  1808. to topologies that satisfy it.
  1809. It's a required field. Default value is 1 and 0 is not allowed.
  1810. format: int32
  1811. type: integer
  1812. minDomains:
  1813. description: |-
  1814. MinDomains indicates a minimum number of eligible domains.
  1815. When the number of eligible domains with matching topology keys is less than minDomains,
  1816. Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
  1817. And when the number of eligible domains with matching topology keys equals or greater than minDomains,
  1818. this value has no effect on scheduling.
  1819. As a result, when the number of eligible domains is less than minDomains,
  1820. scheduler won't schedule more than maxSkew Pods to those domains.
  1821. If value is nil, the constraint behaves as if MinDomains is equal to 1.
  1822. Valid values are integers greater than 0.
  1823. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
  1824. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
  1825. labelSelector spread as 2/2/2:
  1826. | zone1 | zone2 | zone3 |
  1827. | P P | P P | P P |
  1828. The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
  1829. In this situation, new pod with the same labelSelector cannot be scheduled,
  1830. because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
  1831. it will violate MaxSkew.
  1832. format: int32
  1833. type: integer
  1834. nodeAffinityPolicy:
  1835. description: |-
  1836. NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
  1837. when calculating pod topology spread skew. Options are:
  1838. - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
  1839. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
  1840. If this value is nil, the behavior is equivalent to the Honor policy.
  1841. type: string
  1842. nodeTaintsPolicy:
  1843. description: |-
  1844. NodeTaintsPolicy indicates how we will treat node taints when calculating
  1845. pod topology spread skew. Options are:
  1846. - Honor: nodes without taints, along with tainted nodes for which the incoming pod
  1847. has a toleration, are included.
  1848. - Ignore: node taints are ignored. All nodes are included.
  1849. If this value is nil, the behavior is equivalent to the Ignore policy.
  1850. type: string
  1851. topologyKey:
  1852. description: |-
  1853. TopologyKey is the key of node labels. Nodes that have a label with this key
  1854. and identical values are considered to be in the same topology.
  1855. We consider each <key, value> as a "bucket", and try to put balanced number
  1856. of pods into each bucket.
  1857. We define a domain as a particular instance of a topology.
  1858. Also, we define an eligible domain as a domain whose nodes meet the requirements of
  1859. nodeAffinityPolicy and nodeTaintsPolicy.
  1860. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
  1861. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
  1862. It's a required field.
  1863. type: string
  1864. whenUnsatisfiable:
  1865. description: |-
  1866. WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
  1867. the spread constraint.
  1868. - DoNotSchedule (default) tells the scheduler not to schedule it.
  1869. - ScheduleAnyway tells the scheduler to schedule the pod in any location,
  1870. but giving higher precedence to topologies that would help reduce the
  1871. skew.
  1872. A constraint is considered "Unsatisfiable" for an incoming pod
  1873. if and only if every possible node assignment for that pod would violate
  1874. "MaxSkew" on some topology.
  1875. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
  1876. labelSelector spread as 3/1/1:
  1877. | zone1 | zone2 | zone3 |
  1878. | P P P | P | P |
  1879. If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
  1880. to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
  1881. MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
  1882. won't make it *more* imbalanced.
  1883. It's a required field.
  1884. type: string
  1885. required:
  1886. - maxSkew
  1887. - topologyKey
  1888. - whenUnsatisfiable
  1889. type: object
  1890. type: array
  1891. volumes:
  1892. description: volumes defines additional pod volumes available
  1893. to the runtime container.
  1894. items:
  1895. description: Volume represents a named volume in a pod that
  1896. may be accessed by any container in the pod.
  1897. properties:
  1898. awsElasticBlockStore:
  1899. description: |-
  1900. awsElasticBlockStore represents an AWS Disk resource that is attached to a
  1901. kubelet's host machine and then exposed to the pod.
  1902. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
  1903. awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
  1904. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  1905. properties:
  1906. fsType:
  1907. description: |-
  1908. fsType is the filesystem type of the volume that you want to mount.
  1909. Tip: Ensure that the filesystem type is supported by the host operating system.
  1910. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1911. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  1912. type: string
  1913. partition:
  1914. description: |-
  1915. partition is the partition in the volume that you want to mount.
  1916. If omitted, the default is to mount by volume name.
  1917. Examples: For volume /dev/sda1, you specify the partition as "1".
  1918. Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
  1919. format: int32
  1920. type: integer
  1921. readOnly:
  1922. description: |-
  1923. readOnly value true will force the readOnly setting in VolumeMounts.
  1924. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  1925. type: boolean
  1926. volumeID:
  1927. description: |-
  1928. volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
  1929. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  1930. type: string
  1931. required:
  1932. - volumeID
  1933. type: object
  1934. azureDisk:
  1935. description: |-
  1936. azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
  1937. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
  1938. are redirected to the disk.csi.azure.com CSI driver.
  1939. properties:
  1940. cachingMode:
  1941. description: 'cachingMode is the Host Caching mode:
  1942. None, Read Only, Read Write.'
  1943. type: string
  1944. diskName:
  1945. description: diskName is the Name of the data disk
  1946. in the blob storage
  1947. type: string
  1948. diskURI:
  1949. description: diskURI is the URI of data disk in
  1950. the blob storage
  1951. type: string
  1952. fsType:
  1953. default: ext4
  1954. description: |-
  1955. fsType is Filesystem type to mount.
  1956. Must be a filesystem type supported by the host operating system.
  1957. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1958. type: string
  1959. kind:
  1960. description: 'kind expected values are Shared: multiple
  1961. blob disks per storage account Dedicated: single
  1962. blob disk per storage account Managed: azure
  1963. managed data disk (only in managed availability
  1964. set). defaults to shared'
  1965. type: string
  1966. readOnly:
  1967. default: false
  1968. description: |-
  1969. readOnly Defaults to false (read/write). ReadOnly here will force
  1970. the ReadOnly setting in VolumeMounts.
  1971. type: boolean
  1972. required:
  1973. - diskName
  1974. - diskURI
  1975. type: object
  1976. azureFile:
  1977. description: |-
  1978. azureFile represents an Azure File Service mount on the host and bind mount to the pod.
  1979. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
  1980. are redirected to the file.csi.azure.com CSI driver.
  1981. properties:
  1982. readOnly:
  1983. description: |-
  1984. readOnly defaults to false (read/write). ReadOnly here will force
  1985. the ReadOnly setting in VolumeMounts.
  1986. type: boolean
  1987. secretName:
  1988. description: secretName is the name of secret that
  1989. contains Azure Storage Account Name and Key
  1990. type: string
  1991. shareName:
  1992. description: shareName is the azure share Name
  1993. type: string
  1994. required:
  1995. - secretName
  1996. - shareName
  1997. type: object
  1998. cephfs:
  1999. description: |-
  2000. cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
  2001. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
  2002. properties:
  2003. monitors:
  2004. description: |-
  2005. monitors is Required: Monitors is a collection of Ceph monitors
  2006. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  2007. items:
  2008. type: string
  2009. type: array
  2010. x-kubernetes-list-type: atomic
  2011. path:
  2012. description: 'path is Optional: Used as the mounted
  2013. root, rather than the full Ceph tree, default
  2014. is /'
  2015. type: string
  2016. readOnly:
  2017. description: |-
  2018. readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
  2019. the ReadOnly setting in VolumeMounts.
  2020. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  2021. type: boolean
  2022. secretFile:
  2023. description: |-
  2024. secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
  2025. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  2026. type: string
  2027. secretRef:
  2028. description: |-
  2029. secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
  2030. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  2031. properties:
  2032. name:
  2033. default: ""
  2034. description: |-
  2035. Name of the referent.
  2036. This field is effectively required, but due to backwards compatibility is
  2037. allowed to be empty. Instances of this type with an empty value here are
  2038. almost certainly wrong.
  2039. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2040. type: string
  2041. type: object
  2042. x-kubernetes-map-type: atomic
  2043. user:
  2044. description: |-
  2045. user is optional: User is the rados user name, default is admin
  2046. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  2047. type: string
  2048. required:
  2049. - monitors
  2050. type: object
  2051. cinder:
  2052. description: |-
  2053. cinder represents a cinder volume attached and mounted on kubelets host machine.
  2054. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
  2055. are redirected to the cinder.csi.openstack.org CSI driver.
  2056. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  2057. properties:
  2058. fsType:
  2059. description: |-
  2060. fsType is the filesystem type to mount.
  2061. Must be a filesystem type supported by the host operating system.
  2062. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2063. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  2064. type: string
  2065. readOnly:
  2066. description: |-
  2067. readOnly defaults to false (read/write). ReadOnly here will force
  2068. the ReadOnly setting in VolumeMounts.
  2069. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  2070. type: boolean
  2071. secretRef:
  2072. description: |-
  2073. secretRef is optional: points to a secret object containing parameters used to connect
  2074. to OpenStack.
  2075. properties:
  2076. name:
  2077. default: ""
  2078. description: |-
  2079. Name of the referent.
  2080. This field is effectively required, but due to backwards compatibility is
  2081. allowed to be empty. Instances of this type with an empty value here are
  2082. almost certainly wrong.
  2083. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2084. type: string
  2085. type: object
  2086. x-kubernetes-map-type: atomic
  2087. volumeID:
  2088. description: |-
  2089. volumeID used to identify the volume in cinder.
  2090. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  2091. type: string
  2092. required:
  2093. - volumeID
  2094. type: object
  2095. configMap:
  2096. description: configMap represents a configMap that should
  2097. populate this volume
  2098. properties:
  2099. defaultMode:
  2100. description: |-
  2101. defaultMode is optional: mode bits used to set permissions on created files by default.
  2102. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  2103. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  2104. Defaults to 0644.
  2105. Directories within the path are not affected by this setting.
  2106. This might be in conflict with other options that affect the file
  2107. mode, like fsGroup, and the result can be other mode bits set.
  2108. format: int32
  2109. type: integer
  2110. items:
  2111. description: |-
  2112. items if unspecified, each key-value pair in the Data field of the referenced
  2113. ConfigMap will be projected into the volume as a file whose name is the
  2114. key and content is the value. If specified, the listed keys will be
  2115. projected into the specified paths, and unlisted keys will not be
  2116. present. If a key is specified which is not present in the ConfigMap,
  2117. the volume setup will error unless it is marked optional. Paths must be
  2118. relative and may not contain the '..' path or start with '..'.
  2119. items:
  2120. description: Maps a string key to a path within
  2121. a volume.
  2122. properties:
  2123. key:
  2124. description: key is the key to project.
  2125. type: string
  2126. mode:
  2127. description: |-
  2128. mode is Optional: mode bits used to set permissions on this file.
  2129. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  2130. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  2131. If not specified, the volume defaultMode will be used.
  2132. This might be in conflict with other options that affect the file
  2133. mode, like fsGroup, and the result can be other mode bits set.
  2134. format: int32
  2135. type: integer
  2136. path:
  2137. description: |-
  2138. path is the relative path of the file to map the key to.
  2139. May not be an absolute path.
  2140. May not contain the path element '..'.
  2141. May not start with the string '..'.
  2142. type: string
  2143. required:
  2144. - key
  2145. - path
  2146. type: object
  2147. type: array
  2148. x-kubernetes-list-type: atomic
  2149. name:
  2150. default: ""
  2151. description: |-
  2152. Name of the referent.
  2153. This field is effectively required, but due to backwards compatibility is
  2154. allowed to be empty. Instances of this type with an empty value here are
  2155. almost certainly wrong.
  2156. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2157. type: string
  2158. optional:
  2159. description: optional specify whether the ConfigMap
  2160. or its keys must be defined
  2161. type: boolean
  2162. type: object
  2163. x-kubernetes-map-type: atomic
  2164. csi:
  2165. description: csi (Container Storage Interface) represents
  2166. ephemeral storage that is handled by certain external
  2167. CSI drivers.
  2168. properties:
  2169. driver:
  2170. description: |-
  2171. driver is the name of the CSI driver that handles this volume.
  2172. Consult with your admin for the correct name as registered in the cluster.
  2173. type: string
  2174. fsType:
  2175. description: |-
  2176. fsType to mount. Ex. "ext4", "xfs", "ntfs".
  2177. If not provided, the empty value is passed to the associated CSI driver
  2178. which will determine the default filesystem to apply.
  2179. type: string
  2180. nodePublishSecretRef:
  2181. description: |-
  2182. nodePublishSecretRef is a reference to the secret object containing
  2183. sensitive information to pass to the CSI driver to complete the CSI
  2184. NodePublishVolume and NodeUnpublishVolume calls.
  2185. This field is optional, and may be empty if no secret is required. If the
  2186. secret object contains more than one secret, all secret references are passed.
  2187. properties:
  2188. name:
  2189. default: ""
  2190. description: |-
  2191. Name of the referent.
  2192. This field is effectively required, but due to backwards compatibility is
  2193. allowed to be empty. Instances of this type with an empty value here are
  2194. almost certainly wrong.
  2195. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2196. type: string
  2197. type: object
  2198. x-kubernetes-map-type: atomic
  2199. readOnly:
  2200. description: |-
  2201. readOnly specifies a read-only configuration for the volume.
  2202. Defaults to false (read/write).
  2203. type: boolean
  2204. volumeAttributes:
  2205. additionalProperties:
  2206. type: string
  2207. description: |-
  2208. volumeAttributes stores driver-specific properties that are passed to the CSI
  2209. driver. Consult your driver's documentation for supported values.
  2210. type: object
  2211. required:
  2212. - driver
  2213. type: object
  2214. downwardAPI:
  2215. description: downwardAPI represents downward API about
  2216. the pod that should populate this volume
  2217. properties:
  2218. defaultMode:
  2219. description: |-
  2220. Optional: mode bits to use on created files by default. Must be a
  2221. Optional: mode bits used to set permissions on created files by default.
  2222. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  2223. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  2224. Defaults to 0644.
  2225. Directories within the path are not affected by this setting.
  2226. This might be in conflict with other options that affect the file
  2227. mode, like fsGroup, and the result can be other mode bits set.
  2228. format: int32
  2229. type: integer
  2230. items:
  2231. description: Items is a list of downward API volume
  2232. file
  2233. items:
  2234. description: DownwardAPIVolumeFile represents
  2235. information to create the file containing the
  2236. pod field
  2237. properties:
  2238. fieldRef:
  2239. description: 'Required: Selects a field of
  2240. the pod: only annotations, labels, name,
  2241. namespace and uid are supported.'
  2242. properties:
  2243. apiVersion:
  2244. description: Version of the schema the
  2245. FieldPath is written in terms of, defaults
  2246. to "v1".
  2247. type: string
  2248. fieldPath:
  2249. description: Path of the field to select
  2250. in the specified API version.
  2251. type: string
  2252. required:
  2253. - fieldPath
  2254. type: object
  2255. x-kubernetes-map-type: atomic
  2256. mode:
  2257. description: |-
  2258. Optional: mode bits used to set permissions on this file, must be an octal value
  2259. between 0000 and 0777 or a decimal value between 0 and 511.
  2260. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  2261. If not specified, the volume defaultMode will be used.
  2262. This might be in conflict with other options that affect the file
  2263. mode, like fsGroup, and the result can be other mode bits set.
  2264. format: int32
  2265. type: integer
  2266. path:
  2267. description: 'Required: Path is the relative
  2268. path name of the file to be created. Must
  2269. not be absolute or contain the ''..'' path.
  2270. Must be utf-8 encoded. The first item of
  2271. the relative path must not start with ''..'''
  2272. type: string
  2273. resourceFieldRef:
  2274. description: |-
  2275. Selects a resource of the container: only resources limits and requests
  2276. (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
  2277. properties:
  2278. containerName:
  2279. description: 'Container name: required
  2280. for volumes, optional for env vars'
  2281. type: string
  2282. divisor:
  2283. anyOf:
  2284. - type: integer
  2285. - type: string
  2286. description: Specifies the output format
  2287. of the exposed resources, defaults to
  2288. "1"
  2289. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  2290. x-kubernetes-int-or-string: true
  2291. resource:
  2292. description: 'Required: resource to select'
  2293. type: string
  2294. required:
  2295. - resource
  2296. type: object
  2297. x-kubernetes-map-type: atomic
  2298. required:
  2299. - path
  2300. type: object
  2301. type: array
  2302. x-kubernetes-list-type: atomic
  2303. type: object
  2304. emptyDir:
  2305. description: |-
  2306. emptyDir represents a temporary directory that shares a pod's lifetime.
  2307. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  2308. properties:
  2309. medium:
  2310. description: |-
  2311. medium represents what type of storage medium should back this directory.
  2312. The default is "" which means to use the node's default medium.
  2313. Must be an empty string (default) or Memory.
  2314. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  2315. type: string
  2316. sizeLimit:
  2317. anyOf:
  2318. - type: integer
  2319. - type: string
  2320. description: |-
  2321. sizeLimit is the total amount of local storage required for this EmptyDir volume.
  2322. The size limit is also applicable for memory medium.
  2323. The maximum usage on memory medium EmptyDir would be the minimum value between
  2324. the SizeLimit specified here and the sum of memory limits of all containers in a pod.
  2325. The default is nil which means that the limit is undefined.
  2326. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  2327. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  2328. x-kubernetes-int-or-string: true
  2329. type: object
  2330. ephemeral:
  2331. description: |-
  2332. ephemeral represents a volume that is handled by a cluster storage driver.
  2333. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
  2334. and deleted when the pod is removed.
  2335. Use this if:
  2336. a) the volume is only needed while the pod runs,
  2337. b) features of normal volumes like restoring from snapshot or capacity
  2338. tracking are needed,
  2339. c) the storage driver is specified through a storage class, and
  2340. d) the storage driver supports dynamic volume provisioning through
  2341. a PersistentVolumeClaim (see EphemeralVolumeSource for more
  2342. information on the connection between this volume type
  2343. and PersistentVolumeClaim).
  2344. Use PersistentVolumeClaim or one of the vendor-specific
  2345. APIs for volumes that persist for longer than the lifecycle
  2346. of an individual pod.
  2347. Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
  2348. be used that way - see the documentation of the driver for
  2349. more information.
  2350. A pod can use both types of ephemeral volumes and
  2351. persistent volumes at the same time.
  2352. properties:
  2353. volumeClaimTemplate:
  2354. description: |-
  2355. Will be used to create a stand-alone PVC to provision the volume.
  2356. The pod in which this EphemeralVolumeSource is embedded will be the
  2357. owner of the PVC, i.e. the PVC will be deleted together with the
  2358. pod. The name of the PVC will be `<pod name>-<volume name>` where
  2359. `<volume name>` is the name from the `PodSpec.Volumes` array
  2360. entry. Pod validation will reject the pod if the concatenated name
  2361. is not valid for a PVC (for example, too long).
  2362. An existing PVC with that name that is not owned by the pod
  2363. will *not* be used for the pod to avoid using an unrelated
  2364. volume by mistake. Starting the pod is then blocked until
  2365. the unrelated PVC is removed. If such a pre-created PVC is
  2366. meant to be used by the pod, the PVC has to updated with an
  2367. owner reference to the pod once the pod exists. Normally
  2368. this should not be necessary, but it may be useful when
  2369. manually reconstructing a broken cluster.
  2370. This field is read-only and no changes will be made by Kubernetes
  2371. to the PVC after it has been created.
  2372. Required, must not be nil.
  2373. properties:
  2374. metadata:
  2375. description: |-
  2376. May contain labels and annotations that will be copied into the PVC
  2377. when creating it. No other fields are allowed and will be rejected during
  2378. validation.
  2379. type: object
  2380. spec:
  2381. description: |-
  2382. The specification for the PersistentVolumeClaim. The entire content is
  2383. copied unchanged into the PVC that gets created from this
  2384. template. The same fields as in a PersistentVolumeClaim
  2385. are also valid here.
  2386. properties:
  2387. accessModes:
  2388. description: |-
  2389. accessModes contains the desired access modes the volume should have.
  2390. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
  2391. items:
  2392. type: string
  2393. type: array
  2394. x-kubernetes-list-type: atomic
  2395. dataSource:
  2396. description: |-
  2397. dataSource field can be used to specify either:
  2398. * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
  2399. * An existing PVC (PersistentVolumeClaim)
  2400. If the provisioner or an external controller can support the specified data source,
  2401. it will create a new volume based on the contents of the specified data source.
  2402. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
  2403. and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
  2404. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
  2405. properties:
  2406. apiGroup:
  2407. description: |-
  2408. APIGroup is the group for the resource being referenced.
  2409. If APIGroup is not specified, the specified Kind must be in the core API group.
  2410. For any other third-party types, APIGroup is required.
  2411. type: string
  2412. kind:
  2413. description: Kind is the type of resource
  2414. being referenced
  2415. type: string
  2416. name:
  2417. description: Name is the name of resource
  2418. being referenced
  2419. type: string
  2420. required:
  2421. - kind
  2422. - name
  2423. type: object
  2424. x-kubernetes-map-type: atomic
  2425. dataSourceRef:
  2426. description: |-
  2427. dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
  2428. volume is desired. This may be any object from a non-empty API group (non
  2429. core object) or a PersistentVolumeClaim object.
  2430. When this field is specified, volume binding will only succeed if the type of
  2431. the specified object matches some installed volume populator or dynamic
  2432. provisioner.
  2433. This field will replace the functionality of the dataSource field and as such
  2434. if both fields are non-empty, they must have the same value. For backwards
  2435. compatibility, when namespace isn't specified in dataSourceRef,
  2436. both fields (dataSource and dataSourceRef) will be set to the same
  2437. value automatically if one of them is empty and the other is non-empty.
  2438. When namespace is specified in dataSourceRef,
  2439. dataSource isn't set to the same value and must be empty.
  2440. There are three important differences between dataSource and dataSourceRef:
  2441. * While dataSource only allows two specific types of objects, dataSourceRef
  2442. allows any non-core object, as well as PersistentVolumeClaim objects.
  2443. * While dataSource ignores disallowed values (dropping them), dataSourceRef
  2444. preserves all values, and generates an error if a disallowed value is
  2445. specified.
  2446. * While dataSource only allows local objects, dataSourceRef allows objects
  2447. in any namespaces.
  2448. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
  2449. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
  2450. properties:
  2451. apiGroup:
  2452. description: |-
  2453. APIGroup is the group for the resource being referenced.
  2454. If APIGroup is not specified, the specified Kind must be in the core API group.
  2455. For any other third-party types, APIGroup is required.
  2456. type: string
  2457. kind:
  2458. description: Kind is the type of resource
  2459. being referenced
  2460. type: string
  2461. name:
  2462. description: Name is the name of resource
  2463. being referenced
  2464. type: string
  2465. namespace:
  2466. description: |-
  2467. Namespace is the namespace of resource being referenced
  2468. Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
  2469. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
  2470. type: string
  2471. required:
  2472. - kind
  2473. - name
  2474. type: object
  2475. resources:
  2476. description: |-
  2477. resources represents the minimum resources the volume should have.
  2478. Users are allowed to specify resource requirements
  2479. that are lower than previous value but must still be higher than capacity recorded in the
  2480. status field of the claim.
  2481. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
  2482. properties:
  2483. limits:
  2484. additionalProperties:
  2485. anyOf:
  2486. - type: integer
  2487. - type: string
  2488. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  2489. x-kubernetes-int-or-string: true
  2490. description: |-
  2491. Limits describes the maximum amount of compute resources allowed.
  2492. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  2493. type: object
  2494. requests:
  2495. additionalProperties:
  2496. anyOf:
  2497. - type: integer
  2498. - type: string
  2499. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  2500. x-kubernetes-int-or-string: true
  2501. description: |-
  2502. Requests describes the minimum amount of compute resources required.
  2503. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
  2504. otherwise to an implementation-defined value. Requests cannot exceed Limits.
  2505. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  2506. type: object
  2507. type: object
  2508. selector:
  2509. description: selector is a label query over
  2510. volumes to consider for binding.
  2511. properties:
  2512. matchExpressions:
  2513. description: matchExpressions is a list
  2514. of label selector requirements. The
  2515. requirements are ANDed.
  2516. items:
  2517. description: |-
  2518. A label selector requirement is a selector that contains values, a key, and an operator that
  2519. relates the key and values.
  2520. properties:
  2521. key:
  2522. description: key is the label
  2523. key that the selector applies
  2524. to.
  2525. type: string
  2526. operator:
  2527. description: |-
  2528. operator represents a key's relationship to a set of values.
  2529. Valid operators are In, NotIn, Exists and DoesNotExist.
  2530. type: string
  2531. values:
  2532. description: |-
  2533. values is an array of string values. If the operator is In or NotIn,
  2534. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  2535. the values array must be empty. This array is replaced during a strategic
  2536. merge patch.
  2537. items:
  2538. type: string
  2539. type: array
  2540. x-kubernetes-list-type: atomic
  2541. required:
  2542. - key
  2543. - operator
  2544. type: object
  2545. type: array
  2546. x-kubernetes-list-type: atomic
  2547. matchLabels:
  2548. additionalProperties:
  2549. type: string
  2550. description: |-
  2551. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  2552. map is equivalent to an element of matchExpressions, whose key field is "key", the
  2553. operator is "In", and the values array contains only "value". The requirements are ANDed.
  2554. type: object
  2555. type: object
  2556. x-kubernetes-map-type: atomic
  2557. storageClassName:
  2558. description: |-
  2559. storageClassName is the name of the StorageClass required by the claim.
  2560. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
  2561. type: string
  2562. volumeAttributesClassName:
  2563. description: |-
  2564. volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
  2565. If specified, the CSI driver will create or update the volume with the attributes defined
  2566. in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
  2567. it can be changed after the claim is created. An empty string or nil value indicates that no
  2568. VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state,
  2569. this field can be reset to its previous value (including nil) to cancel the modification.
  2570. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
  2571. set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
  2572. exists.
  2573. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
  2574. type: string
  2575. volumeMode:
  2576. description: |-
  2577. volumeMode defines what type of volume is required by the claim.
  2578. Value of Filesystem is implied when not included in claim spec.
  2579. type: string
  2580. volumeName:
  2581. description: volumeName is the binding reference
  2582. to the PersistentVolume backing this claim.
  2583. type: string
  2584. type: object
  2585. required:
  2586. - spec
  2587. type: object
  2588. type: object
  2589. fc:
  2590. description: fc represents a Fibre Channel resource
  2591. that is attached to a kubelet's host machine and then
  2592. exposed to the pod.
  2593. properties:
  2594. fsType:
  2595. description: |-
  2596. fsType is the filesystem type to mount.
  2597. Must be a filesystem type supported by the host operating system.
  2598. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2599. type: string
  2600. lun:
  2601. description: 'lun is Optional: FC target lun number'
  2602. format: int32
  2603. type: integer
  2604. readOnly:
  2605. description: |-
  2606. readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
  2607. the ReadOnly setting in VolumeMounts.
  2608. type: boolean
  2609. targetWWNs:
  2610. description: 'targetWWNs is Optional: FC target
  2611. worldwide names (WWNs)'
  2612. items:
  2613. type: string
  2614. type: array
  2615. x-kubernetes-list-type: atomic
  2616. wwids:
  2617. description: |-
  2618. wwids Optional: FC volume world wide identifiers (wwids)
  2619. Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
  2620. items:
  2621. type: string
  2622. type: array
  2623. x-kubernetes-list-type: atomic
  2624. type: object
  2625. flexVolume:
  2626. description: |-
  2627. flexVolume represents a generic volume resource that is
  2628. provisioned/attached using an exec based plugin.
  2629. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
  2630. properties:
  2631. driver:
  2632. description: driver is the name of the driver to
  2633. use for this volume.
  2634. type: string
  2635. fsType:
  2636. description: |-
  2637. fsType is the filesystem type to mount.
  2638. Must be a filesystem type supported by the host operating system.
  2639. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
  2640. type: string
  2641. options:
  2642. additionalProperties:
  2643. type: string
  2644. description: 'options is Optional: this field holds
  2645. extra command options if any.'
  2646. type: object
  2647. readOnly:
  2648. description: |-
  2649. readOnly is Optional: defaults to false (read/write). ReadOnly here will force
  2650. the ReadOnly setting in VolumeMounts.
  2651. type: boolean
  2652. secretRef:
  2653. description: |-
  2654. secretRef is Optional: secretRef is reference to the secret object containing
  2655. sensitive information to pass to the plugin scripts. This may be
  2656. empty if no secret object is specified. If the secret object
  2657. contains more than one secret, all secrets are passed to the plugin
  2658. scripts.
  2659. properties:
  2660. name:
  2661. default: ""
  2662. description: |-
  2663. Name of the referent.
  2664. This field is effectively required, but due to backwards compatibility is
  2665. allowed to be empty. Instances of this type with an empty value here are
  2666. almost certainly wrong.
  2667. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2668. type: string
  2669. type: object
  2670. x-kubernetes-map-type: atomic
  2671. required:
  2672. - driver
  2673. type: object
  2674. flocker:
  2675. description: |-
  2676. flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
  2677. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
  2678. properties:
  2679. datasetName:
  2680. description: |-
  2681. datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
  2682. should be considered as deprecated
  2683. type: string
  2684. datasetUUID:
  2685. description: datasetUUID is the UUID of the dataset.
  2686. This is unique identifier of a Flocker dataset
  2687. type: string
  2688. type: object
  2689. gcePersistentDisk:
  2690. description: |-
  2691. gcePersistentDisk represents a GCE Disk resource that is attached to a
  2692. kubelet's host machine and then exposed to the pod.
  2693. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
  2694. gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
  2695. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2696. properties:
  2697. fsType:
  2698. description: |-
  2699. fsType is filesystem type of the volume that you want to mount.
  2700. Tip: Ensure that the filesystem type is supported by the host operating system.
  2701. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2702. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2703. type: string
  2704. partition:
  2705. description: |-
  2706. partition is the partition in the volume that you want to mount.
  2707. If omitted, the default is to mount by volume name.
  2708. Examples: For volume /dev/sda1, you specify the partition as "1".
  2709. Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
  2710. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2711. format: int32
  2712. type: integer
  2713. pdName:
  2714. description: |-
  2715. pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
  2716. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2717. type: string
  2718. readOnly:
  2719. description: |-
  2720. readOnly here will force the ReadOnly setting in VolumeMounts.
  2721. Defaults to false.
  2722. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2723. type: boolean
  2724. required:
  2725. - pdName
  2726. type: object
  2727. gitRepo:
  2728. description: |-
  2729. gitRepo represents a git repository at a particular revision.
  2730. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
  2731. EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
  2732. into the Pod's container.
  2733. properties:
  2734. directory:
  2735. description: |-
  2736. directory is the target directory name.
  2737. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
  2738. git repository. Otherwise, if specified, the volume will contain the git repository in
  2739. the subdirectory with the given name.
  2740. type: string
  2741. repository:
  2742. description: repository is the URL
  2743. type: string
  2744. revision:
  2745. description: revision is the commit hash for the
  2746. specified revision.
  2747. type: string
  2748. required:
  2749. - repository
  2750. type: object
  2751. glusterfs:
  2752. description: |-
  2753. glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
  2754. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
  2755. properties:
  2756. endpoints:
  2757. description: endpoints is the endpoint name that
  2758. details Glusterfs topology.
  2759. type: string
  2760. path:
  2761. description: |-
  2762. path is the Glusterfs volume path.
  2763. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  2764. type: string
  2765. readOnly:
  2766. description: |-
  2767. readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
  2768. Defaults to false.
  2769. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  2770. type: boolean
  2771. required:
  2772. - endpoints
  2773. - path
  2774. type: object
  2775. hostPath:
  2776. description: |-
  2777. hostPath represents a pre-existing file or directory on the host
  2778. machine that is directly exposed to the container. This is generally
  2779. used for system agents or other privileged things that are allowed
  2780. to see the host machine. Most containers will NOT need this.
  2781. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  2782. properties:
  2783. path:
  2784. description: |-
  2785. path of the directory on the host.
  2786. If the path is a symlink, it will follow the link to the real path.
  2787. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  2788. type: string
  2789. type:
  2790. description: |-
  2791. type for HostPath Volume
  2792. Defaults to ""
  2793. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  2794. type: string
  2795. required:
  2796. - path
  2797. type: object
  2798. image:
  2799. description: |-
  2800. image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
  2801. The volume is resolved at pod startup depending on which PullPolicy value is provided:
  2802. - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
  2803. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
  2804. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
  2805. The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
  2806. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
  2807. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
  2808. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
  2809. The volume will be mounted read-only (ro) and non-executable files (noexec).
  2810. Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33.
  2811. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
  2812. properties:
  2813. pullPolicy:
  2814. description: |-
  2815. Policy for pulling OCI objects. Possible values are:
  2816. Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
  2817. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
  2818. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
  2819. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
  2820. type: string
  2821. reference:
  2822. description: |-
  2823. Required: Image or artifact reference to be used.
  2824. Behaves in the same way as pod.spec.containers[*].image.
  2825. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
  2826. More info: https://kubernetes.io/docs/concepts/containers/images
  2827. This field is optional to allow higher level config management to default or override
  2828. container images in workload controllers like Deployments and StatefulSets.
  2829. type: string
  2830. type: object
  2831. iscsi:
  2832. description: |-
  2833. iscsi represents an ISCSI Disk resource that is attached to a
  2834. kubelet's host machine and then exposed to the pod.
  2835. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi
  2836. properties:
  2837. chapAuthDiscovery:
  2838. description: chapAuthDiscovery defines whether support
  2839. iSCSI Discovery CHAP authentication
  2840. type: boolean
  2841. chapAuthSession:
  2842. description: chapAuthSession defines whether support
  2843. iSCSI Session CHAP authentication
  2844. type: boolean
  2845. fsType:
  2846. description: |-
  2847. fsType is the filesystem type of the volume that you want to mount.
  2848. Tip: Ensure that the filesystem type is supported by the host operating system.
  2849. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2850. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
  2851. type: string
  2852. initiatorName:
  2853. description: |-
  2854. initiatorName is the custom iSCSI Initiator Name.
  2855. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
  2856. <target portal>:<volume name> will be created for the connection.
  2857. type: string
  2858. iqn:
  2859. description: iqn is the target iSCSI Qualified Name.
  2860. type: string
  2861. iscsiInterface:
  2862. default: default
  2863. description: |-
  2864. iscsiInterface is the interface Name that uses an iSCSI transport.
  2865. Defaults to 'default' (tcp).
  2866. type: string
  2867. lun:
  2868. description: lun represents iSCSI Target Lun number.
  2869. format: int32
  2870. type: integer
  2871. portals:
  2872. description: |-
  2873. portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
  2874. is other than default (typically TCP ports 860 and 3260).
  2875. items:
  2876. type: string
  2877. type: array
  2878. x-kubernetes-list-type: atomic
  2879. readOnly:
  2880. description: |-
  2881. readOnly here will force the ReadOnly setting in VolumeMounts.
  2882. Defaults to false.
  2883. type: boolean
  2884. secretRef:
  2885. description: secretRef is the CHAP Secret for iSCSI
  2886. target and initiator authentication
  2887. properties:
  2888. name:
  2889. default: ""
  2890. description: |-
  2891. Name of the referent.
  2892. This field is effectively required, but due to backwards compatibility is
  2893. allowed to be empty. Instances of this type with an empty value here are
  2894. almost certainly wrong.
  2895. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2896. type: string
  2897. type: object
  2898. x-kubernetes-map-type: atomic
  2899. targetPortal:
  2900. description: |-
  2901. targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
  2902. is other than default (typically TCP ports 860 and 3260).
  2903. type: string
  2904. required:
  2905. - iqn
  2906. - lun
  2907. - targetPortal
  2908. type: object
  2909. name:
  2910. description: |-
  2911. name of the volume.
  2912. Must be a DNS_LABEL and unique within the pod.
  2913. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2914. type: string
  2915. nfs:
  2916. description: |-
  2917. nfs represents an NFS mount on the host that shares a pod's lifetime
  2918. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  2919. properties:
  2920. path:
  2921. description: |-
  2922. path that is exported by the NFS server.
  2923. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  2924. type: string
  2925. readOnly:
  2926. description: |-
  2927. readOnly here will force the NFS export to be mounted with read-only permissions.
  2928. Defaults to false.
  2929. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  2930. type: boolean
  2931. server:
  2932. description: |-
  2933. server is the hostname or IP address of the NFS server.
  2934. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  2935. type: string
  2936. required:
  2937. - path
  2938. - server
  2939. type: object
  2940. persistentVolumeClaim:
  2941. description: |-
  2942. persistentVolumeClaimVolumeSource represents a reference to a
  2943. PersistentVolumeClaim in the same namespace.
  2944. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2945. properties:
  2946. claimName:
  2947. description: |-
  2948. claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
  2949. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2950. type: string
  2951. readOnly:
  2952. description: |-
  2953. readOnly Will force the ReadOnly setting in VolumeMounts.
  2954. Default false.
  2955. type: boolean
  2956. required:
  2957. - claimName
  2958. type: object
  2959. photonPersistentDisk:
  2960. description: |-
  2961. photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
  2962. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
  2963. properties:
  2964. fsType:
  2965. description: |-
  2966. fsType is the filesystem type to mount.
  2967. Must be a filesystem type supported by the host operating system.
  2968. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2969. type: string
  2970. pdID:
  2971. description: pdID is the ID that identifies Photon
  2972. Controller persistent disk
  2973. type: string
  2974. required:
  2975. - pdID
  2976. type: object
  2977. portworxVolume:
  2978. description: |-
  2979. portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
  2980. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
  2981. are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
  2982. is on.
  2983. properties:
  2984. fsType:
  2985. description: |-
  2986. fSType represents the filesystem type to mount
  2987. Must be a filesystem type supported by the host operating system.
  2988. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
  2989. type: string
  2990. readOnly:
  2991. description: |-
  2992. readOnly defaults to false (read/write). ReadOnly here will force
  2993. the ReadOnly setting in VolumeMounts.
  2994. type: boolean
  2995. volumeID:
  2996. description: volumeID uniquely identifies a Portworx
  2997. volume
  2998. type: string
  2999. required:
  3000. - volumeID
  3001. type: object
  3002. projected:
  3003. description: projected items for all in one resources
  3004. secrets, configmaps, and downward API
  3005. properties:
  3006. defaultMode:
  3007. description: |-
  3008. defaultMode are the mode bits used to set permissions on created files by default.
  3009. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3010. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3011. Directories within the path are not affected by this setting.
  3012. This might be in conflict with other options that affect the file
  3013. mode, like fsGroup, and the result can be other mode bits set.
  3014. format: int32
  3015. type: integer
  3016. sources:
  3017. description: |-
  3018. sources is the list of volume projections. Each entry in this list
  3019. handles one source.
  3020. items:
  3021. description: |-
  3022. Projection that may be projected along with other supported volume types.
  3023. Exactly one of these fields must be set.
  3024. properties:
  3025. clusterTrustBundle:
  3026. description: |-
  3027. ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field
  3028. of ClusterTrustBundle objects in an auto-updating file.
  3029. Alpha, gated by the ClusterTrustBundleProjection feature gate.
  3030. ClusterTrustBundle objects can either be selected by name, or by the
  3031. combination of signer name and a label selector.
  3032. Kubelet performs aggressive normalization of the PEM contents written
  3033. into the pod filesystem. Esoteric PEM features such as inter-block
  3034. comments and block headers are stripped. Certificates are deduplicated.
  3035. The ordering of certificates within the file is arbitrary, and Kubelet
  3036. may change the order over time.
  3037. properties:
  3038. labelSelector:
  3039. description: |-
  3040. Select all ClusterTrustBundles that match this label selector. Only has
  3041. effect if signerName is set. Mutually-exclusive with name. If unset,
  3042. interpreted as "match nothing". If set but empty, interpreted as "match
  3043. everything".
  3044. properties:
  3045. matchExpressions:
  3046. description: matchExpressions is a
  3047. list of label selector requirements.
  3048. The requirements are ANDed.
  3049. items:
  3050. description: |-
  3051. A label selector requirement is a selector that contains values, a key, and an operator that
  3052. relates the key and values.
  3053. properties:
  3054. key:
  3055. description: key is the label
  3056. key that the selector applies
  3057. to.
  3058. type: string
  3059. operator:
  3060. description: |-
  3061. operator represents a key's relationship to a set of values.
  3062. Valid operators are In, NotIn, Exists and DoesNotExist.
  3063. type: string
  3064. values:
  3065. description: |-
  3066. values is an array of string values. If the operator is In or NotIn,
  3067. the values array must be non-empty. If the operator is Exists or DoesNotExist,
  3068. the values array must be empty. This array is replaced during a strategic
  3069. merge patch.
  3070. items:
  3071. type: string
  3072. type: array
  3073. x-kubernetes-list-type: atomic
  3074. required:
  3075. - key
  3076. - operator
  3077. type: object
  3078. type: array
  3079. x-kubernetes-list-type: atomic
  3080. matchLabels:
  3081. additionalProperties:
  3082. type: string
  3083. description: |-
  3084. matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
  3085. map is equivalent to an element of matchExpressions, whose key field is "key", the
  3086. operator is "In", and the values array contains only "value". The requirements are ANDed.
  3087. type: object
  3088. type: object
  3089. x-kubernetes-map-type: atomic
  3090. name:
  3091. description: |-
  3092. Select a single ClusterTrustBundle by object name. Mutually-exclusive
  3093. with signerName and labelSelector.
  3094. type: string
  3095. optional:
  3096. description: |-
  3097. If true, don't block pod startup if the referenced ClusterTrustBundle(s)
  3098. aren't available. If using name, then the named ClusterTrustBundle is
  3099. allowed not to exist. If using signerName, then the combination of
  3100. signerName and labelSelector is allowed to match zero
  3101. ClusterTrustBundles.
  3102. type: boolean
  3103. path:
  3104. description: Relative path from the volume
  3105. root to write the bundle.
  3106. type: string
  3107. signerName:
  3108. description: |-
  3109. Select all ClusterTrustBundles that match this signer name.
  3110. Mutually-exclusive with name. The contents of all selected
  3111. ClusterTrustBundles will be unified and deduplicated.
  3112. type: string
  3113. required:
  3114. - path
  3115. type: object
  3116. configMap:
  3117. description: configMap information about the
  3118. configMap data to project
  3119. properties:
  3120. items:
  3121. description: |-
  3122. items if unspecified, each key-value pair in the Data field of the referenced
  3123. ConfigMap will be projected into the volume as a file whose name is the
  3124. key and content is the value. If specified, the listed keys will be
  3125. projected into the specified paths, and unlisted keys will not be
  3126. present. If a key is specified which is not present in the ConfigMap,
  3127. the volume setup will error unless it is marked optional. Paths must be
  3128. relative and may not contain the '..' path or start with '..'.
  3129. items:
  3130. description: Maps a string key to a
  3131. path within a volume.
  3132. properties:
  3133. key:
  3134. description: key is the key to project.
  3135. type: string
  3136. mode:
  3137. description: |-
  3138. mode is Optional: mode bits used to set permissions on this file.
  3139. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3140. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3141. If not specified, the volume defaultMode will be used.
  3142. This might be in conflict with other options that affect the file
  3143. mode, like fsGroup, and the result can be other mode bits set.
  3144. format: int32
  3145. type: integer
  3146. path:
  3147. description: |-
  3148. path is the relative path of the file to map the key to.
  3149. May not be an absolute path.
  3150. May not contain the path element '..'.
  3151. May not start with the string '..'.
  3152. type: string
  3153. required:
  3154. - key
  3155. - path
  3156. type: object
  3157. type: array
  3158. x-kubernetes-list-type: atomic
  3159. name:
  3160. default: ""
  3161. description: |-
  3162. Name of the referent.
  3163. This field is effectively required, but due to backwards compatibility is
  3164. allowed to be empty. Instances of this type with an empty value here are
  3165. almost certainly wrong.
  3166. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  3167. type: string
  3168. optional:
  3169. description: optional specify whether
  3170. the ConfigMap or its keys must be defined
  3171. type: boolean
  3172. type: object
  3173. x-kubernetes-map-type: atomic
  3174. downwardAPI:
  3175. description: downwardAPI information about
  3176. the downwardAPI data to project
  3177. properties:
  3178. items:
  3179. description: Items is a list of DownwardAPIVolume
  3180. file
  3181. items:
  3182. description: DownwardAPIVolumeFile represents
  3183. information to create the file containing
  3184. the pod field
  3185. properties:
  3186. fieldRef:
  3187. description: 'Required: Selects
  3188. a field of the pod: only annotations,
  3189. labels, name, namespace and uid
  3190. are supported.'
  3191. properties:
  3192. apiVersion:
  3193. description: Version of the
  3194. schema the FieldPath is written
  3195. in terms of, defaults to "v1".
  3196. type: string
  3197. fieldPath:
  3198. description: Path of the field
  3199. to select in the specified
  3200. API version.
  3201. type: string
  3202. required:
  3203. - fieldPath
  3204. type: object
  3205. x-kubernetes-map-type: atomic
  3206. mode:
  3207. description: |-
  3208. Optional: mode bits used to set permissions on this file, must be an octal value
  3209. between 0000 and 0777 or a decimal value between 0 and 511.
  3210. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3211. If not specified, the volume defaultMode will be used.
  3212. This might be in conflict with other options that affect the file
  3213. mode, like fsGroup, and the result can be other mode bits set.
  3214. format: int32
  3215. type: integer
  3216. path:
  3217. description: 'Required: Path is the
  3218. relative path name of the file
  3219. to be created. Must not be absolute
  3220. or contain the ''..'' path. Must
  3221. be utf-8 encoded. The first item
  3222. of the relative path must not
  3223. start with ''..'''
  3224. type: string
  3225. resourceFieldRef:
  3226. description: |-
  3227. Selects a resource of the container: only resources limits and requests
  3228. (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
  3229. properties:
  3230. containerName:
  3231. description: 'Container name:
  3232. required for volumes, optional
  3233. for env vars'
  3234. type: string
  3235. divisor:
  3236. anyOf:
  3237. - type: integer
  3238. - type: string
  3239. description: Specifies the output
  3240. format of the exposed resources,
  3241. defaults to "1"
  3242. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  3243. x-kubernetes-int-or-string: true
  3244. resource:
  3245. description: 'Required: resource
  3246. to select'
  3247. type: string
  3248. required:
  3249. - resource
  3250. type: object
  3251. x-kubernetes-map-type: atomic
  3252. required:
  3253. - path
  3254. type: object
  3255. type: array
  3256. x-kubernetes-list-type: atomic
  3257. type: object
  3258. podCertificate:
  3259. description: |-
  3260. Projects an auto-rotating credential bundle (private key and certificate
  3261. chain) that the pod can use either as a TLS client or server.
  3262. Kubelet generates a private key and uses it to send a
  3263. PodCertificateRequest to the named signer. Once the signer approves the
  3264. request and issues a certificate chain, Kubelet writes the key and
  3265. certificate chain to the pod filesystem. The pod does not start until
  3266. certificates have been issued for each podCertificate projected volume
  3267. source in its spec.
  3268. Kubelet will begin trying to rotate the certificate at the time indicated
  3269. by the signer using the PodCertificateRequest.Status.BeginRefreshAt
  3270. timestamp.
  3271. Kubelet can write a single file, indicated by the credentialBundlePath
  3272. field, or separate files, indicated by the keyPath and
  3273. certificateChainPath fields.
  3274. The credential bundle is a single file in PEM format. The first PEM
  3275. entry is the private key (in PKCS#8 format), and the remaining PEM
  3276. entries are the certificate chain issued by the signer (typically,
  3277. signers will return their certificate chain in leaf-to-root order).
  3278. Prefer using the credential bundle format, since your application code
  3279. can read it atomically. If you use keyPath and certificateChainPath,
  3280. your application must make two separate file reads. If these coincide
  3281. with a certificate rotation, it is possible that the private key and leaf
  3282. certificate you read may not correspond to each other. Your application
  3283. will need to check for this condition, and re-read until they are
  3284. consistent.
  3285. The named signer controls chooses the format of the certificate it
  3286. issues; consult the signer implementation's documentation to learn how to
  3287. use the certificates it issues.
  3288. properties:
  3289. certificateChainPath:
  3290. description: |-
  3291. Write the certificate chain at this path in the projected volume.
  3292. Most applications should use credentialBundlePath. When using keyPath
  3293. and certificateChainPath, your application needs to check that the key
  3294. and leaf certificate are consistent, because it is possible to read the
  3295. files mid-rotation.
  3296. type: string
  3297. credentialBundlePath:
  3298. description: |-
  3299. Write the credential bundle at this path in the projected volume.
  3300. The credential bundle is a single file that contains multiple PEM blocks.
  3301. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private
  3302. key.
  3303. The remaining blocks are CERTIFICATE blocks, containing the issued
  3304. certificate chain from the signer (leaf and any intermediates).
  3305. Using credentialBundlePath lets your Pod's application code make a single
  3306. atomic read that retrieves a consistent key and certificate chain. If you
  3307. project them to separate files, your application code will need to
  3308. additionally check that the leaf certificate was issued to the key.
  3309. type: string
  3310. keyPath:
  3311. description: |-
  3312. Write the key at this path in the projected volume.
  3313. Most applications should use credentialBundlePath. When using keyPath
  3314. and certificateChainPath, your application needs to check that the key
  3315. and leaf certificate are consistent, because it is possible to read the
  3316. files mid-rotation.
  3317. type: string
  3318. keyType:
  3319. description: |-
  3320. The type of keypair Kubelet will generate for the pod.
  3321. Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384",
  3322. "ECDSAP521", and "ED25519".
  3323. type: string
  3324. maxExpirationSeconds:
  3325. description: |-
  3326. maxExpirationSeconds is the maximum lifetime permitted for the
  3327. certificate.
  3328. Kubelet copies this value verbatim into the PodCertificateRequests it
  3329. generates for this projection.
  3330. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver
  3331. will reject values shorter than 3600 (1 hour). The maximum allowable
  3332. value is 7862400 (91 days).
  3333. The signer implementation is then free to issue a certificate with any
  3334. lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600
  3335. seconds (1 hour). This constraint is enforced by kube-apiserver.
  3336. `kubernetes.io` signers will never issue certificates with a lifetime
  3337. longer than 24 hours.
  3338. format: int32
  3339. type: integer
  3340. signerName:
  3341. description: Kubelet's generated CSRs
  3342. will be addressed to this signer.
  3343. type: string
  3344. userAnnotations:
  3345. additionalProperties:
  3346. type: string
  3347. description: |-
  3348. userAnnotations allow pod authors to pass additional information to
  3349. the signer implementation. Kubernetes does not restrict or validate this
  3350. metadata in any way.
  3351. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of
  3352. the PodCertificateRequest objects that Kubelet creates.
  3353. Entries are subject to the same validation as object metadata annotations,
  3354. with the addition that all keys must be domain-prefixed. No restrictions
  3355. are placed on values, except an overall size limitation on the entire field.
  3356. Signers should document the keys and values they support. Signers should
  3357. deny requests that contain keys they do not recognize.
  3358. type: object
  3359. required:
  3360. - keyType
  3361. - signerName
  3362. type: object
  3363. secret:
  3364. description: secret information about the
  3365. secret data to project
  3366. properties:
  3367. items:
  3368. description: |-
  3369. items if unspecified, each key-value pair in the Data field of the referenced
  3370. Secret will be projected into the volume as a file whose name is the
  3371. key and content is the value. If specified, the listed keys will be
  3372. projected into the specified paths, and unlisted keys will not be
  3373. present. If a key is specified which is not present in the Secret,
  3374. the volume setup will error unless it is marked optional. Paths must be
  3375. relative and may not contain the '..' path or start with '..'.
  3376. items:
  3377. description: Maps a string key to a
  3378. path within a volume.
  3379. properties:
  3380. key:
  3381. description: key is the key to project.
  3382. type: string
  3383. mode:
  3384. description: |-
  3385. mode is Optional: mode bits used to set permissions on this file.
  3386. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3387. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3388. If not specified, the volume defaultMode will be used.
  3389. This might be in conflict with other options that affect the file
  3390. mode, like fsGroup, and the result can be other mode bits set.
  3391. format: int32
  3392. type: integer
  3393. path:
  3394. description: |-
  3395. path is the relative path of the file to map the key to.
  3396. May not be an absolute path.
  3397. May not contain the path element '..'.
  3398. May not start with the string '..'.
  3399. type: string
  3400. required:
  3401. - key
  3402. - path
  3403. type: object
  3404. type: array
  3405. x-kubernetes-list-type: atomic
  3406. name:
  3407. default: ""
  3408. description: |-
  3409. Name of the referent.
  3410. This field is effectively required, but due to backwards compatibility is
  3411. allowed to be empty. Instances of this type with an empty value here are
  3412. almost certainly wrong.
  3413. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  3414. type: string
  3415. optional:
  3416. description: optional field specify whether
  3417. the Secret or its key must be defined
  3418. type: boolean
  3419. type: object
  3420. x-kubernetes-map-type: atomic
  3421. serviceAccountToken:
  3422. description: serviceAccountToken is information
  3423. about the serviceAccountToken data to project
  3424. properties:
  3425. audience:
  3426. description: |-
  3427. audience is the intended audience of the token. A recipient of a token
  3428. must identify itself with an identifier specified in the audience of the
  3429. token, and otherwise should reject the token. The audience defaults to the
  3430. identifier of the apiserver.
  3431. type: string
  3432. expirationSeconds:
  3433. description: |-
  3434. expirationSeconds is the requested duration of validity of the service
  3435. account token. As the token approaches expiration, the kubelet volume
  3436. plugin will proactively rotate the service account token. The kubelet will
  3437. start trying to rotate the token if the token is older than 80 percent of
  3438. its time to live or if the token is older than 24 hours.Defaults to 1 hour
  3439. and must be at least 10 minutes.
  3440. format: int64
  3441. type: integer
  3442. path:
  3443. description: |-
  3444. path is the path relative to the mount point of the file to project the
  3445. token into.
  3446. type: string
  3447. required:
  3448. - path
  3449. type: object
  3450. type: object
  3451. type: array
  3452. x-kubernetes-list-type: atomic
  3453. type: object
  3454. quobyte:
  3455. description: |-
  3456. quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
  3457. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
  3458. properties:
  3459. group:
  3460. description: |-
  3461. group to map volume access to
  3462. Default is no group
  3463. type: string
  3464. readOnly:
  3465. description: |-
  3466. readOnly here will force the Quobyte volume to be mounted with read-only permissions.
  3467. Defaults to false.
  3468. type: boolean
  3469. registry:
  3470. description: |-
  3471. registry represents a single or multiple Quobyte Registry services
  3472. specified as a string as host:port pair (multiple entries are separated with commas)
  3473. which acts as the central registry for volumes
  3474. type: string
  3475. tenant:
  3476. description: |-
  3477. tenant owning the given Quobyte volume in the Backend
  3478. Used with dynamically provisioned Quobyte volumes, value is set by the plugin
  3479. type: string
  3480. user:
  3481. description: |-
  3482. user to map volume access to
  3483. Defaults to serivceaccount user
  3484. type: string
  3485. volume:
  3486. description: volume is a string that references
  3487. an already created Quobyte volume by name.
  3488. type: string
  3489. required:
  3490. - registry
  3491. - volume
  3492. type: object
  3493. rbd:
  3494. description: |-
  3495. rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
  3496. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
  3497. properties:
  3498. fsType:
  3499. description: |-
  3500. fsType is the filesystem type of the volume that you want to mount.
  3501. Tip: Ensure that the filesystem type is supported by the host operating system.
  3502. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  3503. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
  3504. type: string
  3505. image:
  3506. description: |-
  3507. image is the rados image name.
  3508. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3509. type: string
  3510. keyring:
  3511. default: /etc/ceph/keyring
  3512. description: |-
  3513. keyring is the path to key ring for RBDUser.
  3514. Default is /etc/ceph/keyring.
  3515. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3516. type: string
  3517. monitors:
  3518. description: |-
  3519. monitors is a collection of Ceph monitors.
  3520. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3521. items:
  3522. type: string
  3523. type: array
  3524. x-kubernetes-list-type: atomic
  3525. pool:
  3526. default: rbd
  3527. description: |-
  3528. pool is the rados pool name.
  3529. Default is rbd.
  3530. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3531. type: string
  3532. readOnly:
  3533. description: |-
  3534. readOnly here will force the ReadOnly setting in VolumeMounts.
  3535. Defaults to false.
  3536. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3537. type: boolean
  3538. secretRef:
  3539. description: |-
  3540. secretRef is name of the authentication secret for RBDUser. If provided
  3541. overrides keyring.
  3542. Default is nil.
  3543. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3544. properties:
  3545. name:
  3546. default: ""
  3547. description: |-
  3548. Name of the referent.
  3549. This field is effectively required, but due to backwards compatibility is
  3550. allowed to be empty. Instances of this type with an empty value here are
  3551. almost certainly wrong.
  3552. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  3553. type: string
  3554. type: object
  3555. x-kubernetes-map-type: atomic
  3556. user:
  3557. default: admin
  3558. description: |-
  3559. user is the rados user name.
  3560. Default is admin.
  3561. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3562. type: string
  3563. required:
  3564. - image
  3565. - monitors
  3566. type: object
  3567. scaleIO:
  3568. description: |-
  3569. scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
  3570. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
  3571. properties:
  3572. fsType:
  3573. default: xfs
  3574. description: |-
  3575. fsType is the filesystem type to mount.
  3576. Must be a filesystem type supported by the host operating system.
  3577. Ex. "ext4", "xfs", "ntfs".
  3578. Default is "xfs".
  3579. type: string
  3580. gateway:
  3581. description: gateway is the host address of the
  3582. ScaleIO API Gateway.
  3583. type: string
  3584. protectionDomain:
  3585. description: protectionDomain is the name of the
  3586. ScaleIO Protection Domain for the configured storage.
  3587. type: string
  3588. readOnly:
  3589. description: |-
  3590. readOnly Defaults to false (read/write). ReadOnly here will force
  3591. the ReadOnly setting in VolumeMounts.
  3592. type: boolean
  3593. secretRef:
  3594. description: |-
  3595. secretRef references to the secret for ScaleIO user and other
  3596. sensitive information. If this is not provided, Login operation will fail.
  3597. properties:
  3598. name:
  3599. default: ""
  3600. description: |-
  3601. Name of the referent.
  3602. This field is effectively required, but due to backwards compatibility is
  3603. allowed to be empty. Instances of this type with an empty value here are
  3604. almost certainly wrong.
  3605. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  3606. type: string
  3607. type: object
  3608. x-kubernetes-map-type: atomic
  3609. sslEnabled:
  3610. description: sslEnabled Flag enable/disable SSL
  3611. communication with Gateway, default false
  3612. type: boolean
  3613. storageMode:
  3614. default: ThinProvisioned
  3615. description: |-
  3616. storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
  3617. Default is ThinProvisioned.
  3618. type: string
  3619. storagePool:
  3620. description: storagePool is the ScaleIO Storage
  3621. Pool associated with the protection domain.
  3622. type: string
  3623. system:
  3624. description: system is the name of the storage system
  3625. as configured in ScaleIO.
  3626. type: string
  3627. volumeName:
  3628. description: |-
  3629. volumeName is the name of a volume already created in the ScaleIO system
  3630. that is associated with this volume source.
  3631. type: string
  3632. required:
  3633. - gateway
  3634. - secretRef
  3635. - system
  3636. type: object
  3637. secret:
  3638. description: |-
  3639. secret represents a secret that should populate this volume.
  3640. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
  3641. properties:
  3642. defaultMode:
  3643. description: |-
  3644. defaultMode is Optional: mode bits used to set permissions on created files by default.
  3645. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3646. YAML accepts both octal and decimal values, JSON requires decimal values
  3647. for mode bits. Defaults to 0644.
  3648. Directories within the path are not affected by this setting.
  3649. This might be in conflict with other options that affect the file
  3650. mode, like fsGroup, and the result can be other mode bits set.
  3651. format: int32
  3652. type: integer
  3653. items:
  3654. description: |-
  3655. items If unspecified, each key-value pair in the Data field of the referenced
  3656. Secret will be projected into the volume as a file whose name is the
  3657. key and content is the value. If specified, the listed keys will be
  3658. projected into the specified paths, and unlisted keys will not be
  3659. present. If a key is specified which is not present in the Secret,
  3660. the volume setup will error unless it is marked optional. Paths must be
  3661. relative and may not contain the '..' path or start with '..'.
  3662. items:
  3663. description: Maps a string key to a path within
  3664. a volume.
  3665. properties:
  3666. key:
  3667. description: key is the key to project.
  3668. type: string
  3669. mode:
  3670. description: |-
  3671. mode is Optional: mode bits used to set permissions on this file.
  3672. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3673. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3674. If not specified, the volume defaultMode will be used.
  3675. This might be in conflict with other options that affect the file
  3676. mode, like fsGroup, and the result can be other mode bits set.
  3677. format: int32
  3678. type: integer
  3679. path:
  3680. description: |-
  3681. path is the relative path of the file to map the key to.
  3682. May not be an absolute path.
  3683. May not contain the path element '..'.
  3684. May not start with the string '..'.
  3685. type: string
  3686. required:
  3687. - key
  3688. - path
  3689. type: object
  3690. type: array
  3691. x-kubernetes-list-type: atomic
  3692. optional:
  3693. description: optional field specify whether the
  3694. Secret or its keys must be defined
  3695. type: boolean
  3696. secretName:
  3697. description: |-
  3698. secretName is the name of the secret in the pod's namespace to use.
  3699. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
  3700. type: string
  3701. type: object
  3702. storageos:
  3703. description: |-
  3704. storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
  3705. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
  3706. properties:
  3707. fsType:
  3708. description: |-
  3709. fsType is the filesystem type to mount.
  3710. Must be a filesystem type supported by the host operating system.
  3711. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  3712. type: string
  3713. readOnly:
  3714. description: |-
  3715. readOnly defaults to false (read/write). ReadOnly here will force
  3716. the ReadOnly setting in VolumeMounts.
  3717. type: boolean
  3718. secretRef:
  3719. description: |-
  3720. secretRef specifies the secret to use for obtaining the StorageOS API
  3721. credentials. If not specified, default values will be attempted.
  3722. properties:
  3723. name:
  3724. default: ""
  3725. description: |-
  3726. Name of the referent.
  3727. This field is effectively required, but due to backwards compatibility is
  3728. allowed to be empty. Instances of this type with an empty value here are
  3729. almost certainly wrong.
  3730. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  3731. type: string
  3732. type: object
  3733. x-kubernetes-map-type: atomic
  3734. volumeName:
  3735. description: |-
  3736. volumeName is the human-readable name of the StorageOS volume. Volume
  3737. names are only unique within a namespace.
  3738. type: string
  3739. volumeNamespace:
  3740. description: |-
  3741. volumeNamespace specifies the scope of the volume within StorageOS. If no
  3742. namespace is specified then the Pod's namespace will be used. This allows the
  3743. Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
  3744. Set VolumeName to any name to override the default behaviour.
  3745. Set to "default" if you are not using namespaces within StorageOS.
  3746. Namespaces that do not pre-exist within StorageOS will be created.
  3747. type: string
  3748. type: object
  3749. vsphereVolume:
  3750. description: |-
  3751. vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
  3752. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
  3753. are redirected to the csi.vsphere.vmware.com CSI driver.
  3754. properties:
  3755. fsType:
  3756. description: |-
  3757. fsType is filesystem type to mount.
  3758. Must be a filesystem type supported by the host operating system.
  3759. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  3760. type: string
  3761. storagePolicyID:
  3762. description: storagePolicyID is the storage Policy
  3763. Based Management (SPBM) profile ID associated
  3764. with the StoragePolicyName.
  3765. type: string
  3766. storagePolicyName:
  3767. description: storagePolicyName is the storage Policy
  3768. Based Management (SPBM) profile name.
  3769. type: string
  3770. volumePath:
  3771. description: volumePath is the path that identifies
  3772. vSphere volume vmdk
  3773. type: string
  3774. required:
  3775. - volumePath
  3776. type: object
  3777. required:
  3778. - name
  3779. type: object
  3780. type: array
  3781. type: object
  3782. required:
  3783. - name
  3784. type: object
  3785. variables:
  3786. additionalProperties:
  3787. type: string
  3788. description: variables is a map of key-value pairs that can be used
  3789. to substitute placeholders in the template.
  3790. type: object
  3791. required:
  3792. - category
  3793. type: object
  3794. status:
  3795. description: status defines the observed state of Component
  3796. properties:
  3797. conditions:
  3798. description: |-
  3799. conditions represent the current state of the Component resource.
  3800. Each condition has a unique type and reflects the status of a specific aspect of the resource.
  3801. Standard condition types include:
  3802. - "Available": the resource is fully functional
  3803. - "Progressing": the resource is being created or updated
  3804. - "Degraded": the resource failed to reach or maintain its desired state
  3805. The status of each condition is one of True, False, or Unknown.
  3806. items:
  3807. description: Condition contains details for one aspect of the current
  3808. state of this API Resource.
  3809. properties:
  3810. lastTransitionTime:
  3811. description: |-
  3812. lastTransitionTime is the last time the condition transitioned from one status to another.
  3813. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
  3814. format: date-time
  3815. type: string
  3816. message:
  3817. description: |-
  3818. message is a human readable message indicating details about the transition.
  3819. This may be an empty string.
  3820. maxLength: 32768
  3821. type: string
  3822. observedGeneration:
  3823. description: |-
  3824. observedGeneration represents the .metadata.generation that the condition was set based upon.
  3825. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
  3826. with respect to the current state of the instance.
  3827. format: int64
  3828. minimum: 0
  3829. type: integer
  3830. reason:
  3831. description: |-
  3832. reason contains a programmatic identifier indicating the reason for the condition's last transition.
  3833. Producers of specific condition types may define expected values and meanings for this field,
  3834. and whether the values are considered a guaranteed API.
  3835. The value should be a CamelCase string.
  3836. This field may not be empty.
  3837. maxLength: 1024
  3838. minLength: 1
  3839. pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
  3840. type: string
  3841. status:
  3842. description: status of the condition, one of True, False, Unknown.
  3843. enum:
  3844. - "True"
  3845. - "False"
  3846. - Unknown
  3847. type: string
  3848. type:
  3849. description: type of condition in CamelCase or in foo.example.com/CamelCase.
  3850. maxLength: 316
  3851. pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
  3852. type: string
  3853. required:
  3854. - lastTransitionTime
  3855. - message
  3856. - reason
  3857. - status
  3858. - type
  3859. type: object
  3860. type: array
  3861. x-kubernetes-list-map-keys:
  3862. - type
  3863. x-kubernetes-list-type: map
  3864. dependencies:
  3865. additionalProperties:
  3866. additionalProperties:
  3867. format: int64
  3868. type: integer
  3869. type: object
  3870. description: |-
  3871. dependencies represent the current status of the component's dependencies.
  3872. The key is the kind and the name of the dependency, and the value is the observed generation of that dependency.
  3873. type: object
  3874. endpoint:
  3875. description: endpoint is the in-cluster URL clients can use to reach
  3876. this component.
  3877. type: string
  3878. observedGeneration:
  3879. description: observedGeneration is the .metadata.generation last reconciled.
  3880. format: int64
  3881. type: integer
  3882. type: object
  3883. required:
  3884. - spec
  3885. type: object
  3886. served: true
  3887. storage: true
  3888. subresources:
  3889. status: {}