locostack.com_managedtools.yaml 260 KB

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