generated.proto 239 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = "proto2";
  15. package k8s.io.api.core.v1;
  16. import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "v1";
  23. // Represents a Persistent Disk resource in AWS.
  24. //
  25. // An AWS EBS disk must exist before mounting to a container. The disk
  26. // must also be in the same AWS zone as the kubelet. An AWS EBS disk
  27. // can only be mounted as read/write once. AWS EBS volumes support
  28. // ownership management and SELinux relabeling.
  29. message AWSElasticBlockStoreVolumeSource {
  30. // Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
  31. // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  32. optional string volumeID = 1;
  33. // Filesystem type of the volume that you want to mount.
  34. // Tip: Ensure that the filesystem type is supported by the host operating system.
  35. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  36. // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  37. // TODO: how do we prevent errors in the filesystem from compromising the machine
  38. // +optional
  39. optional string fsType = 2;
  40. // The partition in the volume that you want to mount.
  41. // If omitted, the default is to mount by volume name.
  42. // Examples: For volume /dev/sda1, you specify the partition as "1".
  43. // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
  44. // +optional
  45. optional int32 partition = 3;
  46. // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
  47. // If omitted, the default is "false".
  48. // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  49. // +optional
  50. optional bool readOnly = 4;
  51. }
  52. // Affinity is a group of affinity scheduling rules.
  53. message Affinity {
  54. // Describes node affinity scheduling rules for the pod.
  55. // +optional
  56. optional NodeAffinity nodeAffinity = 1;
  57. // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
  58. // +optional
  59. optional PodAffinity podAffinity = 2;
  60. // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
  61. // +optional
  62. optional PodAntiAffinity podAntiAffinity = 3;
  63. }
  64. // AttachedVolume describes a volume attached to a node
  65. message AttachedVolume {
  66. // Name of the attached volume
  67. optional string name = 1;
  68. // DevicePath represents the device path where the volume should be available
  69. optional string devicePath = 2;
  70. }
  71. // AvoidPods describes pods that should avoid this node. This is the value for a
  72. // Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
  73. // will eventually become a field of NodeStatus.
  74. message AvoidPods {
  75. // Bounded-sized list of signatures of pods that should avoid this node, sorted
  76. // in timestamp order from oldest to newest. Size of the slice is unspecified.
  77. // +optional
  78. repeated PreferAvoidPodsEntry preferAvoidPods = 1;
  79. }
  80. // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
  81. message AzureDiskVolumeSource {
  82. // The Name of the data disk in the blob storage
  83. optional string diskName = 1;
  84. // The URI the data disk in the blob storage
  85. optional string diskURI = 2;
  86. // Host Caching mode: None, Read Only, Read Write.
  87. // +optional
  88. optional string cachingMode = 3;
  89. // Filesystem type to mount.
  90. // Must be a filesystem type supported by the host operating system.
  91. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  92. // +optional
  93. optional string fsType = 4;
  94. // Defaults to false (read/write). ReadOnly here will force
  95. // the ReadOnly setting in VolumeMounts.
  96. // +optional
  97. optional bool readOnly = 5;
  98. // Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
  99. optional string kind = 6;
  100. }
  101. // AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
  102. message AzureFilePersistentVolumeSource {
  103. // the name of secret that contains Azure Storage Account Name and Key
  104. optional string secretName = 1;
  105. // Share Name
  106. optional string shareName = 2;
  107. // Defaults to false (read/write). ReadOnly here will force
  108. // the ReadOnly setting in VolumeMounts.
  109. // +optional
  110. optional bool readOnly = 3;
  111. // the namespace of the secret that contains Azure Storage Account Name and Key
  112. // default is the same as the Pod
  113. // +optional
  114. optional string secretNamespace = 4;
  115. }
  116. // AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
  117. message AzureFileVolumeSource {
  118. // the name of secret that contains Azure Storage Account Name and Key
  119. optional string secretName = 1;
  120. // Share Name
  121. optional string shareName = 2;
  122. // Defaults to false (read/write). ReadOnly here will force
  123. // the ReadOnly setting in VolumeMounts.
  124. // +optional
  125. optional bool readOnly = 3;
  126. }
  127. // Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
  128. // Deprecated in 1.7, please use the bindings subresource of pods instead.
  129. message Binding {
  130. // Standard object's metadata.
  131. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  132. // +optional
  133. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  134. // The target object that you want to bind to the standard object.
  135. optional ObjectReference target = 2;
  136. }
  137. // Represents storage that is managed by an external CSI volume driver (Beta feature)
  138. message CSIPersistentVolumeSource {
  139. // Driver is the name of the driver to use for this volume.
  140. // Required.
  141. optional string driver = 1;
  142. // VolumeHandle is the unique volume name returned by the CSI volume
  143. // plugin’s CreateVolume to refer to the volume on all subsequent calls.
  144. // Required.
  145. optional string volumeHandle = 2;
  146. // Optional: The value to pass to ControllerPublishVolumeRequest.
  147. // Defaults to false (read/write).
  148. // +optional
  149. optional bool readOnly = 3;
  150. // Filesystem type to mount.
  151. // Must be a filesystem type supported by the host operating system.
  152. // Ex. "ext4", "xfs", "ntfs".
  153. // +optional
  154. optional string fsType = 4;
  155. // Attributes of the volume to publish.
  156. // +optional
  157. map<string, string> volumeAttributes = 5;
  158. // ControllerPublishSecretRef is a reference to the secret object containing
  159. // sensitive information to pass to the CSI driver to complete the CSI
  160. // ControllerPublishVolume and ControllerUnpublishVolume calls.
  161. // This field is optional, and may be empty if no secret is required. If the
  162. // secret object contains more than one secret, all secrets are passed.
  163. // +optional
  164. optional SecretReference controllerPublishSecretRef = 6;
  165. // NodeStageSecretRef is a reference to the secret object containing sensitive
  166. // information to pass to the CSI driver to complete the CSI NodeStageVolume
  167. // and NodeStageVolume and NodeUnstageVolume calls.
  168. // This field is optional, and may be empty if no secret is required. If the
  169. // secret object contains more than one secret, all secrets are passed.
  170. // +optional
  171. optional SecretReference nodeStageSecretRef = 7;
  172. // NodePublishSecretRef is a reference to the secret object containing
  173. // sensitive information to pass to the CSI driver to complete the CSI
  174. // NodePublishVolume and NodeUnpublishVolume calls.
  175. // This field is optional, and may be empty if no secret is required. If the
  176. // secret object contains more than one secret, all secrets are passed.
  177. // +optional
  178. optional SecretReference nodePublishSecretRef = 8;
  179. // ControllerExpandSecretRef is a reference to the secret object containing
  180. // sensitive information to pass to the CSI driver to complete the CSI
  181. // ControllerExpandVolume call.
  182. // This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
  183. // This field is optional, and may be empty if no secret is required. If the
  184. // secret object contains more than one secret, all secrets are passed.
  185. // +optional
  186. optional SecretReference controllerExpandSecretRef = 9;
  187. }
  188. // Represents a source location of a volume to mount, managed by an external CSI driver
  189. message CSIVolumeSource {
  190. // Driver is the name of the CSI driver that handles this volume.
  191. // Consult with your admin for the correct name as registered in the cluster.
  192. optional string driver = 1;
  193. // Specifies a read-only configuration for the volume.
  194. // Defaults to false (read/write).
  195. // +optional
  196. optional bool readOnly = 2;
  197. // Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
  198. // If not provided, the empty value is passed to the associated CSI driver
  199. // which will determine the default filesystem to apply.
  200. // +optional
  201. optional string fsType = 3;
  202. // VolumeAttributes stores driver-specific properties that are passed to the CSI
  203. // driver. Consult your driver's documentation for supported values.
  204. // +optional
  205. map<string, string> volumeAttributes = 4;
  206. // NodePublishSecretRef is a reference to the secret object containing
  207. // sensitive information to pass to the CSI driver to complete the CSI
  208. // NodePublishVolume and NodeUnpublishVolume calls.
  209. // This field is optional, and may be empty if no secret is required. If the
  210. // secret object contains more than one secret, all secret references are passed.
  211. // +optional
  212. optional LocalObjectReference nodePublishSecretRef = 5;
  213. }
  214. // Adds and removes POSIX capabilities from running containers.
  215. message Capabilities {
  216. // Added capabilities
  217. // +optional
  218. repeated string add = 1;
  219. // Removed capabilities
  220. // +optional
  221. repeated string drop = 2;
  222. }
  223. // Represents a Ceph Filesystem mount that lasts the lifetime of a pod
  224. // Cephfs volumes do not support ownership management or SELinux relabeling.
  225. message CephFSPersistentVolumeSource {
  226. // Required: Monitors is a collection of Ceph monitors
  227. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  228. repeated string monitors = 1;
  229. // Optional: Used as the mounted root, rather than the full Ceph tree, default is /
  230. // +optional
  231. optional string path = 2;
  232. // Optional: User is the rados user name, default is admin
  233. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  234. // +optional
  235. optional string user = 3;
  236. // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
  237. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  238. // +optional
  239. optional string secretFile = 4;
  240. // Optional: SecretRef is reference to the authentication secret for User, default is empty.
  241. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  242. // +optional
  243. optional SecretReference secretRef = 5;
  244. // Optional: Defaults to false (read/write). ReadOnly here will force
  245. // the ReadOnly setting in VolumeMounts.
  246. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  247. // +optional
  248. optional bool readOnly = 6;
  249. }
  250. // Represents a Ceph Filesystem mount that lasts the lifetime of a pod
  251. // Cephfs volumes do not support ownership management or SELinux relabeling.
  252. message CephFSVolumeSource {
  253. // Required: Monitors is a collection of Ceph monitors
  254. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  255. repeated string monitors = 1;
  256. // Optional: Used as the mounted root, rather than the full Ceph tree, default is /
  257. // +optional
  258. optional string path = 2;
  259. // Optional: User is the rados user name, default is admin
  260. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  261. // +optional
  262. optional string user = 3;
  263. // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
  264. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  265. // +optional
  266. optional string secretFile = 4;
  267. // Optional: SecretRef is reference to the authentication secret for User, default is empty.
  268. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  269. // +optional
  270. optional LocalObjectReference secretRef = 5;
  271. // Optional: Defaults to false (read/write). ReadOnly here will force
  272. // the ReadOnly setting in VolumeMounts.
  273. // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
  274. // +optional
  275. optional bool readOnly = 6;
  276. }
  277. // Represents a cinder volume resource in Openstack.
  278. // A Cinder volume must exist before mounting to a container.
  279. // The volume must also be in the same region as the kubelet.
  280. // Cinder volumes support ownership management and SELinux relabeling.
  281. message CinderPersistentVolumeSource {
  282. // volume id used to identify the volume in cinder.
  283. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  284. optional string volumeID = 1;
  285. // Filesystem type to mount.
  286. // Must be a filesystem type supported by the host operating system.
  287. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  288. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  289. // +optional
  290. optional string fsType = 2;
  291. // Optional: Defaults to false (read/write). ReadOnly here will force
  292. // the ReadOnly setting in VolumeMounts.
  293. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  294. // +optional
  295. optional bool readOnly = 3;
  296. // Optional: points to a secret object containing parameters used to connect
  297. // to OpenStack.
  298. // +optional
  299. optional SecretReference secretRef = 4;
  300. }
  301. // Represents a cinder volume resource in Openstack.
  302. // A Cinder volume must exist before mounting to a container.
  303. // The volume must also be in the same region as the kubelet.
  304. // Cinder volumes support ownership management and SELinux relabeling.
  305. message CinderVolumeSource {
  306. // volume id used to identify the volume in cinder.
  307. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  308. optional string volumeID = 1;
  309. // Filesystem type to mount.
  310. // Must be a filesystem type supported by the host operating system.
  311. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  312. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  313. // +optional
  314. optional string fsType = 2;
  315. // Optional: Defaults to false (read/write). ReadOnly here will force
  316. // the ReadOnly setting in VolumeMounts.
  317. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  318. // +optional
  319. optional bool readOnly = 3;
  320. // Optional: points to a secret object containing parameters used to connect
  321. // to OpenStack.
  322. // +optional
  323. optional LocalObjectReference secretRef = 4;
  324. }
  325. // ClientIPConfig represents the configurations of Client IP based session affinity.
  326. message ClientIPConfig {
  327. // timeoutSeconds specifies the seconds of ClientIP type session sticky time.
  328. // The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
  329. // Default value is 10800(for 3 hours).
  330. // +optional
  331. optional int32 timeoutSeconds = 1;
  332. }
  333. // Information about the condition of a component.
  334. message ComponentCondition {
  335. // Type of condition for a component.
  336. // Valid value: "Healthy"
  337. optional string type = 1;
  338. // Status of the condition for a component.
  339. // Valid values for "Healthy": "True", "False", or "Unknown".
  340. optional string status = 2;
  341. // Message about the condition for a component.
  342. // For example, information about a health check.
  343. // +optional
  344. optional string message = 3;
  345. // Condition error code for a component.
  346. // For example, a health check error code.
  347. // +optional
  348. optional string error = 4;
  349. }
  350. // ComponentStatus (and ComponentStatusList) holds the cluster validation info.
  351. // Deprecated: This API is deprecated in v1.19+
  352. message ComponentStatus {
  353. // Standard object's metadata.
  354. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  355. // +optional
  356. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  357. // List of component conditions observed
  358. // +optional
  359. // +patchMergeKey=type
  360. // +patchStrategy=merge
  361. repeated ComponentCondition conditions = 2;
  362. }
  363. // Status of all the conditions for the component as a list of ComponentStatus objects.
  364. // Deprecated: This API is deprecated in v1.19+
  365. message ComponentStatusList {
  366. // Standard list metadata.
  367. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  368. // +optional
  369. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  370. // List of ComponentStatus objects.
  371. repeated ComponentStatus items = 2;
  372. }
  373. // ConfigMap holds configuration data for pods to consume.
  374. message ConfigMap {
  375. // Standard object's metadata.
  376. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  377. // +optional
  378. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  379. // Immutable, if set to true, ensures that data stored in the ConfigMap cannot
  380. // be updated (only object metadata can be modified).
  381. // If not set to true, the field can be modified at any time.
  382. // Defaulted to nil.
  383. // +optional
  384. optional bool immutable = 4;
  385. // Data contains the configuration data.
  386. // Each key must consist of alphanumeric characters, '-', '_' or '.'.
  387. // Values with non-UTF-8 byte sequences must use the BinaryData field.
  388. // The keys stored in Data must not overlap with the keys in
  389. // the BinaryData field, this is enforced during validation process.
  390. // +optional
  391. map<string, string> data = 2;
  392. // BinaryData contains the binary data.
  393. // Each key must consist of alphanumeric characters, '-', '_' or '.'.
  394. // BinaryData can contain byte sequences that are not in the UTF-8 range.
  395. // The keys stored in BinaryData must not overlap with the ones in
  396. // the Data field, this is enforced during validation process.
  397. // Using this field will require 1.10+ apiserver and
  398. // kubelet.
  399. // +optional
  400. map<string, bytes> binaryData = 3;
  401. }
  402. // ConfigMapEnvSource selects a ConfigMap to populate the environment
  403. // variables with.
  404. //
  405. // The contents of the target ConfigMap's Data field will represent the
  406. // key-value pairs as environment variables.
  407. message ConfigMapEnvSource {
  408. // The ConfigMap to select from.
  409. optional LocalObjectReference localObjectReference = 1;
  410. // Specify whether the ConfigMap must be defined
  411. // +optional
  412. optional bool optional = 2;
  413. }
  414. // Selects a key from a ConfigMap.
  415. // +structType=atomic
  416. message ConfigMapKeySelector {
  417. // The ConfigMap to select from.
  418. optional LocalObjectReference localObjectReference = 1;
  419. // The key to select.
  420. optional string key = 2;
  421. // Specify whether the ConfigMap or its key must be defined
  422. // +optional
  423. optional bool optional = 3;
  424. }
  425. // ConfigMapList is a resource containing a list of ConfigMap objects.
  426. message ConfigMapList {
  427. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  428. // +optional
  429. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  430. // Items is the list of ConfigMaps.
  431. repeated ConfigMap items = 2;
  432. }
  433. // ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.
  434. // This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
  435. message ConfigMapNodeConfigSource {
  436. // Namespace is the metadata.namespace of the referenced ConfigMap.
  437. // This field is required in all cases.
  438. optional string namespace = 1;
  439. // Name is the metadata.name of the referenced ConfigMap.
  440. // This field is required in all cases.
  441. optional string name = 2;
  442. // UID is the metadata.UID of the referenced ConfigMap.
  443. // This field is forbidden in Node.Spec, and required in Node.Status.
  444. // +optional
  445. optional string uid = 3;
  446. // ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
  447. // This field is forbidden in Node.Spec, and required in Node.Status.
  448. // +optional
  449. optional string resourceVersion = 4;
  450. // KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
  451. // This field is required in all cases.
  452. optional string kubeletConfigKey = 5;
  453. }
  454. // Adapts a ConfigMap into a projected volume.
  455. //
  456. // The contents of the target ConfigMap's Data field will be presented in a
  457. // projected volume as files using the keys in the Data field as the file names,
  458. // unless the items element is populated with specific mappings of keys to paths.
  459. // Note that this is identical to a configmap volume source without the default
  460. // mode.
  461. message ConfigMapProjection {
  462. optional LocalObjectReference localObjectReference = 1;
  463. // If unspecified, each key-value pair in the Data field of the referenced
  464. // ConfigMap will be projected into the volume as a file whose name is the
  465. // key and content is the value. If specified, the listed keys will be
  466. // projected into the specified paths, and unlisted keys will not be
  467. // present. If a key is specified which is not present in the ConfigMap,
  468. // the volume setup will error unless it is marked optional. Paths must be
  469. // relative and may not contain the '..' path or start with '..'.
  470. // +optional
  471. repeated KeyToPath items = 2;
  472. // Specify whether the ConfigMap or its keys must be defined
  473. // +optional
  474. optional bool optional = 4;
  475. }
  476. // Adapts a ConfigMap into a volume.
  477. //
  478. // The contents of the target ConfigMap's Data field will be presented in a
  479. // volume as files using the keys in the Data field as the file names, unless
  480. // the items element is populated with specific mappings of keys to paths.
  481. // ConfigMap volumes support ownership management and SELinux relabeling.
  482. message ConfigMapVolumeSource {
  483. optional LocalObjectReference localObjectReference = 1;
  484. // If unspecified, each key-value pair in the Data field of the referenced
  485. // ConfigMap will be projected into the volume as a file whose name is the
  486. // key and content is the value. If specified, the listed keys will be
  487. // projected into the specified paths, and unlisted keys will not be
  488. // present. If a key is specified which is not present in the ConfigMap,
  489. // the volume setup will error unless it is marked optional. Paths must be
  490. // relative and may not contain the '..' path or start with '..'.
  491. // +optional
  492. repeated KeyToPath items = 2;
  493. // Optional: mode bits used to set permissions on created files by default.
  494. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  495. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  496. // Defaults to 0644.
  497. // Directories within the path are not affected by this setting.
  498. // This might be in conflict with other options that affect the file
  499. // mode, like fsGroup, and the result can be other mode bits set.
  500. // +optional
  501. optional int32 defaultMode = 3;
  502. // Specify whether the ConfigMap or its keys must be defined
  503. // +optional
  504. optional bool optional = 4;
  505. }
  506. // A single application container that you want to run within a pod.
  507. message Container {
  508. // Name of the container specified as a DNS_LABEL.
  509. // Each container in a pod must have a unique name (DNS_LABEL).
  510. // Cannot be updated.
  511. optional string name = 1;
  512. // Docker image name.
  513. // More info: https://kubernetes.io/docs/concepts/containers/images
  514. // This field is optional to allow higher level config management to default or override
  515. // container images in workload controllers like Deployments and StatefulSets.
  516. // +optional
  517. optional string image = 2;
  518. // Entrypoint array. Not executed within a shell.
  519. // The docker image's ENTRYPOINT is used if this is not provided.
  520. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
  521. // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
  522. // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
  523. // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
  524. // of whether the variable exists or not. Cannot be updated.
  525. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  526. // +optional
  527. repeated string command = 3;
  528. // Arguments to the entrypoint.
  529. // The docker image's CMD is used if this is not provided.
  530. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
  531. // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
  532. // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
  533. // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
  534. // of whether the variable exists or not. Cannot be updated.
  535. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  536. // +optional
  537. repeated string args = 4;
  538. // Container's working directory.
  539. // If not specified, the container runtime's default will be used, which
  540. // might be configured in the container image.
  541. // Cannot be updated.
  542. // +optional
  543. optional string workingDir = 5;
  544. // List of ports to expose from the container. Exposing a port here gives
  545. // the system additional information about the network connections a
  546. // container uses, but is primarily informational. Not specifying a port here
  547. // DOES NOT prevent that port from being exposed. Any port which is
  548. // listening on the default "0.0.0.0" address inside a container will be
  549. // accessible from the network.
  550. // Cannot be updated.
  551. // +optional
  552. // +patchMergeKey=containerPort
  553. // +patchStrategy=merge
  554. // +listType=map
  555. // +listMapKey=containerPort
  556. // +listMapKey=protocol
  557. repeated ContainerPort ports = 6;
  558. // List of sources to populate environment variables in the container.
  559. // The keys defined within a source must be a C_IDENTIFIER. All invalid keys
  560. // will be reported as an event when the container is starting. When a key exists in multiple
  561. // sources, the value associated with the last source will take precedence.
  562. // Values defined by an Env with a duplicate key will take precedence.
  563. // Cannot be updated.
  564. // +optional
  565. repeated EnvFromSource envFrom = 19;
  566. // List of environment variables to set in the container.
  567. // Cannot be updated.
  568. // +optional
  569. // +patchMergeKey=name
  570. // +patchStrategy=merge
  571. repeated EnvVar env = 7;
  572. // Compute Resources required by this container.
  573. // Cannot be updated.
  574. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  575. // +optional
  576. optional ResourceRequirements resources = 8;
  577. // Pod volumes to mount into the container's filesystem.
  578. // Cannot be updated.
  579. // +optional
  580. // +patchMergeKey=mountPath
  581. // +patchStrategy=merge
  582. repeated VolumeMount volumeMounts = 9;
  583. // volumeDevices is the list of block devices to be used by the container.
  584. // +patchMergeKey=devicePath
  585. // +patchStrategy=merge
  586. // +optional
  587. repeated VolumeDevice volumeDevices = 21;
  588. // Periodic probe of container liveness.
  589. // Container will be restarted if the probe fails.
  590. // Cannot be updated.
  591. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
  592. // +optional
  593. optional Probe livenessProbe = 10;
  594. // Periodic probe of container service readiness.
  595. // Container will be removed from service endpoints if the probe fails.
  596. // Cannot be updated.
  597. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
  598. // +optional
  599. optional Probe readinessProbe = 11;
  600. // StartupProbe indicates that the Pod has successfully initialized.
  601. // If specified, no other probes are executed until this completes successfully.
  602. // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
  603. // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
  604. // when it might take a long time to load data or warm a cache, than during steady-state operation.
  605. // This cannot be updated.
  606. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
  607. // +optional
  608. optional Probe startupProbe = 22;
  609. // Actions that the management system should take in response to container lifecycle events.
  610. // Cannot be updated.
  611. // +optional
  612. optional Lifecycle lifecycle = 12;
  613. // Optional: Path at which the file to which the container's termination message
  614. // will be written is mounted into the container's filesystem.
  615. // Message written is intended to be brief final status, such as an assertion failure message.
  616. // Will be truncated by the node if greater than 4096 bytes. The total message length across
  617. // all containers will be limited to 12kb.
  618. // Defaults to /dev/termination-log.
  619. // Cannot be updated.
  620. // +optional
  621. optional string terminationMessagePath = 13;
  622. // Indicate how the termination message should be populated. File will use the contents of
  623. // terminationMessagePath to populate the container status message on both success and failure.
  624. // FallbackToLogsOnError will use the last chunk of container log output if the termination
  625. // message file is empty and the container exited with an error.
  626. // The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
  627. // Defaults to File.
  628. // Cannot be updated.
  629. // +optional
  630. optional string terminationMessagePolicy = 20;
  631. // Image pull policy.
  632. // One of Always, Never, IfNotPresent.
  633. // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
  634. // Cannot be updated.
  635. // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
  636. // +optional
  637. optional string imagePullPolicy = 14;
  638. // SecurityContext defines the security options the container should be run with.
  639. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
  640. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
  641. // +optional
  642. optional SecurityContext securityContext = 15;
  643. // Whether this container should allocate a buffer for stdin in the container runtime. If this
  644. // is not set, reads from stdin in the container will always result in EOF.
  645. // Default is false.
  646. // +optional
  647. optional bool stdin = 16;
  648. // Whether the container runtime should close the stdin channel after it has been opened by
  649. // a single attach. When stdin is true the stdin stream will remain open across multiple attach
  650. // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
  651. // first client attaches to stdin, and then remains open and accepts data until the client disconnects,
  652. // at which time stdin is closed and remains closed until the container is restarted. If this
  653. // flag is false, a container processes that reads from stdin will never receive an EOF.
  654. // Default is false
  655. // +optional
  656. optional bool stdinOnce = 17;
  657. // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
  658. // Default is false.
  659. // +optional
  660. optional bool tty = 18;
  661. }
  662. // Describe a container image
  663. message ContainerImage {
  664. // Names by which this image is known.
  665. // e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
  666. // +optional
  667. repeated string names = 1;
  668. // The size of the image in bytes.
  669. // +optional
  670. optional int64 sizeBytes = 2;
  671. }
  672. // ContainerPort represents a network port in a single container.
  673. message ContainerPort {
  674. // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
  675. // named port in a pod must have a unique name. Name for the port that can be
  676. // referred to by services.
  677. // +optional
  678. optional string name = 1;
  679. // Number of port to expose on the host.
  680. // If specified, this must be a valid port number, 0 < x < 65536.
  681. // If HostNetwork is specified, this must match ContainerPort.
  682. // Most containers do not need this.
  683. // +optional
  684. optional int32 hostPort = 2;
  685. // Number of port to expose on the pod's IP address.
  686. // This must be a valid port number, 0 < x < 65536.
  687. optional int32 containerPort = 3;
  688. // Protocol for port. Must be UDP, TCP, or SCTP.
  689. // Defaults to "TCP".
  690. // +optional
  691. // +default="TCP"
  692. optional string protocol = 4;
  693. // What host IP to bind the external port to.
  694. // +optional
  695. optional string hostIP = 5;
  696. }
  697. // ContainerState holds a possible state of container.
  698. // Only one of its members may be specified.
  699. // If none of them is specified, the default one is ContainerStateWaiting.
  700. message ContainerState {
  701. // Details about a waiting container
  702. // +optional
  703. optional ContainerStateWaiting waiting = 1;
  704. // Details about a running container
  705. // +optional
  706. optional ContainerStateRunning running = 2;
  707. // Details about a terminated container
  708. // +optional
  709. optional ContainerStateTerminated terminated = 3;
  710. }
  711. // ContainerStateRunning is a running state of a container.
  712. message ContainerStateRunning {
  713. // Time at which the container was last (re-)started
  714. // +optional
  715. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
  716. }
  717. // ContainerStateTerminated is a terminated state of a container.
  718. message ContainerStateTerminated {
  719. // Exit status from the last termination of the container
  720. optional int32 exitCode = 1;
  721. // Signal from the last termination of the container
  722. // +optional
  723. optional int32 signal = 2;
  724. // (brief) reason from the last termination of the container
  725. // +optional
  726. optional string reason = 3;
  727. // Message regarding the last termination of the container
  728. // +optional
  729. optional string message = 4;
  730. // Time at which previous execution of the container started
  731. // +optional
  732. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
  733. // Time at which the container last terminated
  734. // +optional
  735. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
  736. // Container's ID in the format 'docker://<container_id>'
  737. // +optional
  738. optional string containerID = 7;
  739. }
  740. // ContainerStateWaiting is a waiting state of a container.
  741. message ContainerStateWaiting {
  742. // (brief) reason the container is not yet running.
  743. // +optional
  744. optional string reason = 1;
  745. // Message regarding why the container is not yet running.
  746. // +optional
  747. optional string message = 2;
  748. }
  749. // ContainerStatus contains details for the current status of this container.
  750. message ContainerStatus {
  751. // This must be a DNS_LABEL. Each container in a pod must have a unique name.
  752. // Cannot be updated.
  753. optional string name = 1;
  754. // Details about the container's current condition.
  755. // +optional
  756. optional ContainerState state = 2;
  757. // Details about the container's last termination condition.
  758. // +optional
  759. optional ContainerState lastState = 3;
  760. // Specifies whether the container has passed its readiness probe.
  761. optional bool ready = 4;
  762. // The number of times the container has been restarted.
  763. optional int32 restartCount = 5;
  764. // The image the container is running.
  765. // More info: https://kubernetes.io/docs/concepts/containers/images.
  766. optional string image = 6;
  767. // ImageID of the container's image.
  768. optional string imageID = 7;
  769. // Container's ID in the format 'docker://<container_id>'.
  770. // +optional
  771. optional string containerID = 8;
  772. // Specifies whether the container has passed its startup probe.
  773. // Initialized as false, becomes true after startupProbe is considered successful.
  774. // Resets to false when the container is restarted, or if kubelet loses state temporarily.
  775. // Is always true when no startupProbe is defined.
  776. // +optional
  777. optional bool started = 9;
  778. }
  779. // DaemonEndpoint contains information about a single Daemon endpoint.
  780. message DaemonEndpoint {
  781. // Port number of the given endpoint.
  782. optional int32 Port = 1;
  783. }
  784. // Represents downward API info for projecting into a projected volume.
  785. // Note that this is identical to a downwardAPI volume source without the default
  786. // mode.
  787. message DownwardAPIProjection {
  788. // Items is a list of DownwardAPIVolume file
  789. // +optional
  790. repeated DownwardAPIVolumeFile items = 1;
  791. }
  792. // DownwardAPIVolumeFile represents information to create the file containing the pod field
  793. message DownwardAPIVolumeFile {
  794. // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
  795. optional string path = 1;
  796. // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
  797. // +optional
  798. optional ObjectFieldSelector fieldRef = 2;
  799. // Selects a resource of the container: only resources limits and requests
  800. // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
  801. // +optional
  802. optional ResourceFieldSelector resourceFieldRef = 3;
  803. // Optional: mode bits used to set permissions on this file, must be an octal value
  804. // between 0000 and 0777 or a decimal value between 0 and 511.
  805. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  806. // If not specified, the volume defaultMode will be used.
  807. // This might be in conflict with other options that affect the file
  808. // mode, like fsGroup, and the result can be other mode bits set.
  809. // +optional
  810. optional int32 mode = 4;
  811. }
  812. // DownwardAPIVolumeSource represents a volume containing downward API info.
  813. // Downward API volumes support ownership management and SELinux relabeling.
  814. message DownwardAPIVolumeSource {
  815. // Items is a list of downward API volume file
  816. // +optional
  817. repeated DownwardAPIVolumeFile items = 1;
  818. // Optional: mode bits to use on created files by default. Must be a
  819. // Optional: mode bits used to set permissions on created files by default.
  820. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  821. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  822. // Defaults to 0644.
  823. // Directories within the path are not affected by this setting.
  824. // This might be in conflict with other options that affect the file
  825. // mode, like fsGroup, and the result can be other mode bits set.
  826. // +optional
  827. optional int32 defaultMode = 2;
  828. }
  829. // Represents an empty directory for a pod.
  830. // Empty directory volumes support ownership management and SELinux relabeling.
  831. message EmptyDirVolumeSource {
  832. // What type of storage medium should back this directory.
  833. // The default is "" which means to use the node's default medium.
  834. // Must be an empty string (default) or Memory.
  835. // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  836. // +optional
  837. optional string medium = 1;
  838. // Total amount of local storage required for this EmptyDir volume.
  839. // The size limit is also applicable for memory medium.
  840. // The maximum usage on memory medium EmptyDir would be the minimum value between
  841. // the SizeLimit specified here and the sum of memory limits of all containers in a pod.
  842. // The default is nil which means that the limit is undefined.
  843. // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
  844. // +optional
  845. optional k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
  846. }
  847. // EndpointAddress is a tuple that describes single IP address.
  848. // +structType=atomic
  849. message EndpointAddress {
  850. // The IP of this endpoint.
  851. // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
  852. // or link-local multicast ((224.0.0.0/24).
  853. // IPv6 is also accepted but not fully supported on all platforms. Also, certain
  854. // kubernetes components, like kube-proxy, are not IPv6 ready.
  855. // TODO: This should allow hostname or IP, See #4447.
  856. optional string ip = 1;
  857. // The Hostname of this endpoint
  858. // +optional
  859. optional string hostname = 3;
  860. // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
  861. // +optional
  862. optional string nodeName = 4;
  863. // Reference to object providing the endpoint.
  864. // +optional
  865. optional ObjectReference targetRef = 2;
  866. }
  867. // EndpointPort is a tuple that describes a single port.
  868. // +structType=atomic
  869. message EndpointPort {
  870. // The name of this port. This must match the 'name' field in the
  871. // corresponding ServicePort.
  872. // Must be a DNS_LABEL.
  873. // Optional only if one port is defined.
  874. // +optional
  875. optional string name = 1;
  876. // The port number of the endpoint.
  877. optional int32 port = 2;
  878. // The IP protocol for this port.
  879. // Must be UDP, TCP, or SCTP.
  880. // Default is TCP.
  881. // +optional
  882. optional string protocol = 3;
  883. // The application protocol for this port.
  884. // This field follows standard Kubernetes label syntax.
  885. // Un-prefixed names are reserved for IANA standard service names (as per
  886. // RFC-6335 and http://www.iana.org/assignments/service-names).
  887. // Non-standard protocols should use prefixed names such as
  888. // mycompany.com/my-custom-protocol.
  889. // +optional
  890. optional string appProtocol = 4;
  891. }
  892. // EndpointSubset is a group of addresses with a common set of ports. The
  893. // expanded set of endpoints is the Cartesian product of Addresses x Ports.
  894. // For example, given:
  895. // {
  896. // Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
  897. // Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
  898. // }
  899. // The resulting set of endpoints can be viewed as:
  900. // a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
  901. // b: [ 10.10.1.1:309, 10.10.2.2:309 ]
  902. message EndpointSubset {
  903. // IP addresses which offer the related ports that are marked as ready. These endpoints
  904. // should be considered safe for load balancers and clients to utilize.
  905. // +optional
  906. repeated EndpointAddress addresses = 1;
  907. // IP addresses which offer the related ports but are not currently marked as ready
  908. // because they have not yet finished starting, have recently failed a readiness check,
  909. // or have recently failed a liveness check.
  910. // +optional
  911. repeated EndpointAddress notReadyAddresses = 2;
  912. // Port numbers available on the related IP addresses.
  913. // +optional
  914. repeated EndpointPort ports = 3;
  915. }
  916. // Endpoints is a collection of endpoints that implement the actual service. Example:
  917. // Name: "mysvc",
  918. // Subsets: [
  919. // {
  920. // Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
  921. // Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
  922. // },
  923. // {
  924. // Addresses: [{"ip": "10.10.3.3"}],
  925. // Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
  926. // },
  927. // ]
  928. message Endpoints {
  929. // Standard object's metadata.
  930. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  931. // +optional
  932. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  933. // The set of all endpoints is the union of all subsets. Addresses are placed into
  934. // subsets according to the IPs they share. A single address with multiple ports,
  935. // some of which are ready and some of which are not (because they come from
  936. // different containers) will result in the address being displayed in different
  937. // subsets for the different ports. No address will appear in both Addresses and
  938. // NotReadyAddresses in the same subset.
  939. // Sets of addresses and ports that comprise a service.
  940. // +optional
  941. repeated EndpointSubset subsets = 2;
  942. }
  943. // EndpointsList is a list of endpoints.
  944. message EndpointsList {
  945. // Standard list metadata.
  946. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  947. // +optional
  948. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  949. // List of endpoints.
  950. repeated Endpoints items = 2;
  951. }
  952. // EnvFromSource represents the source of a set of ConfigMaps
  953. message EnvFromSource {
  954. // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
  955. // +optional
  956. optional string prefix = 1;
  957. // The ConfigMap to select from
  958. // +optional
  959. optional ConfigMapEnvSource configMapRef = 2;
  960. // The Secret to select from
  961. // +optional
  962. optional SecretEnvSource secretRef = 3;
  963. }
  964. // EnvVar represents an environment variable present in a Container.
  965. message EnvVar {
  966. // Name of the environment variable. Must be a C_IDENTIFIER.
  967. optional string name = 1;
  968. // Variable references $(VAR_NAME) are expanded
  969. // using the previously defined environment variables in the container and
  970. // any service environment variables. If a variable cannot be resolved,
  971. // the reference in the input string will be unchanged. Double $$ are reduced
  972. // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
  973. // "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
  974. // Escaped references will never be expanded, regardless of whether the variable
  975. // exists or not.
  976. // Defaults to "".
  977. // +optional
  978. optional string value = 2;
  979. // Source for the environment variable's value. Cannot be used if value is not empty.
  980. // +optional
  981. optional EnvVarSource valueFrom = 3;
  982. }
  983. // EnvVarSource represents a source for the value of an EnvVar.
  984. message EnvVarSource {
  985. // Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
  986. // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
  987. // +optional
  988. optional ObjectFieldSelector fieldRef = 1;
  989. // Selects a resource of the container: only resources limits and requests
  990. // (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
  991. // +optional
  992. optional ResourceFieldSelector resourceFieldRef = 2;
  993. // Selects a key of a ConfigMap.
  994. // +optional
  995. optional ConfigMapKeySelector configMapKeyRef = 3;
  996. // Selects a key of a secret in the pod's namespace
  997. // +optional
  998. optional SecretKeySelector secretKeyRef = 4;
  999. }
  1000. // An EphemeralContainer is a temporary container that you may add to an existing Pod for
  1001. // user-initiated activities such as debugging. Ephemeral containers have no resource or
  1002. // scheduling guarantees, and they will not be restarted when they exit or when a Pod is
  1003. // removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
  1004. // Pod to exceed its resource allocation.
  1005. //
  1006. // To add an ephemeral container, use the ephemeralcontainers subresource of an existing
  1007. // Pod. Ephemeral containers may not be removed or restarted.
  1008. //
  1009. // This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.
  1010. message EphemeralContainer {
  1011. // Ephemeral containers have all of the fields of Container, plus additional fields
  1012. // specific to ephemeral containers. Fields in common with Container are in the
  1013. // following inlined struct so than an EphemeralContainer may easily be converted
  1014. // to a Container.
  1015. optional EphemeralContainerCommon ephemeralContainerCommon = 1;
  1016. // If set, the name of the container from PodSpec that this ephemeral container targets.
  1017. // The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
  1018. // If not set then the ephemeral container uses the namespaces configured in the Pod spec.
  1019. //
  1020. // The container runtime must implement support for this feature. If the runtime does not
  1021. // support namespace targeting then the result of setting this field is undefined.
  1022. // +optional
  1023. optional string targetContainerName = 2;
  1024. }
  1025. // EphemeralContainerCommon is a copy of all fields in Container to be inlined in
  1026. // EphemeralContainer. This separate type allows easy conversion from EphemeralContainer
  1027. // to Container and allows separate documentation for the fields of EphemeralContainer.
  1028. // When a new field is added to Container it must be added here as well.
  1029. message EphemeralContainerCommon {
  1030. // Name of the ephemeral container specified as a DNS_LABEL.
  1031. // This name must be unique among all containers, init containers and ephemeral containers.
  1032. optional string name = 1;
  1033. // Docker image name.
  1034. // More info: https://kubernetes.io/docs/concepts/containers/images
  1035. optional string image = 2;
  1036. // Entrypoint array. Not executed within a shell.
  1037. // The docker image's ENTRYPOINT is used if this is not provided.
  1038. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
  1039. // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
  1040. // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
  1041. // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
  1042. // of whether the variable exists or not. Cannot be updated.
  1043. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  1044. // +optional
  1045. repeated string command = 3;
  1046. // Arguments to the entrypoint.
  1047. // The docker image's CMD is used if this is not provided.
  1048. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
  1049. // cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
  1050. // to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
  1051. // produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
  1052. // of whether the variable exists or not. Cannot be updated.
  1053. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
  1054. // +optional
  1055. repeated string args = 4;
  1056. // Container's working directory.
  1057. // If not specified, the container runtime's default will be used, which
  1058. // might be configured in the container image.
  1059. // Cannot be updated.
  1060. // +optional
  1061. optional string workingDir = 5;
  1062. // Ports are not allowed for ephemeral containers.
  1063. // +optional
  1064. // +patchMergeKey=containerPort
  1065. // +patchStrategy=merge
  1066. // +listType=map
  1067. // +listMapKey=containerPort
  1068. // +listMapKey=protocol
  1069. repeated ContainerPort ports = 6;
  1070. // List of sources to populate environment variables in the container.
  1071. // The keys defined within a source must be a C_IDENTIFIER. All invalid keys
  1072. // will be reported as an event when the container is starting. When a key exists in multiple
  1073. // sources, the value associated with the last source will take precedence.
  1074. // Values defined by an Env with a duplicate key will take precedence.
  1075. // Cannot be updated.
  1076. // +optional
  1077. repeated EnvFromSource envFrom = 19;
  1078. // List of environment variables to set in the container.
  1079. // Cannot be updated.
  1080. // +optional
  1081. // +patchMergeKey=name
  1082. // +patchStrategy=merge
  1083. repeated EnvVar env = 7;
  1084. // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
  1085. // already allocated to the pod.
  1086. // +optional
  1087. optional ResourceRequirements resources = 8;
  1088. // Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
  1089. // Cannot be updated.
  1090. // +optional
  1091. // +patchMergeKey=mountPath
  1092. // +patchStrategy=merge
  1093. repeated VolumeMount volumeMounts = 9;
  1094. // volumeDevices is the list of block devices to be used by the container.
  1095. // +patchMergeKey=devicePath
  1096. // +patchStrategy=merge
  1097. // +optional
  1098. repeated VolumeDevice volumeDevices = 21;
  1099. // Probes are not allowed for ephemeral containers.
  1100. // +optional
  1101. optional Probe livenessProbe = 10;
  1102. // Probes are not allowed for ephemeral containers.
  1103. // +optional
  1104. optional Probe readinessProbe = 11;
  1105. // Probes are not allowed for ephemeral containers.
  1106. // +optional
  1107. optional Probe startupProbe = 22;
  1108. // Lifecycle is not allowed for ephemeral containers.
  1109. // +optional
  1110. optional Lifecycle lifecycle = 12;
  1111. // Optional: Path at which the file to which the container's termination message
  1112. // will be written is mounted into the container's filesystem.
  1113. // Message written is intended to be brief final status, such as an assertion failure message.
  1114. // Will be truncated by the node if greater than 4096 bytes. The total message length across
  1115. // all containers will be limited to 12kb.
  1116. // Defaults to /dev/termination-log.
  1117. // Cannot be updated.
  1118. // +optional
  1119. optional string terminationMessagePath = 13;
  1120. // Indicate how the termination message should be populated. File will use the contents of
  1121. // terminationMessagePath to populate the container status message on both success and failure.
  1122. // FallbackToLogsOnError will use the last chunk of container log output if the termination
  1123. // message file is empty and the container exited with an error.
  1124. // The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
  1125. // Defaults to File.
  1126. // Cannot be updated.
  1127. // +optional
  1128. optional string terminationMessagePolicy = 20;
  1129. // Image pull policy.
  1130. // One of Always, Never, IfNotPresent.
  1131. // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
  1132. // Cannot be updated.
  1133. // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
  1134. // +optional
  1135. optional string imagePullPolicy = 14;
  1136. // Optional: SecurityContext defines the security options the ephemeral container should be run with.
  1137. // If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
  1138. // +optional
  1139. optional SecurityContext securityContext = 15;
  1140. // Whether this container should allocate a buffer for stdin in the container runtime. If this
  1141. // is not set, reads from stdin in the container will always result in EOF.
  1142. // Default is false.
  1143. // +optional
  1144. optional bool stdin = 16;
  1145. // Whether the container runtime should close the stdin channel after it has been opened by
  1146. // a single attach. When stdin is true the stdin stream will remain open across multiple attach
  1147. // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
  1148. // first client attaches to stdin, and then remains open and accepts data until the client disconnects,
  1149. // at which time stdin is closed and remains closed until the container is restarted. If this
  1150. // flag is false, a container processes that reads from stdin will never receive an EOF.
  1151. // Default is false
  1152. // +optional
  1153. optional bool stdinOnce = 17;
  1154. // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
  1155. // Default is false.
  1156. // +optional
  1157. optional bool tty = 18;
  1158. }
  1159. // Represents an ephemeral volume that is handled by a normal storage driver.
  1160. message EphemeralVolumeSource {
  1161. // Will be used to create a stand-alone PVC to provision the volume.
  1162. // The pod in which this EphemeralVolumeSource is embedded will be the
  1163. // owner of the PVC, i.e. the PVC will be deleted together with the
  1164. // pod. The name of the PVC will be `<pod name>-<volume name>` where
  1165. // `<volume name>` is the name from the `PodSpec.Volumes` array
  1166. // entry. Pod validation will reject the pod if the concatenated name
  1167. // is not valid for a PVC (for example, too long).
  1168. //
  1169. // An existing PVC with that name that is not owned by the pod
  1170. // will *not* be used for the pod to avoid using an unrelated
  1171. // volume by mistake. Starting the pod is then blocked until
  1172. // the unrelated PVC is removed. If such a pre-created PVC is
  1173. // meant to be used by the pod, the PVC has to updated with an
  1174. // owner reference to the pod once the pod exists. Normally
  1175. // this should not be necessary, but it may be useful when
  1176. // manually reconstructing a broken cluster.
  1177. //
  1178. // This field is read-only and no changes will be made by Kubernetes
  1179. // to the PVC after it has been created.
  1180. //
  1181. // Required, must not be nil.
  1182. optional PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
  1183. }
  1184. // Event is a report of an event somewhere in the cluster. Events
  1185. // have a limited retention time and triggers and messages may evolve
  1186. // with time. Event consumers should not rely on the timing of an event
  1187. // with a given Reason reflecting a consistent underlying trigger, or the
  1188. // continued existence of events with that Reason. Events should be
  1189. // treated as informative, best-effort, supplemental data.
  1190. message Event {
  1191. // Standard object's metadata.
  1192. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  1193. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  1194. // The object that this event is about.
  1195. optional ObjectReference involvedObject = 2;
  1196. // This should be a short, machine understandable string that gives the reason
  1197. // for the transition into the object's current status.
  1198. // TODO: provide exact specification for format.
  1199. // +optional
  1200. optional string reason = 3;
  1201. // A human-readable description of the status of this operation.
  1202. // TODO: decide on maximum length.
  1203. // +optional
  1204. optional string message = 4;
  1205. // The component reporting this event. Should be a short machine understandable string.
  1206. // +optional
  1207. optional EventSource source = 5;
  1208. // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
  1209. // +optional
  1210. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6;
  1211. // The time at which the most recent occurrence of this event was recorded.
  1212. // +optional
  1213. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7;
  1214. // The number of times this event has occurred.
  1215. // +optional
  1216. optional int32 count = 8;
  1217. // Type of this event (Normal, Warning), new types could be added in the future
  1218. // +optional
  1219. optional string type = 9;
  1220. // Time when this Event was first observed.
  1221. // +optional
  1222. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10;
  1223. // Data about the Event series this event represents or nil if it's a singleton Event.
  1224. // +optional
  1225. optional EventSeries series = 11;
  1226. // What action was taken/failed regarding to the Regarding object.
  1227. // +optional
  1228. optional string action = 12;
  1229. // Optional secondary object for more complex actions.
  1230. // +optional
  1231. optional ObjectReference related = 13;
  1232. // Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
  1233. // +optional
  1234. optional string reportingComponent = 14;
  1235. // ID of the controller instance, e.g. `kubelet-xyzf`.
  1236. // +optional
  1237. optional string reportingInstance = 15;
  1238. }
  1239. // EventList is a list of events.
  1240. message EventList {
  1241. // Standard list metadata.
  1242. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  1243. // +optional
  1244. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  1245. // List of events
  1246. repeated Event items = 2;
  1247. }
  1248. // EventSeries contain information on series of events, i.e. thing that was/is happening
  1249. // continuously for some time.
  1250. message EventSeries {
  1251. // Number of occurrences in this series up to the last heartbeat time
  1252. optional int32 count = 1;
  1253. // Time of the last occurrence observed
  1254. optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
  1255. }
  1256. // EventSource contains information for an event.
  1257. message EventSource {
  1258. // Component from which the event is generated.
  1259. // +optional
  1260. optional string component = 1;
  1261. // Node name on which the event is generated.
  1262. // +optional
  1263. optional string host = 2;
  1264. }
  1265. // ExecAction describes a "run in container" action.
  1266. message ExecAction {
  1267. // Command is the command line to execute inside the container, the working directory for the
  1268. // command is root ('/') in the container's filesystem. The command is simply exec'd, it is
  1269. // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
  1270. // a shell, you need to explicitly call out to that shell.
  1271. // Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
  1272. // +optional
  1273. repeated string command = 1;
  1274. }
  1275. // Represents a Fibre Channel volume.
  1276. // Fibre Channel volumes can only be mounted as read/write once.
  1277. // Fibre Channel volumes support ownership management and SELinux relabeling.
  1278. message FCVolumeSource {
  1279. // Optional: FC target worldwide names (WWNs)
  1280. // +optional
  1281. repeated string targetWWNs = 1;
  1282. // Optional: FC target lun number
  1283. // +optional
  1284. optional int32 lun = 2;
  1285. // Filesystem type to mount.
  1286. // Must be a filesystem type supported by the host operating system.
  1287. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1288. // TODO: how do we prevent errors in the filesystem from compromising the machine
  1289. // +optional
  1290. optional string fsType = 3;
  1291. // Optional: Defaults to false (read/write). ReadOnly here will force
  1292. // the ReadOnly setting in VolumeMounts.
  1293. // +optional
  1294. optional bool readOnly = 4;
  1295. // Optional: FC volume world wide identifiers (wwids)
  1296. // Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
  1297. // +optional
  1298. repeated string wwids = 5;
  1299. }
  1300. // FlexPersistentVolumeSource represents a generic persistent volume resource that is
  1301. // provisioned/attached using an exec based plugin.
  1302. message FlexPersistentVolumeSource {
  1303. // Driver is the name of the driver to use for this volume.
  1304. optional string driver = 1;
  1305. // Filesystem type to mount.
  1306. // Must be a filesystem type supported by the host operating system.
  1307. // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
  1308. // +optional
  1309. optional string fsType = 2;
  1310. // Optional: SecretRef is reference to the secret object containing
  1311. // sensitive information to pass to the plugin scripts. This may be
  1312. // empty if no secret object is specified. If the secret object
  1313. // contains more than one secret, all secrets are passed to the plugin
  1314. // scripts.
  1315. // +optional
  1316. optional SecretReference secretRef = 3;
  1317. // Optional: Defaults to false (read/write). ReadOnly here will force
  1318. // the ReadOnly setting in VolumeMounts.
  1319. // +optional
  1320. optional bool readOnly = 4;
  1321. // Optional: Extra command options if any.
  1322. // +optional
  1323. map<string, string> options = 5;
  1324. }
  1325. // FlexVolume represents a generic volume resource that is
  1326. // provisioned/attached using an exec based plugin.
  1327. message FlexVolumeSource {
  1328. // Driver is the name of the driver to use for this volume.
  1329. optional string driver = 1;
  1330. // Filesystem type to mount.
  1331. // Must be a filesystem type supported by the host operating system.
  1332. // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
  1333. // +optional
  1334. optional string fsType = 2;
  1335. // Optional: SecretRef is reference to the secret object containing
  1336. // sensitive information to pass to the plugin scripts. This may be
  1337. // empty if no secret object is specified. If the secret object
  1338. // contains more than one secret, all secrets are passed to the plugin
  1339. // scripts.
  1340. // +optional
  1341. optional LocalObjectReference secretRef = 3;
  1342. // Optional: Defaults to false (read/write). ReadOnly here will force
  1343. // the ReadOnly setting in VolumeMounts.
  1344. // +optional
  1345. optional bool readOnly = 4;
  1346. // Optional: Extra command options if any.
  1347. // +optional
  1348. map<string, string> options = 5;
  1349. }
  1350. // Represents a Flocker volume mounted by the Flocker agent.
  1351. // One and only one of datasetName and datasetUUID should be set.
  1352. // Flocker volumes do not support ownership management or SELinux relabeling.
  1353. message FlockerVolumeSource {
  1354. // Name of the dataset stored as metadata -> name on the dataset for Flocker
  1355. // should be considered as deprecated
  1356. // +optional
  1357. optional string datasetName = 1;
  1358. // UUID of the dataset. This is unique identifier of a Flocker dataset
  1359. // +optional
  1360. optional string datasetUUID = 2;
  1361. }
  1362. // Represents a Persistent Disk resource in Google Compute Engine.
  1363. //
  1364. // A GCE PD must exist before mounting to a container. The disk must
  1365. // also be in the same GCE project and zone as the kubelet. A GCE PD
  1366. // can only be mounted as read/write once or read-only many times. GCE
  1367. // PDs support ownership management and SELinux relabeling.
  1368. message GCEPersistentDiskVolumeSource {
  1369. // Unique name of the PD resource in GCE. Used to identify the disk in GCE.
  1370. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  1371. optional string pdName = 1;
  1372. // Filesystem type of the volume that you want to mount.
  1373. // Tip: Ensure that the filesystem type is supported by the host operating system.
  1374. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1375. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  1376. // TODO: how do we prevent errors in the filesystem from compromising the machine
  1377. // +optional
  1378. optional string fsType = 2;
  1379. // The partition in the volume that you want to mount.
  1380. // If omitted, the default is to mount by volume name.
  1381. // Examples: For volume /dev/sda1, you specify the partition as "1".
  1382. // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
  1383. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  1384. // +optional
  1385. optional int32 partition = 3;
  1386. // ReadOnly here will force the ReadOnly setting in VolumeMounts.
  1387. // Defaults to false.
  1388. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  1389. // +optional
  1390. optional bool readOnly = 4;
  1391. }
  1392. message GRPCAction {
  1393. // Port number of the gRPC service. Number must be in the range 1 to 65535.
  1394. optional int32 port = 1;
  1395. // Service is the name of the service to place in the gRPC HealthCheckRequest
  1396. // (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
  1397. //
  1398. // If this is not specified, the default behavior is defined by gRPC.
  1399. // +optional
  1400. // +default=""
  1401. optional string service = 2;
  1402. }
  1403. // Represents a volume that is populated with the contents of a git repository.
  1404. // Git repo volumes do not support ownership management.
  1405. // Git repo volumes support SELinux relabeling.
  1406. //
  1407. // DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
  1408. // EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
  1409. // into the Pod's container.
  1410. message GitRepoVolumeSource {
  1411. // Repository URL
  1412. optional string repository = 1;
  1413. // Commit hash for the specified revision.
  1414. // +optional
  1415. optional string revision = 2;
  1416. // Target directory name.
  1417. // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
  1418. // git repository. Otherwise, if specified, the volume will contain the git repository in
  1419. // the subdirectory with the given name.
  1420. // +optional
  1421. optional string directory = 3;
  1422. }
  1423. // Represents a Glusterfs mount that lasts the lifetime of a pod.
  1424. // Glusterfs volumes do not support ownership management or SELinux relabeling.
  1425. message GlusterfsPersistentVolumeSource {
  1426. // EndpointsName is the endpoint name that details Glusterfs topology.
  1427. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1428. optional string endpoints = 1;
  1429. // Path is the Glusterfs volume path.
  1430. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1431. optional string path = 2;
  1432. // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
  1433. // Defaults to false.
  1434. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1435. // +optional
  1436. optional bool readOnly = 3;
  1437. // EndpointsNamespace is the namespace that contains Glusterfs endpoint.
  1438. // If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
  1439. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1440. // +optional
  1441. optional string endpointsNamespace = 4;
  1442. }
  1443. // Represents a Glusterfs mount that lasts the lifetime of a pod.
  1444. // Glusterfs volumes do not support ownership management or SELinux relabeling.
  1445. message GlusterfsVolumeSource {
  1446. // EndpointsName is the endpoint name that details Glusterfs topology.
  1447. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1448. optional string endpoints = 1;
  1449. // Path is the Glusterfs volume path.
  1450. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1451. optional string path = 2;
  1452. // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
  1453. // Defaults to false.
  1454. // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
  1455. // +optional
  1456. optional bool readOnly = 3;
  1457. }
  1458. // HTTPGetAction describes an action based on HTTP Get requests.
  1459. message HTTPGetAction {
  1460. // Path to access on the HTTP server.
  1461. // +optional
  1462. optional string path = 1;
  1463. // Name or number of the port to access on the container.
  1464. // Number must be in the range 1 to 65535.
  1465. // Name must be an IANA_SVC_NAME.
  1466. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
  1467. // Host name to connect to, defaults to the pod IP. You probably want to set
  1468. // "Host" in httpHeaders instead.
  1469. // +optional
  1470. optional string host = 3;
  1471. // Scheme to use for connecting to the host.
  1472. // Defaults to HTTP.
  1473. // +optional
  1474. optional string scheme = 4;
  1475. // Custom headers to set in the request. HTTP allows repeated headers.
  1476. // +optional
  1477. repeated HTTPHeader httpHeaders = 5;
  1478. }
  1479. // HTTPHeader describes a custom header to be used in HTTP probes
  1480. message HTTPHeader {
  1481. // The header field name
  1482. optional string name = 1;
  1483. // The header field value
  1484. optional string value = 2;
  1485. }
  1486. // HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
  1487. // pod's hosts file.
  1488. message HostAlias {
  1489. // IP address of the host file entry.
  1490. optional string ip = 1;
  1491. // Hostnames for the above IP address.
  1492. repeated string hostnames = 2;
  1493. }
  1494. // Represents a host path mapped into a pod.
  1495. // Host path volumes do not support ownership management or SELinux relabeling.
  1496. message HostPathVolumeSource {
  1497. // Path of the directory on the host.
  1498. // If the path is a symlink, it will follow the link to the real path.
  1499. // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  1500. optional string path = 1;
  1501. // Type for HostPath Volume
  1502. // Defaults to ""
  1503. // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  1504. // +optional
  1505. optional string type = 2;
  1506. }
  1507. // ISCSIPersistentVolumeSource represents an ISCSI disk.
  1508. // ISCSI volumes can only be mounted as read/write once.
  1509. // ISCSI volumes support ownership management and SELinux relabeling.
  1510. message ISCSIPersistentVolumeSource {
  1511. // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
  1512. // is other than default (typically TCP ports 860 and 3260).
  1513. optional string targetPortal = 1;
  1514. // Target iSCSI Qualified Name.
  1515. optional string iqn = 2;
  1516. // iSCSI Target Lun number.
  1517. optional int32 lun = 3;
  1518. // iSCSI Interface Name that uses an iSCSI transport.
  1519. // Defaults to 'default' (tcp).
  1520. // +optional
  1521. optional string iscsiInterface = 4;
  1522. // Filesystem type of the volume that you want to mount.
  1523. // Tip: Ensure that the filesystem type is supported by the host operating system.
  1524. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1525. // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
  1526. // TODO: how do we prevent errors in the filesystem from compromising the machine
  1527. // +optional
  1528. optional string fsType = 5;
  1529. // ReadOnly here will force the ReadOnly setting in VolumeMounts.
  1530. // Defaults to false.
  1531. // +optional
  1532. optional bool readOnly = 6;
  1533. // iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
  1534. // is other than default (typically TCP ports 860 and 3260).
  1535. // +optional
  1536. repeated string portals = 7;
  1537. // whether support iSCSI Discovery CHAP authentication
  1538. // +optional
  1539. optional bool chapAuthDiscovery = 8;
  1540. // whether support iSCSI Session CHAP authentication
  1541. // +optional
  1542. optional bool chapAuthSession = 11;
  1543. // CHAP Secret for iSCSI target and initiator authentication
  1544. // +optional
  1545. optional SecretReference secretRef = 10;
  1546. // Custom iSCSI Initiator Name.
  1547. // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
  1548. // <target portal>:<volume name> will be created for the connection.
  1549. // +optional
  1550. optional string initiatorName = 12;
  1551. }
  1552. // Represents an ISCSI disk.
  1553. // ISCSI volumes can only be mounted as read/write once.
  1554. // ISCSI volumes support ownership management and SELinux relabeling.
  1555. message ISCSIVolumeSource {
  1556. // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
  1557. // is other than default (typically TCP ports 860 and 3260).
  1558. optional string targetPortal = 1;
  1559. // Target iSCSI Qualified Name.
  1560. optional string iqn = 2;
  1561. // iSCSI Target Lun number.
  1562. optional int32 lun = 3;
  1563. // iSCSI Interface Name that uses an iSCSI transport.
  1564. // Defaults to 'default' (tcp).
  1565. // +optional
  1566. optional string iscsiInterface = 4;
  1567. // Filesystem type of the volume that you want to mount.
  1568. // Tip: Ensure that the filesystem type is supported by the host operating system.
  1569. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  1570. // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
  1571. // TODO: how do we prevent errors in the filesystem from compromising the machine
  1572. // +optional
  1573. optional string fsType = 5;
  1574. // ReadOnly here will force the ReadOnly setting in VolumeMounts.
  1575. // Defaults to false.
  1576. // +optional
  1577. optional bool readOnly = 6;
  1578. // iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
  1579. // is other than default (typically TCP ports 860 and 3260).
  1580. // +optional
  1581. repeated string portals = 7;
  1582. // whether support iSCSI Discovery CHAP authentication
  1583. // +optional
  1584. optional bool chapAuthDiscovery = 8;
  1585. // whether support iSCSI Session CHAP authentication
  1586. // +optional
  1587. optional bool chapAuthSession = 11;
  1588. // CHAP Secret for iSCSI target and initiator authentication
  1589. // +optional
  1590. optional LocalObjectReference secretRef = 10;
  1591. // Custom iSCSI Initiator Name.
  1592. // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
  1593. // <target portal>:<volume name> will be created for the connection.
  1594. // +optional
  1595. optional string initiatorName = 12;
  1596. }
  1597. // Maps a string key to a path within a volume.
  1598. message KeyToPath {
  1599. // The key to project.
  1600. optional string key = 1;
  1601. // The relative path of the file to map the key to.
  1602. // May not be an absolute path.
  1603. // May not contain the path element '..'.
  1604. // May not start with the string '..'.
  1605. optional string path = 2;
  1606. // Optional: mode bits used to set permissions on this file.
  1607. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  1608. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  1609. // If not specified, the volume defaultMode will be used.
  1610. // This might be in conflict with other options that affect the file
  1611. // mode, like fsGroup, and the result can be other mode bits set.
  1612. // +optional
  1613. optional int32 mode = 3;
  1614. }
  1615. // Lifecycle describes actions that the management system should take in response to container lifecycle
  1616. // events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
  1617. // until the action is complete, unless the container process fails, in which case the handler is aborted.
  1618. message Lifecycle {
  1619. // PostStart is called immediately after a container is created. If the handler fails,
  1620. // the container is terminated and restarted according to its restart policy.
  1621. // Other management of the container blocks until the hook completes.
  1622. // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
  1623. // +optional
  1624. optional LifecycleHandler postStart = 1;
  1625. // PreStop is called immediately before a container is terminated due to an
  1626. // API request or management event such as liveness/startup probe failure,
  1627. // preemption, resource contention, etc. The handler is not called if the
  1628. // container crashes or exits. The Pod's termination grace period countdown begins before the
  1629. // PreStop hook is executed. Regardless of the outcome of the handler, the
  1630. // container will eventually terminate within the Pod's termination grace
  1631. // period (unless delayed by finalizers). Other management of the container blocks until the hook completes
  1632. // or until the termination grace period is reached.
  1633. // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
  1634. // +optional
  1635. optional LifecycleHandler preStop = 2;
  1636. }
  1637. // LifecycleHandler defines a specific action that should be taken in a lifecycle
  1638. // hook. One and only one of the fields, except TCPSocket must be specified.
  1639. message LifecycleHandler {
  1640. // Exec specifies the action to take.
  1641. // +optional
  1642. optional ExecAction exec = 1;
  1643. // HTTPGet specifies the http request to perform.
  1644. // +optional
  1645. optional HTTPGetAction httpGet = 2;
  1646. // Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
  1647. // for the backward compatibility. There are no validation of this field and
  1648. // lifecycle hooks will fail in runtime when tcp handler is specified.
  1649. // +optional
  1650. optional TCPSocketAction tcpSocket = 3;
  1651. }
  1652. // LimitRange sets resource usage limits for each kind of resource in a Namespace.
  1653. message LimitRange {
  1654. // Standard object's metadata.
  1655. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  1656. // +optional
  1657. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  1658. // Spec defines the limits enforced.
  1659. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  1660. // +optional
  1661. optional LimitRangeSpec spec = 2;
  1662. }
  1663. // LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
  1664. message LimitRangeItem {
  1665. // Type of resource that this limit applies to.
  1666. optional string type = 1;
  1667. // Max usage constraints on this kind by resource name.
  1668. // +optional
  1669. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
  1670. // Min usage constraints on this kind by resource name.
  1671. // +optional
  1672. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
  1673. // Default resource requirement limit value by resource name if resource limit is omitted.
  1674. // +optional
  1675. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
  1676. // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
  1677. // +optional
  1678. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
  1679. // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
  1680. // +optional
  1681. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
  1682. }
  1683. // LimitRangeList is a list of LimitRange items.
  1684. message LimitRangeList {
  1685. // Standard list metadata.
  1686. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  1687. // +optional
  1688. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  1689. // Items is a list of LimitRange objects.
  1690. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  1691. repeated LimitRange items = 2;
  1692. }
  1693. // LimitRangeSpec defines a min/max usage limit for resources that match on kind.
  1694. message LimitRangeSpec {
  1695. // Limits is the list of LimitRangeItem objects that are enforced.
  1696. repeated LimitRangeItem limits = 1;
  1697. }
  1698. // List holds a list of objects, which may not be known by the server.
  1699. message List {
  1700. // Standard list metadata.
  1701. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  1702. // +optional
  1703. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  1704. // List of objects
  1705. repeated k8s.io.apimachinery.pkg.runtime.RawExtension items = 2;
  1706. }
  1707. // LoadBalancerIngress represents the status of a load-balancer ingress point:
  1708. // traffic intended for the service should be sent to an ingress point.
  1709. message LoadBalancerIngress {
  1710. // IP is set for load-balancer ingress points that are IP based
  1711. // (typically GCE or OpenStack load-balancers)
  1712. // +optional
  1713. optional string ip = 1;
  1714. // Hostname is set for load-balancer ingress points that are DNS based
  1715. // (typically AWS load-balancers)
  1716. // +optional
  1717. optional string hostname = 2;
  1718. // Ports is a list of records of service ports
  1719. // If used, every port defined in the service should have an entry in it
  1720. // +listType=atomic
  1721. // +optional
  1722. repeated PortStatus ports = 4;
  1723. }
  1724. // LoadBalancerStatus represents the status of a load-balancer.
  1725. message LoadBalancerStatus {
  1726. // Ingress is a list containing ingress points for the load-balancer.
  1727. // Traffic intended for the service should be sent to these ingress points.
  1728. // +optional
  1729. repeated LoadBalancerIngress ingress = 1;
  1730. }
  1731. // LocalObjectReference contains enough information to let you locate the
  1732. // referenced object inside the same namespace.
  1733. // +structType=atomic
  1734. message LocalObjectReference {
  1735. // Name of the referent.
  1736. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  1737. // TODO: Add other useful fields. apiVersion, kind, uid?
  1738. // +optional
  1739. optional string name = 1;
  1740. }
  1741. // Local represents directly-attached storage with node affinity (Beta feature)
  1742. message LocalVolumeSource {
  1743. // The full path to the volume on the node.
  1744. // It can be either a directory or block device (disk, partition, ...).
  1745. optional string path = 1;
  1746. // Filesystem type to mount.
  1747. // It applies only when the Path is a block device.
  1748. // Must be a filesystem type supported by the host operating system.
  1749. // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
  1750. // +optional
  1751. optional string fsType = 2;
  1752. }
  1753. // Represents an NFS mount that lasts the lifetime of a pod.
  1754. // NFS volumes do not support ownership management or SELinux relabeling.
  1755. message NFSVolumeSource {
  1756. // Server is the hostname or IP address of the NFS server.
  1757. // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  1758. optional string server = 1;
  1759. // Path that is exported by the NFS server.
  1760. // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  1761. optional string path = 2;
  1762. // ReadOnly here will force
  1763. // the NFS export to be mounted with read-only permissions.
  1764. // Defaults to false.
  1765. // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  1766. // +optional
  1767. optional bool readOnly = 3;
  1768. }
  1769. // Namespace provides a scope for Names.
  1770. // Use of multiple namespaces is optional.
  1771. message Namespace {
  1772. // Standard object's metadata.
  1773. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  1774. // +optional
  1775. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  1776. // Spec defines the behavior of the Namespace.
  1777. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  1778. // +optional
  1779. optional NamespaceSpec spec = 2;
  1780. // Status describes the current status of a Namespace.
  1781. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  1782. // +optional
  1783. optional NamespaceStatus status = 3;
  1784. }
  1785. // NamespaceCondition contains details about state of namespace.
  1786. message NamespaceCondition {
  1787. // Type of namespace controller condition.
  1788. optional string type = 1;
  1789. // Status of the condition, one of True, False, Unknown.
  1790. optional string status = 2;
  1791. // +optional
  1792. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
  1793. // +optional
  1794. optional string reason = 5;
  1795. // +optional
  1796. optional string message = 6;
  1797. }
  1798. // NamespaceList is a list of Namespaces.
  1799. message NamespaceList {
  1800. // Standard list metadata.
  1801. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  1802. // +optional
  1803. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  1804. // Items is the list of Namespace objects in the list.
  1805. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
  1806. repeated Namespace items = 2;
  1807. }
  1808. // NamespaceSpec describes the attributes on a Namespace.
  1809. message NamespaceSpec {
  1810. // Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
  1811. // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
  1812. // +optional
  1813. repeated string finalizers = 1;
  1814. }
  1815. // NamespaceStatus is information about the current status of a Namespace.
  1816. message NamespaceStatus {
  1817. // Phase is the current lifecycle phase of the namespace.
  1818. // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
  1819. // +optional
  1820. optional string phase = 1;
  1821. // Represents the latest available observations of a namespace's current state.
  1822. // +optional
  1823. // +patchMergeKey=type
  1824. // +patchStrategy=merge
  1825. repeated NamespaceCondition conditions = 2;
  1826. }
  1827. // Node is a worker node in Kubernetes.
  1828. // Each node will have a unique identifier in the cache (i.e. in etcd).
  1829. message Node {
  1830. // Standard object's metadata.
  1831. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  1832. // +optional
  1833. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  1834. // Spec defines the behavior of a node.
  1835. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  1836. // +optional
  1837. optional NodeSpec spec = 2;
  1838. // Most recently observed status of the node.
  1839. // Populated by the system.
  1840. // Read-only.
  1841. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  1842. // +optional
  1843. optional NodeStatus status = 3;
  1844. }
  1845. // NodeAddress contains information for the node's address.
  1846. message NodeAddress {
  1847. // Node address type, one of Hostname, ExternalIP or InternalIP.
  1848. optional string type = 1;
  1849. // The node address.
  1850. optional string address = 2;
  1851. }
  1852. // Node affinity is a group of node affinity scheduling rules.
  1853. message NodeAffinity {
  1854. // If the affinity requirements specified by this field are not met at
  1855. // scheduling time, the pod will not be scheduled onto the node.
  1856. // If the affinity requirements specified by this field cease to be met
  1857. // at some point during pod execution (e.g. due to an update), the system
  1858. // may or may not try to eventually evict the pod from its node.
  1859. // +optional
  1860. optional NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
  1861. // The scheduler will prefer to schedule pods to nodes that satisfy
  1862. // the affinity expressions specified by this field, but it may choose
  1863. // a node that violates one or more of the expressions. The node that is
  1864. // most preferred is the one with the greatest sum of weights, i.e.
  1865. // for each node that meets all of the scheduling requirements (resource
  1866. // request, requiredDuringScheduling affinity expressions, etc.),
  1867. // compute a sum by iterating through the elements of this field and adding
  1868. // "weight" to the sum if the node matches the corresponding matchExpressions; the
  1869. // node(s) with the highest sum are the most preferred.
  1870. // +optional
  1871. repeated PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
  1872. }
  1873. // NodeCondition contains condition information for a node.
  1874. message NodeCondition {
  1875. // Type of node condition.
  1876. optional string type = 1;
  1877. // Status of the condition, one of True, False, Unknown.
  1878. optional string status = 2;
  1879. // Last time we got an update on a given condition.
  1880. // +optional
  1881. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3;
  1882. // Last time the condition transit from one status to another.
  1883. // +optional
  1884. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
  1885. // (brief) reason for the condition's last transition.
  1886. // +optional
  1887. optional string reason = 5;
  1888. // Human readable message indicating details about last transition.
  1889. // +optional
  1890. optional string message = 6;
  1891. }
  1892. // NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
  1893. // This API is deprecated since 1.22
  1894. message NodeConfigSource {
  1895. // ConfigMap is a reference to a Node's ConfigMap
  1896. optional ConfigMapNodeConfigSource configMap = 2;
  1897. }
  1898. // NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
  1899. message NodeConfigStatus {
  1900. // Assigned reports the checkpointed config the node will try to use.
  1901. // When Node.Spec.ConfigSource is updated, the node checkpoints the associated
  1902. // config payload to local disk, along with a record indicating intended
  1903. // config. The node refers to this record to choose its config checkpoint, and
  1904. // reports this record in Assigned. Assigned only updates in the status after
  1905. // the record has been checkpointed to disk. When the Kubelet is restarted,
  1906. // it tries to make the Assigned config the Active config by loading and
  1907. // validating the checkpointed payload identified by Assigned.
  1908. // +optional
  1909. optional NodeConfigSource assigned = 1;
  1910. // Active reports the checkpointed config the node is actively using.
  1911. // Active will represent either the current version of the Assigned config,
  1912. // or the current LastKnownGood config, depending on whether attempting to use the
  1913. // Assigned config results in an error.
  1914. // +optional
  1915. optional NodeConfigSource active = 2;
  1916. // LastKnownGood reports the checkpointed config the node will fall back to
  1917. // when it encounters an error attempting to use the Assigned config.
  1918. // The Assigned config becomes the LastKnownGood config when the node determines
  1919. // that the Assigned config is stable and correct.
  1920. // This is currently implemented as a 10-minute soak period starting when the local
  1921. // record of Assigned config is updated. If the Assigned config is Active at the end
  1922. // of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
  1923. // reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
  1924. // because the local default config is always assumed good.
  1925. // You should not make assumptions about the node's method of determining config stability
  1926. // and correctness, as this may change or become configurable in the future.
  1927. // +optional
  1928. optional NodeConfigSource lastKnownGood = 3;
  1929. // Error describes any problems reconciling the Spec.ConfigSource to the Active config.
  1930. // Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
  1931. // record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
  1932. // to load or validate the Assigned config, etc.
  1933. // Errors may occur at different points while syncing config. Earlier errors (e.g. download or
  1934. // checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
  1935. // Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
  1936. // a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
  1937. // by fixing the config assigned in Spec.ConfigSource.
  1938. // You can find additional information for debugging by searching the error message in the Kubelet log.
  1939. // Error is a human-readable description of the error state; machines can check whether or not Error
  1940. // is empty, but should not rely on the stability of the Error text across Kubelet versions.
  1941. // +optional
  1942. optional string error = 4;
  1943. }
  1944. // NodeDaemonEndpoints lists ports opened by daemons running on the Node.
  1945. message NodeDaemonEndpoints {
  1946. // Endpoint on which Kubelet is listening.
  1947. // +optional
  1948. optional DaemonEndpoint kubeletEndpoint = 1;
  1949. }
  1950. // NodeList is the whole list of all Nodes which have been registered with master.
  1951. message NodeList {
  1952. // Standard list metadata.
  1953. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  1954. // +optional
  1955. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  1956. // List of nodes
  1957. repeated Node items = 2;
  1958. }
  1959. // NodeProxyOptions is the query options to a Node's proxy call.
  1960. message NodeProxyOptions {
  1961. // Path is the URL path to use for the current proxy request to node.
  1962. // +optional
  1963. optional string path = 1;
  1964. }
  1965. // NodeResources is an object for conveying resource information about a node.
  1966. // see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.
  1967. message NodeResources {
  1968. // Capacity represents the available resources of a node
  1969. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
  1970. }
  1971. // A node selector represents the union of the results of one or more label queries
  1972. // over a set of nodes; that is, it represents the OR of the selectors represented
  1973. // by the node selector terms.
  1974. // +structType=atomic
  1975. message NodeSelector {
  1976. // Required. A list of node selector terms. The terms are ORed.
  1977. repeated NodeSelectorTerm nodeSelectorTerms = 1;
  1978. }
  1979. // A node selector requirement is a selector that contains values, a key, and an operator
  1980. // that relates the key and values.
  1981. message NodeSelectorRequirement {
  1982. // The label key that the selector applies to.
  1983. optional string key = 1;
  1984. // Represents a key's relationship to a set of values.
  1985. // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
  1986. optional string operator = 2;
  1987. // An array of string values. If the operator is In or NotIn,
  1988. // the values array must be non-empty. If the operator is Exists or DoesNotExist,
  1989. // the values array must be empty. If the operator is Gt or Lt, the values
  1990. // array must have a single element, which will be interpreted as an integer.
  1991. // This array is replaced during a strategic merge patch.
  1992. // +optional
  1993. repeated string values = 3;
  1994. }
  1995. // A null or empty node selector term matches no objects. The requirements of
  1996. // them are ANDed.
  1997. // The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
  1998. // +structType=atomic
  1999. message NodeSelectorTerm {
  2000. // A list of node selector requirements by node's labels.
  2001. // +optional
  2002. repeated NodeSelectorRequirement matchExpressions = 1;
  2003. // A list of node selector requirements by node's fields.
  2004. // +optional
  2005. repeated NodeSelectorRequirement matchFields = 2;
  2006. }
  2007. // NodeSpec describes the attributes that a node is created with.
  2008. message NodeSpec {
  2009. // PodCIDR represents the pod IP range assigned to the node.
  2010. // +optional
  2011. optional string podCIDR = 1;
  2012. // podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
  2013. // field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
  2014. // each of IPv4 and IPv6.
  2015. // +optional
  2016. // +patchStrategy=merge
  2017. repeated string podCIDRs = 7;
  2018. // ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
  2019. // +optional
  2020. optional string providerID = 3;
  2021. // Unschedulable controls node schedulability of new pods. By default, node is schedulable.
  2022. // More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
  2023. // +optional
  2024. optional bool unschedulable = 4;
  2025. // If specified, the node's taints.
  2026. // +optional
  2027. repeated Taint taints = 5;
  2028. // Deprecated. If specified, the source of the node's configuration.
  2029. // The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
  2030. // This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
  2031. // +optional
  2032. optional NodeConfigSource configSource = 6;
  2033. // Deprecated. Not all kubelets will set this field. Remove field after 1.13.
  2034. // see: https://issues.k8s.io/61966
  2035. // +optional
  2036. optional string externalID = 2;
  2037. }
  2038. // NodeStatus is information about the current status of a node.
  2039. message NodeStatus {
  2040. // Capacity represents the total resources of a node.
  2041. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
  2042. // +optional
  2043. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
  2044. // Allocatable represents the resources of a node that are available for scheduling.
  2045. // Defaults to Capacity.
  2046. // +optional
  2047. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2;
  2048. // NodePhase is the recently observed lifecycle phase of the node.
  2049. // More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
  2050. // The field is never populated, and now is deprecated.
  2051. // +optional
  2052. optional string phase = 3;
  2053. // Conditions is an array of current observed node conditions.
  2054. // More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
  2055. // +optional
  2056. // +patchMergeKey=type
  2057. // +patchStrategy=merge
  2058. repeated NodeCondition conditions = 4;
  2059. // List of addresses reachable to the node.
  2060. // Queried from cloud provider, if available.
  2061. // More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
  2062. // Note: This field is declared as mergeable, but the merge key is not sufficiently
  2063. // unique, which can cause data corruption when it is merged. Callers should instead
  2064. // use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
  2065. // +optional
  2066. // +patchMergeKey=type
  2067. // +patchStrategy=merge
  2068. repeated NodeAddress addresses = 5;
  2069. // Endpoints of daemons running on the Node.
  2070. // +optional
  2071. optional NodeDaemonEndpoints daemonEndpoints = 6;
  2072. // Set of ids/uuids to uniquely identify the node.
  2073. // More info: https://kubernetes.io/docs/concepts/nodes/node/#info
  2074. // +optional
  2075. optional NodeSystemInfo nodeInfo = 7;
  2076. // List of container images on this node
  2077. // +optional
  2078. repeated ContainerImage images = 8;
  2079. // List of attachable volumes in use (mounted) by the node.
  2080. // +optional
  2081. repeated string volumesInUse = 9;
  2082. // List of volumes that are attached to the node.
  2083. // +optional
  2084. repeated AttachedVolume volumesAttached = 10;
  2085. // Status of the config assigned to the node via the dynamic Kubelet config feature.
  2086. // +optional
  2087. optional NodeConfigStatus config = 11;
  2088. }
  2089. // NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
  2090. message NodeSystemInfo {
  2091. // MachineID reported by the node. For unique machine identification
  2092. // in the cluster this field is preferred. Learn more from man(5)
  2093. // machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
  2094. optional string machineID = 1;
  2095. // SystemUUID reported by the node. For unique machine identification
  2096. // MachineID is preferred. This field is specific to Red Hat hosts
  2097. // https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
  2098. optional string systemUUID = 2;
  2099. // Boot ID reported by the node.
  2100. optional string bootID = 3;
  2101. // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
  2102. optional string kernelVersion = 4;
  2103. // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
  2104. optional string osImage = 5;
  2105. // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
  2106. optional string containerRuntimeVersion = 6;
  2107. // Kubelet Version reported by the node.
  2108. optional string kubeletVersion = 7;
  2109. // KubeProxy Version reported by the node.
  2110. optional string kubeProxyVersion = 8;
  2111. // The Operating System reported by the node
  2112. optional string operatingSystem = 9;
  2113. // The Architecture reported by the node
  2114. optional string architecture = 10;
  2115. }
  2116. // ObjectFieldSelector selects an APIVersioned field of an object.
  2117. // +structType=atomic
  2118. message ObjectFieldSelector {
  2119. // Version of the schema the FieldPath is written in terms of, defaults to "v1".
  2120. // +optional
  2121. optional string apiVersion = 1;
  2122. // Path of the field to select in the specified API version.
  2123. optional string fieldPath = 2;
  2124. }
  2125. // ObjectReference contains enough information to let you inspect or modify the referred object.
  2126. // ---
  2127. // New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
  2128. // 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
  2129. // 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
  2130. // restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
  2131. // Those cannot be well described when embedded.
  2132. // 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
  2133. // 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
  2134. // during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
  2135. // and the version of the actual struct is irrelevant.
  2136. // 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
  2137. // will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
  2138. // Instead of using this type, create a locally provided and used type that is well-focused on your reference.
  2139. // For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
  2140. // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
  2141. // +structType=atomic
  2142. message ObjectReference {
  2143. // Kind of the referent.
  2144. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  2145. // +optional
  2146. optional string kind = 1;
  2147. // Namespace of the referent.
  2148. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
  2149. // +optional
  2150. optional string namespace = 2;
  2151. // Name of the referent.
  2152. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  2153. // +optional
  2154. optional string name = 3;
  2155. // UID of the referent.
  2156. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
  2157. // +optional
  2158. optional string uid = 4;
  2159. // API version of the referent.
  2160. // +optional
  2161. optional string apiVersion = 5;
  2162. // Specific resourceVersion to which this reference is made, if any.
  2163. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
  2164. // +optional
  2165. optional string resourceVersion = 6;
  2166. // If referring to a piece of an object instead of an entire object, this string
  2167. // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
  2168. // For example, if the object reference is to a container within a pod, this would take on a value like:
  2169. // "spec.containers{name}" (where "name" refers to the name of the container that triggered
  2170. // the event) or if no container name is specified "spec.containers[2]" (container with
  2171. // index 2 in this pod). This syntax is chosen only to have some well-defined way of
  2172. // referencing a part of an object.
  2173. // TODO: this design is not final and this field is subject to change in the future.
  2174. // +optional
  2175. optional string fieldPath = 7;
  2176. }
  2177. // PersistentVolume (PV) is a storage resource provisioned by an administrator.
  2178. // It is analogous to a node.
  2179. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
  2180. message PersistentVolume {
  2181. // Standard object's metadata.
  2182. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  2183. // +optional
  2184. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  2185. // Spec defines a specification of a persistent volume owned by the cluster.
  2186. // Provisioned by an administrator.
  2187. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
  2188. // +optional
  2189. optional PersistentVolumeSpec spec = 2;
  2190. // Status represents the current information/status for the persistent volume.
  2191. // Populated by the system.
  2192. // Read-only.
  2193. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
  2194. // +optional
  2195. optional PersistentVolumeStatus status = 3;
  2196. }
  2197. // PersistentVolumeClaim is a user's request for and claim to a persistent volume
  2198. message PersistentVolumeClaim {
  2199. // Standard object's metadata.
  2200. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  2201. // +optional
  2202. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  2203. // Spec defines the desired characteristics of a volume requested by a pod author.
  2204. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2205. // +optional
  2206. optional PersistentVolumeClaimSpec spec = 2;
  2207. // Status represents the current information/status of a persistent volume claim.
  2208. // Read-only.
  2209. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2210. // +optional
  2211. optional PersistentVolumeClaimStatus status = 3;
  2212. }
  2213. // PersistentVolumeClaimCondition contails details about state of pvc
  2214. message PersistentVolumeClaimCondition {
  2215. optional string type = 1;
  2216. optional string status = 2;
  2217. // Last time we probed the condition.
  2218. // +optional
  2219. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3;
  2220. // Last time the condition transitioned from one status to another.
  2221. // +optional
  2222. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
  2223. // Unique, this should be a short, machine understandable string that gives the reason
  2224. // for condition's last transition. If it reports "ResizeStarted" that means the underlying
  2225. // persistent volume is being resized.
  2226. // +optional
  2227. optional string reason = 5;
  2228. // Human-readable message indicating details about last transition.
  2229. // +optional
  2230. optional string message = 6;
  2231. }
  2232. // PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
  2233. message PersistentVolumeClaimList {
  2234. // Standard list metadata.
  2235. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  2236. // +optional
  2237. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  2238. // A list of persistent volume claims.
  2239. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2240. repeated PersistentVolumeClaim items = 2;
  2241. }
  2242. // PersistentVolumeClaimSpec describes the common attributes of storage devices
  2243. // and allows a Source for provider-specific attributes
  2244. message PersistentVolumeClaimSpec {
  2245. // AccessModes contains the desired access modes the volume should have.
  2246. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
  2247. // +optional
  2248. repeated string accessModes = 1;
  2249. // A label query over volumes to consider for binding.
  2250. // +optional
  2251. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
  2252. // Resources represents the minimum resources the volume should have.
  2253. // If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
  2254. // that are lower than previous value but must still be higher than capacity recorded in the
  2255. // status field of the claim.
  2256. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
  2257. // +optional
  2258. optional ResourceRequirements resources = 2;
  2259. // VolumeName is the binding reference to the PersistentVolume backing this claim.
  2260. // +optional
  2261. optional string volumeName = 3;
  2262. // Name of the StorageClass required by the claim.
  2263. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
  2264. // +optional
  2265. optional string storageClassName = 5;
  2266. // volumeMode defines what type of volume is required by the claim.
  2267. // Value of Filesystem is implied when not included in claim spec.
  2268. // +optional
  2269. optional string volumeMode = 6;
  2270. // This field can be used to specify either:
  2271. // * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
  2272. // * An existing PVC (PersistentVolumeClaim)
  2273. // If the provisioner or an external controller can support the specified data source,
  2274. // it will create a new volume based on the contents of the specified data source.
  2275. // If the AnyVolumeDataSource feature gate is enabled, this field will always have
  2276. // the same contents as the DataSourceRef field.
  2277. // +optional
  2278. optional TypedLocalObjectReference dataSource = 7;
  2279. // Specifies the object from which to populate the volume with data, if a non-empty
  2280. // volume is desired. This may be any local object from a non-empty API group (non
  2281. // core object) or a PersistentVolumeClaim object.
  2282. // When this field is specified, volume binding will only succeed if the type of
  2283. // the specified object matches some installed volume populator or dynamic
  2284. // provisioner.
  2285. // This field will replace the functionality of the DataSource field and as such
  2286. // if both fields are non-empty, they must have the same value. For backwards
  2287. // compatibility, both fields (DataSource and DataSourceRef) will be set to the same
  2288. // value automatically if one of them is empty and the other is non-empty.
  2289. // There are two important differences between DataSource and DataSourceRef:
  2290. // * While DataSource only allows two specific types of objects, DataSourceRef
  2291. // allows any non-core object, as well as PersistentVolumeClaim objects.
  2292. // * While DataSource ignores disallowed values (dropping them), DataSourceRef
  2293. // preserves all values, and generates an error if a disallowed value is
  2294. // specified.
  2295. // (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
  2296. // +optional
  2297. optional TypedLocalObjectReference dataSourceRef = 8;
  2298. }
  2299. // PersistentVolumeClaimStatus is the current status of a persistent volume claim.
  2300. message PersistentVolumeClaimStatus {
  2301. // Phase represents the current phase of PersistentVolumeClaim.
  2302. // +optional
  2303. optional string phase = 1;
  2304. // AccessModes contains the actual access modes the volume backing the PVC has.
  2305. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
  2306. // +optional
  2307. repeated string accessModes = 2;
  2308. // Represents the actual resources of the underlying volume.
  2309. // +optional
  2310. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3;
  2311. // Current Condition of persistent volume claim. If underlying persistent volume is being
  2312. // resized then the Condition will be set to 'ResizeStarted'.
  2313. // +optional
  2314. // +patchMergeKey=type
  2315. // +patchStrategy=merge
  2316. repeated PersistentVolumeClaimCondition conditions = 4;
  2317. // The storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may
  2318. // be larger than the actual capacity when a volume expansion operation is requested.
  2319. // For storage quota, the larger value from allocatedResources and PVC.spec.resources is used.
  2320. // If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.
  2321. // If a volume expansion capacity request is lowered, allocatedResources is only
  2322. // lowered if there are no expansion operations in progress and if the actual volume capacity
  2323. // is equal or lower than the requested capacity.
  2324. // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
  2325. // +featureGate=RecoverVolumeExpansionFailure
  2326. // +optional
  2327. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 5;
  2328. // ResizeStatus stores status of resize operation.
  2329. // ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty
  2330. // string by resize controller or kubelet.
  2331. // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
  2332. // +featureGate=RecoverVolumeExpansionFailure
  2333. // +optional
  2334. optional string resizeStatus = 6;
  2335. }
  2336. // PersistentVolumeClaimTemplate is used to produce
  2337. // PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
  2338. message PersistentVolumeClaimTemplate {
  2339. // May contain labels and annotations that will be copied into the PVC
  2340. // when creating it. No other fields are allowed and will be rejected during
  2341. // validation.
  2342. //
  2343. // +optional
  2344. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  2345. // The specification for the PersistentVolumeClaim. The entire content is
  2346. // copied unchanged into the PVC that gets created from this
  2347. // template. The same fields as in a PersistentVolumeClaim
  2348. // are also valid here.
  2349. optional PersistentVolumeClaimSpec spec = 2;
  2350. }
  2351. // PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.
  2352. // This volume finds the bound PV and mounts that volume for the pod. A
  2353. // PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another
  2354. // type of volume that is owned by someone else (the system).
  2355. message PersistentVolumeClaimVolumeSource {
  2356. // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
  2357. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  2358. optional string claimName = 1;
  2359. // Will force the ReadOnly setting in VolumeMounts.
  2360. // Default false.
  2361. // +optional
  2362. optional bool readOnly = 2;
  2363. }
  2364. // PersistentVolumeList is a list of PersistentVolume items.
  2365. message PersistentVolumeList {
  2366. // Standard list metadata.
  2367. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  2368. // +optional
  2369. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  2370. // List of persistent volumes.
  2371. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
  2372. repeated PersistentVolume items = 2;
  2373. }
  2374. // PersistentVolumeSource is similar to VolumeSource but meant for the
  2375. // administrator who creates PVs. Exactly one of its members must be set.
  2376. message PersistentVolumeSource {
  2377. // GCEPersistentDisk represents a GCE Disk resource that is attached to a
  2378. // kubelet's host machine and then exposed to the pod. Provisioned by an admin.
  2379. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  2380. // +optional
  2381. optional GCEPersistentDiskVolumeSource gcePersistentDisk = 1;
  2382. // AWSElasticBlockStore represents an AWS Disk resource that is attached to a
  2383. // kubelet's host machine and then exposed to the pod.
  2384. // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  2385. // +optional
  2386. optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2;
  2387. // HostPath represents a directory on the host.
  2388. // Provisioned by a developer or tester.
  2389. // This is useful for single-node development and testing only!
  2390. // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
  2391. // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  2392. // +optional
  2393. optional HostPathVolumeSource hostPath = 3;
  2394. // Glusterfs represents a Glusterfs volume that is attached to a host and
  2395. // exposed to the pod. Provisioned by an admin.
  2396. // More info: https://examples.k8s.io/volumes/glusterfs/README.md
  2397. // +optional
  2398. optional GlusterfsPersistentVolumeSource glusterfs = 4;
  2399. // NFS represents an NFS mount on the host. Provisioned by an admin.
  2400. // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  2401. // +optional
  2402. optional NFSVolumeSource nfs = 5;
  2403. // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
  2404. // More info: https://examples.k8s.io/volumes/rbd/README.md
  2405. // +optional
  2406. optional RBDPersistentVolumeSource rbd = 6;
  2407. // ISCSI represents an ISCSI Disk resource that is attached to a
  2408. // kubelet's host machine and then exposed to the pod. Provisioned by an admin.
  2409. // +optional
  2410. optional ISCSIPersistentVolumeSource iscsi = 7;
  2411. // Cinder represents a cinder volume attached and mounted on kubelets host machine.
  2412. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  2413. // +optional
  2414. optional CinderPersistentVolumeSource cinder = 8;
  2415. // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
  2416. // +optional
  2417. optional CephFSPersistentVolumeSource cephfs = 9;
  2418. // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
  2419. // +optional
  2420. optional FCVolumeSource fc = 10;
  2421. // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
  2422. // +optional
  2423. optional FlockerVolumeSource flocker = 11;
  2424. // FlexVolume represents a generic volume resource that is
  2425. // provisioned/attached using an exec based plugin.
  2426. // +optional
  2427. optional FlexPersistentVolumeSource flexVolume = 12;
  2428. // AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
  2429. // +optional
  2430. optional AzureFilePersistentVolumeSource azureFile = 13;
  2431. // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
  2432. // +optional
  2433. optional VsphereVirtualDiskVolumeSource vsphereVolume = 14;
  2434. // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
  2435. // +optional
  2436. optional QuobyteVolumeSource quobyte = 15;
  2437. // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
  2438. // +optional
  2439. optional AzureDiskVolumeSource azureDisk = 16;
  2440. // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
  2441. optional PhotonPersistentDiskVolumeSource photonPersistentDisk = 17;
  2442. // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
  2443. // +optional
  2444. optional PortworxVolumeSource portworxVolume = 18;
  2445. // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
  2446. // +optional
  2447. optional ScaleIOPersistentVolumeSource scaleIO = 19;
  2448. // Local represents directly-attached storage with node affinity
  2449. // +optional
  2450. optional LocalVolumeSource local = 20;
  2451. // StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
  2452. // More info: https://examples.k8s.io/volumes/storageos/README.md
  2453. // +optional
  2454. optional StorageOSPersistentVolumeSource storageos = 21;
  2455. // CSI represents storage that is handled by an external CSI driver (Beta feature).
  2456. // +optional
  2457. optional CSIPersistentVolumeSource csi = 22;
  2458. }
  2459. // PersistentVolumeSpec is the specification of a persistent volume.
  2460. message PersistentVolumeSpec {
  2461. // A description of the persistent volume's resources and capacity.
  2462. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
  2463. // +optional
  2464. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
  2465. // The actual volume backing the persistent volume.
  2466. optional PersistentVolumeSource persistentVolumeSource = 2;
  2467. // AccessModes contains all ways the volume can be mounted.
  2468. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
  2469. // +optional
  2470. repeated string accessModes = 3;
  2471. // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
  2472. // Expected to be non-nil when bound.
  2473. // claim.VolumeName is the authoritative bind between PV and PVC.
  2474. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
  2475. // +optional
  2476. optional ObjectReference claimRef = 4;
  2477. // What happens to a persistent volume when released from its claim.
  2478. // Valid options are Retain (default for manually created PersistentVolumes), Delete (default
  2479. // for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
  2480. // Recycle must be supported by the volume plugin underlying this PersistentVolume.
  2481. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
  2482. // +optional
  2483. optional string persistentVolumeReclaimPolicy = 5;
  2484. // Name of StorageClass to which this persistent volume belongs. Empty value
  2485. // means that this volume does not belong to any StorageClass.
  2486. // +optional
  2487. optional string storageClassName = 6;
  2488. // A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
  2489. // simply fail if one is invalid.
  2490. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
  2491. // +optional
  2492. repeated string mountOptions = 7;
  2493. // volumeMode defines if a volume is intended to be used with a formatted filesystem
  2494. // or to remain in raw block state. Value of Filesystem is implied when not included in spec.
  2495. // +optional
  2496. optional string volumeMode = 8;
  2497. // NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
  2498. // This field influences the scheduling of pods that use this volume.
  2499. // +optional
  2500. optional VolumeNodeAffinity nodeAffinity = 9;
  2501. }
  2502. // PersistentVolumeStatus is the current status of a persistent volume.
  2503. message PersistentVolumeStatus {
  2504. // Phase indicates if a volume is available, bound to a claim, or released by a claim.
  2505. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
  2506. // +optional
  2507. optional string phase = 1;
  2508. // A human-readable message indicating details about why the volume is in this state.
  2509. // +optional
  2510. optional string message = 2;
  2511. // Reason is a brief CamelCase string that describes any failure and is meant
  2512. // for machine parsing and tidy display in the CLI.
  2513. // +optional
  2514. optional string reason = 3;
  2515. }
  2516. // Represents a Photon Controller persistent disk resource.
  2517. message PhotonPersistentDiskVolumeSource {
  2518. // ID that identifies Photon Controller persistent disk
  2519. optional string pdID = 1;
  2520. // Filesystem type to mount.
  2521. // Must be a filesystem type supported by the host operating system.
  2522. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  2523. optional string fsType = 2;
  2524. }
  2525. // Pod is a collection of containers that can run on a host. This resource is created
  2526. // by clients and scheduled onto hosts.
  2527. message Pod {
  2528. // Standard object's metadata.
  2529. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  2530. // +optional
  2531. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  2532. // Specification of the desired behavior of the pod.
  2533. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  2534. // +optional
  2535. optional PodSpec spec = 2;
  2536. // Most recently observed status of the pod.
  2537. // This data may not be up to date.
  2538. // Populated by the system.
  2539. // Read-only.
  2540. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  2541. // +optional
  2542. optional PodStatus status = 3;
  2543. }
  2544. // Pod affinity is a group of inter pod affinity scheduling rules.
  2545. message PodAffinity {
  2546. // If the affinity requirements specified by this field are not met at
  2547. // scheduling time, the pod will not be scheduled onto the node.
  2548. // If the affinity requirements specified by this field cease to be met
  2549. // at some point during pod execution (e.g. due to a pod label update), the
  2550. // system may or may not try to eventually evict the pod from its node.
  2551. // When there are multiple elements, the lists of nodes corresponding to each
  2552. // podAffinityTerm are intersected, i.e. all terms must be satisfied.
  2553. // +optional
  2554. repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
  2555. // The scheduler will prefer to schedule pods to nodes that satisfy
  2556. // the affinity expressions specified by this field, but it may choose
  2557. // a node that violates one or more of the expressions. The node that is
  2558. // most preferred is the one with the greatest sum of weights, i.e.
  2559. // for each node that meets all of the scheduling requirements (resource
  2560. // request, requiredDuringScheduling affinity expressions, etc.),
  2561. // compute a sum by iterating through the elements of this field and adding
  2562. // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
  2563. // node(s) with the highest sum are the most preferred.
  2564. // +optional
  2565. repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
  2566. }
  2567. // Defines a set of pods (namely those matching the labelSelector
  2568. // relative to the given namespace(s)) that this pod should be
  2569. // co-located (affinity) or not co-located (anti-affinity) with,
  2570. // where co-located is defined as running on a node whose value of
  2571. // the label with key <topologyKey> matches that of any node on which
  2572. // a pod of the set of pods is running
  2573. message PodAffinityTerm {
  2574. // A label query over a set of resources, in this case pods.
  2575. // +optional
  2576. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
  2577. // namespaces specifies a static list of namespace names that the term applies to.
  2578. // The term is applied to the union of the namespaces listed in this field
  2579. // and the ones selected by namespaceSelector.
  2580. // null or empty namespaces list and null namespaceSelector means "this pod's namespace"
  2581. // +optional
  2582. repeated string namespaces = 2;
  2583. // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
  2584. // the labelSelector in the specified namespaces, where co-located is defined as running on a node
  2585. // whose value of the label with key topologyKey matches that of any node on which any of the
  2586. // selected pods is running.
  2587. // Empty topologyKey is not allowed.
  2588. optional string topologyKey = 3;
  2589. // A label query over the set of namespaces that the term applies to.
  2590. // The term is applied to the union of the namespaces selected by this field
  2591. // and the ones listed in the namespaces field.
  2592. // null selector and null or empty namespaces list means "this pod's namespace".
  2593. // An empty selector ({}) matches all namespaces.
  2594. // This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
  2595. // +optional
  2596. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
  2597. }
  2598. // Pod anti affinity is a group of inter pod anti affinity scheduling rules.
  2599. message PodAntiAffinity {
  2600. // If the anti-affinity requirements specified by this field are not met at
  2601. // scheduling time, the pod will not be scheduled onto the node.
  2602. // If the anti-affinity requirements specified by this field cease to be met
  2603. // at some point during pod execution (e.g. due to a pod label update), the
  2604. // system may or may not try to eventually evict the pod from its node.
  2605. // When there are multiple elements, the lists of nodes corresponding to each
  2606. // podAffinityTerm are intersected, i.e. all terms must be satisfied.
  2607. // +optional
  2608. repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
  2609. // The scheduler will prefer to schedule pods to nodes that satisfy
  2610. // the anti-affinity expressions specified by this field, but it may choose
  2611. // a node that violates one or more of the expressions. The node that is
  2612. // most preferred is the one with the greatest sum of weights, i.e.
  2613. // for each node that meets all of the scheduling requirements (resource
  2614. // request, requiredDuringScheduling anti-affinity expressions, etc.),
  2615. // compute a sum by iterating through the elements of this field and adding
  2616. // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
  2617. // node(s) with the highest sum are the most preferred.
  2618. // +optional
  2619. repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
  2620. }
  2621. // PodAttachOptions is the query options to a Pod's remote attach call.
  2622. // ---
  2623. // TODO: merge w/ PodExecOptions below for stdin, stdout, etc
  2624. // and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
  2625. message PodAttachOptions {
  2626. // Stdin if true, redirects the standard input stream of the pod for this call.
  2627. // Defaults to false.
  2628. // +optional
  2629. optional bool stdin = 1;
  2630. // Stdout if true indicates that stdout is to be redirected for the attach call.
  2631. // Defaults to true.
  2632. // +optional
  2633. optional bool stdout = 2;
  2634. // Stderr if true indicates that stderr is to be redirected for the attach call.
  2635. // Defaults to true.
  2636. // +optional
  2637. optional bool stderr = 3;
  2638. // TTY if true indicates that a tty will be allocated for the attach call.
  2639. // This is passed through the container runtime so the tty
  2640. // is allocated on the worker node by the container runtime.
  2641. // Defaults to false.
  2642. // +optional
  2643. optional bool tty = 4;
  2644. // The container in which to execute the command.
  2645. // Defaults to only container if there is only one container in the pod.
  2646. // +optional
  2647. optional string container = 5;
  2648. }
  2649. // PodCondition contains details for the current condition of this pod.
  2650. message PodCondition {
  2651. // Type is the type of the condition.
  2652. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
  2653. optional string type = 1;
  2654. // Status is the status of the condition.
  2655. // Can be True, False, Unknown.
  2656. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
  2657. optional string status = 2;
  2658. // Last time we probed the condition.
  2659. // +optional
  2660. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3;
  2661. // Last time the condition transitioned from one status to another.
  2662. // +optional
  2663. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
  2664. // Unique, one-word, CamelCase reason for the condition's last transition.
  2665. // +optional
  2666. optional string reason = 5;
  2667. // Human-readable message indicating details about last transition.
  2668. // +optional
  2669. optional string message = 6;
  2670. }
  2671. // PodDNSConfig defines the DNS parameters of a pod in addition to
  2672. // those generated from DNSPolicy.
  2673. message PodDNSConfig {
  2674. // A list of DNS name server IP addresses.
  2675. // This will be appended to the base nameservers generated from DNSPolicy.
  2676. // Duplicated nameservers will be removed.
  2677. // +optional
  2678. repeated string nameservers = 1;
  2679. // A list of DNS search domains for host-name lookup.
  2680. // This will be appended to the base search paths generated from DNSPolicy.
  2681. // Duplicated search paths will be removed.
  2682. // +optional
  2683. repeated string searches = 2;
  2684. // A list of DNS resolver options.
  2685. // This will be merged with the base options generated from DNSPolicy.
  2686. // Duplicated entries will be removed. Resolution options given in Options
  2687. // will override those that appear in the base DNSPolicy.
  2688. // +optional
  2689. repeated PodDNSConfigOption options = 3;
  2690. }
  2691. // PodDNSConfigOption defines DNS resolver options of a pod.
  2692. message PodDNSConfigOption {
  2693. // Required.
  2694. optional string name = 1;
  2695. // +optional
  2696. optional string value = 2;
  2697. }
  2698. // PodExecOptions is the query options to a Pod's remote exec call.
  2699. // ---
  2700. // TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
  2701. // and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
  2702. message PodExecOptions {
  2703. // Redirect the standard input stream of the pod for this call.
  2704. // Defaults to false.
  2705. // +optional
  2706. optional bool stdin = 1;
  2707. // Redirect the standard output stream of the pod for this call.
  2708. // +optional
  2709. optional bool stdout = 2;
  2710. // Redirect the standard error stream of the pod for this call.
  2711. // +optional
  2712. optional bool stderr = 3;
  2713. // TTY if true indicates that a tty will be allocated for the exec call.
  2714. // Defaults to false.
  2715. // +optional
  2716. optional bool tty = 4;
  2717. // Container in which to execute the command.
  2718. // Defaults to only container if there is only one container in the pod.
  2719. // +optional
  2720. optional string container = 5;
  2721. // Command is the remote command to execute. argv array. Not executed within a shell.
  2722. repeated string command = 6;
  2723. }
  2724. // IP address information for entries in the (plural) PodIPs field.
  2725. // Each entry includes:
  2726. // IP: An IP address allocated to the pod. Routable at least within the cluster.
  2727. message PodIP {
  2728. // ip is an IP address (IPv4 or IPv6) assigned to the pod
  2729. optional string ip = 1;
  2730. }
  2731. // PodList is a list of Pods.
  2732. message PodList {
  2733. // Standard list metadata.
  2734. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  2735. // +optional
  2736. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  2737. // List of pods.
  2738. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
  2739. repeated Pod items = 2;
  2740. }
  2741. // PodLogOptions is the query options for a Pod's logs REST call.
  2742. message PodLogOptions {
  2743. // The container for which to stream logs. Defaults to only container if there is one container in the pod.
  2744. // +optional
  2745. optional string container = 1;
  2746. // Follow the log stream of the pod. Defaults to false.
  2747. // +optional
  2748. optional bool follow = 2;
  2749. // Return previous terminated container logs. Defaults to false.
  2750. // +optional
  2751. optional bool previous = 3;
  2752. // A relative time in seconds before the current time from which to show logs. If this value
  2753. // precedes the time a pod was started, only logs since the pod start will be returned.
  2754. // If this value is in the future, no logs will be returned.
  2755. // Only one of sinceSeconds or sinceTime may be specified.
  2756. // +optional
  2757. optional int64 sinceSeconds = 4;
  2758. // An RFC3339 timestamp from which to show logs. If this value
  2759. // precedes the time a pod was started, only logs since the pod start will be returned.
  2760. // If this value is in the future, no logs will be returned.
  2761. // Only one of sinceSeconds or sinceTime may be specified.
  2762. // +optional
  2763. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
  2764. // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
  2765. // of log output. Defaults to false.
  2766. // +optional
  2767. optional bool timestamps = 6;
  2768. // If set, the number of lines from the end of the logs to show. If not specified,
  2769. // logs are shown from the creation of the container or sinceSeconds or sinceTime
  2770. // +optional
  2771. optional int64 tailLines = 7;
  2772. // If set, the number of bytes to read from the server before terminating the
  2773. // log output. This may not display a complete final line of logging, and may return
  2774. // slightly more or slightly less than the specified limit.
  2775. // +optional
  2776. optional int64 limitBytes = 8;
  2777. // insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
  2778. // serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver
  2779. // and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
  2780. // kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
  2781. // connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
  2782. // the actual log data coming from the real kubelet).
  2783. // +optional
  2784. optional bool insecureSkipTLSVerifyBackend = 9;
  2785. }
  2786. // PodOS defines the OS parameters of a pod.
  2787. message PodOS {
  2788. // Name is the name of the operating system. The currently supported values are linux and windows.
  2789. // Additional value may be defined in future and can be one of:
  2790. // https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
  2791. // Clients should expect to handle additional values and treat unrecognized values in this field as os: null
  2792. optional string name = 1;
  2793. }
  2794. // PodPortForwardOptions is the query options to a Pod's port forward call
  2795. // when using WebSockets.
  2796. // The `port` query parameter must specify the port or
  2797. // ports (comma separated) to forward over.
  2798. // Port forwarding over SPDY does not use these options. It requires the port
  2799. // to be passed in the `port` header as part of request.
  2800. message PodPortForwardOptions {
  2801. // List of ports to forward
  2802. // Required when using WebSockets
  2803. // +optional
  2804. repeated int32 ports = 1;
  2805. }
  2806. // PodProxyOptions is the query options to a Pod's proxy call.
  2807. message PodProxyOptions {
  2808. // Path is the URL path to use for the current proxy request to pod.
  2809. // +optional
  2810. optional string path = 1;
  2811. }
  2812. // PodReadinessGate contains the reference to a pod condition
  2813. message PodReadinessGate {
  2814. // ConditionType refers to a condition in the pod's condition list with matching type.
  2815. optional string conditionType = 1;
  2816. }
  2817. // PodSecurityContext holds pod-level security attributes and common container settings.
  2818. // Some fields are also present in container.securityContext. Field values of
  2819. // container.securityContext take precedence over field values of PodSecurityContext.
  2820. message PodSecurityContext {
  2821. // The SELinux context to be applied to all containers.
  2822. // If unspecified, the container runtime will allocate a random SELinux context for each
  2823. // container. May also be set in SecurityContext. If set in
  2824. // both SecurityContext and PodSecurityContext, the value specified in SecurityContext
  2825. // takes precedence for that container.
  2826. // Note that this field cannot be set when spec.os.name is windows.
  2827. // +optional
  2828. optional SELinuxOptions seLinuxOptions = 1;
  2829. // The Windows specific settings applied to all containers.
  2830. // If unspecified, the options within a container's SecurityContext will be used.
  2831. // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
  2832. // Note that this field cannot be set when spec.os.name is linux.
  2833. // +optional
  2834. optional WindowsSecurityContextOptions windowsOptions = 8;
  2835. // The UID to run the entrypoint of the container process.
  2836. // Defaults to user specified in image metadata if unspecified.
  2837. // May also be set in SecurityContext. If set in both SecurityContext and
  2838. // PodSecurityContext, the value specified in SecurityContext takes precedence
  2839. // for that container.
  2840. // Note that this field cannot be set when spec.os.name is windows.
  2841. // +optional
  2842. optional int64 runAsUser = 2;
  2843. // The GID to run the entrypoint of the container process.
  2844. // Uses runtime default if unset.
  2845. // May also be set in SecurityContext. If set in both SecurityContext and
  2846. // PodSecurityContext, the value specified in SecurityContext takes precedence
  2847. // for that container.
  2848. // Note that this field cannot be set when spec.os.name is windows.
  2849. // +optional
  2850. optional int64 runAsGroup = 6;
  2851. // Indicates that the container must run as a non-root user.
  2852. // If true, the Kubelet will validate the image at runtime to ensure that it
  2853. // does not run as UID 0 (root) and fail to start the container if it does.
  2854. // If unset or false, no such validation will be performed.
  2855. // May also be set in SecurityContext. If set in both SecurityContext and
  2856. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  2857. // +optional
  2858. optional bool runAsNonRoot = 3;
  2859. // A list of groups applied to the first process run in each container, in addition
  2860. // to the container's primary GID. If unspecified, no groups will be added to
  2861. // any container.
  2862. // Note that this field cannot be set when spec.os.name is windows.
  2863. // +optional
  2864. repeated int64 supplementalGroups = 4;
  2865. // A special supplemental group that applies to all containers in a pod.
  2866. // Some volume types allow the Kubelet to change the ownership of that volume
  2867. // to be owned by the pod:
  2868. //
  2869. // 1. The owning GID will be the FSGroup
  2870. // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
  2871. // 3. The permission bits are OR'd with rw-rw----
  2872. //
  2873. // If unset, the Kubelet will not modify the ownership and permissions of any volume.
  2874. // Note that this field cannot be set when spec.os.name is windows.
  2875. // +optional
  2876. optional int64 fsGroup = 5;
  2877. // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
  2878. // sysctls (by the container runtime) might fail to launch.
  2879. // Note that this field cannot be set when spec.os.name is windows.
  2880. // +optional
  2881. repeated Sysctl sysctls = 7;
  2882. // fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
  2883. // before being exposed inside Pod. This field will only apply to
  2884. // volume types which support fsGroup based ownership(and permissions).
  2885. // It will have no effect on ephemeral volume types such as: secret, configmaps
  2886. // and emptydir.
  2887. // Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
  2888. // Note that this field cannot be set when spec.os.name is windows.
  2889. // +optional
  2890. optional string fsGroupChangePolicy = 9;
  2891. // The seccomp options to use by the containers in this pod.
  2892. // Note that this field cannot be set when spec.os.name is windows.
  2893. // +optional
  2894. optional SeccompProfile seccompProfile = 10;
  2895. }
  2896. // Describes the class of pods that should avoid this node.
  2897. // Exactly one field should be set.
  2898. message PodSignature {
  2899. // Reference to controller whose pods should avoid this node.
  2900. // +optional
  2901. optional k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1;
  2902. }
  2903. // PodSpec is a description of a pod.
  2904. message PodSpec {
  2905. // List of volumes that can be mounted by containers belonging to the pod.
  2906. // More info: https://kubernetes.io/docs/concepts/storage/volumes
  2907. // +optional
  2908. // +patchMergeKey=name
  2909. // +patchStrategy=merge,retainKeys
  2910. repeated Volume volumes = 1;
  2911. // List of initialization containers belonging to the pod.
  2912. // Init containers are executed in order prior to containers being started. If any
  2913. // init container fails, the pod is considered to have failed and is handled according
  2914. // to its restartPolicy. The name for an init container or normal container must be
  2915. // unique among all containers.
  2916. // Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
  2917. // The resourceRequirements of an init container are taken into account during scheduling
  2918. // by finding the highest request/limit for each resource type, and then using the max of
  2919. // of that value or the sum of the normal containers. Limits are applied to init containers
  2920. // in a similar fashion.
  2921. // Init containers cannot currently be added or removed.
  2922. // Cannot be updated.
  2923. // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
  2924. // +patchMergeKey=name
  2925. // +patchStrategy=merge
  2926. repeated Container initContainers = 20;
  2927. // List of containers belonging to the pod.
  2928. // Containers cannot currently be added or removed.
  2929. // There must be at least one container in a Pod.
  2930. // Cannot be updated.
  2931. // +patchMergeKey=name
  2932. // +patchStrategy=merge
  2933. repeated Container containers = 2;
  2934. // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
  2935. // pod to perform user-initiated actions such as debugging. This list cannot be specified when
  2936. // creating a pod, and it cannot be modified by updating the pod spec. In order to add an
  2937. // ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
  2938. // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
  2939. // +optional
  2940. // +patchMergeKey=name
  2941. // +patchStrategy=merge
  2942. repeated EphemeralContainer ephemeralContainers = 34;
  2943. // Restart policy for all containers within the pod.
  2944. // One of Always, OnFailure, Never.
  2945. // Default to Always.
  2946. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
  2947. // +optional
  2948. optional string restartPolicy = 3;
  2949. // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
  2950. // Value must be non-negative integer. The value zero indicates stop immediately via
  2951. // the kill signal (no opportunity to shut down).
  2952. // If this value is nil, the default grace period will be used instead.
  2953. // The grace period is the duration in seconds after the processes running in the pod are sent
  2954. // a termination signal and the time when the processes are forcibly halted with a kill signal.
  2955. // Set this value longer than the expected cleanup time for your process.
  2956. // Defaults to 30 seconds.
  2957. // +optional
  2958. optional int64 terminationGracePeriodSeconds = 4;
  2959. // Optional duration in seconds the pod may be active on the node relative to
  2960. // StartTime before the system will actively try to mark it failed and kill associated containers.
  2961. // Value must be a positive integer.
  2962. // +optional
  2963. optional int64 activeDeadlineSeconds = 5;
  2964. // Set DNS policy for the pod.
  2965. // Defaults to "ClusterFirst".
  2966. // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
  2967. // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
  2968. // To have DNS options set along with hostNetwork, you have to specify DNS policy
  2969. // explicitly to 'ClusterFirstWithHostNet'.
  2970. // +optional
  2971. optional string dnsPolicy = 6;
  2972. // NodeSelector is a selector which must be true for the pod to fit on a node.
  2973. // Selector which must match a node's labels for the pod to be scheduled on that node.
  2974. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
  2975. // +optional
  2976. // +mapType=atomic
  2977. map<string, string> nodeSelector = 7;
  2978. // ServiceAccountName is the name of the ServiceAccount to use to run this pod.
  2979. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  2980. // +optional
  2981. optional string serviceAccountName = 8;
  2982. // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
  2983. // Deprecated: Use serviceAccountName instead.
  2984. // +k8s:conversion-gen=false
  2985. // +optional
  2986. optional string serviceAccount = 9;
  2987. // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
  2988. // +optional
  2989. optional bool automountServiceAccountToken = 21;
  2990. // NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
  2991. // the scheduler simply schedules this pod onto that node, assuming that it fits resource
  2992. // requirements.
  2993. // +optional
  2994. optional string nodeName = 10;
  2995. // Host networking requested for this pod. Use the host's network namespace.
  2996. // If this option is set, the ports that will be used must be specified.
  2997. // Default to false.
  2998. // +k8s:conversion-gen=false
  2999. // +optional
  3000. optional bool hostNetwork = 11;
  3001. // Use the host's pid namespace.
  3002. // Optional: Default to false.
  3003. // +k8s:conversion-gen=false
  3004. // +optional
  3005. optional bool hostPID = 12;
  3006. // Use the host's ipc namespace.
  3007. // Optional: Default to false.
  3008. // +k8s:conversion-gen=false
  3009. // +optional
  3010. optional bool hostIPC = 13;
  3011. // Share a single process namespace between all of the containers in a pod.
  3012. // When this is set containers will be able to view and signal processes from other containers
  3013. // in the same pod, and the first process in each container will not be assigned PID 1.
  3014. // HostPID and ShareProcessNamespace cannot both be set.
  3015. // Optional: Default to false.
  3016. // +k8s:conversion-gen=false
  3017. // +optional
  3018. optional bool shareProcessNamespace = 27;
  3019. // SecurityContext holds pod-level security attributes and common container settings.
  3020. // Optional: Defaults to empty. See type description for default values of each field.
  3021. // +optional
  3022. optional PodSecurityContext securityContext = 14;
  3023. // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
  3024. // If specified, these secrets will be passed to individual puller implementations for them to use. For example,
  3025. // in the case of docker, only DockerConfig type secrets are honored.
  3026. // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
  3027. // +optional
  3028. // +patchMergeKey=name
  3029. // +patchStrategy=merge
  3030. repeated LocalObjectReference imagePullSecrets = 15;
  3031. // Specifies the hostname of the Pod
  3032. // If not specified, the pod's hostname will be set to a system-defined value.
  3033. // +optional
  3034. optional string hostname = 16;
  3035. // If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
  3036. // If not specified, the pod will not have a domainname at all.
  3037. // +optional
  3038. optional string subdomain = 17;
  3039. // If specified, the pod's scheduling constraints
  3040. // +optional
  3041. optional Affinity affinity = 18;
  3042. // If specified, the pod will be dispatched by specified scheduler.
  3043. // If not specified, the pod will be dispatched by default scheduler.
  3044. // +optional
  3045. optional string schedulerName = 19;
  3046. // If specified, the pod's tolerations.
  3047. // +optional
  3048. repeated Toleration tolerations = 22;
  3049. // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
  3050. // file if specified. This is only valid for non-hostNetwork pods.
  3051. // +optional
  3052. // +patchMergeKey=ip
  3053. // +patchStrategy=merge
  3054. repeated HostAlias hostAliases = 23;
  3055. // If specified, indicates the pod's priority. "system-node-critical" and
  3056. // "system-cluster-critical" are two special keywords which indicate the
  3057. // highest priorities with the former being the highest priority. Any other
  3058. // name must be defined by creating a PriorityClass object with that name.
  3059. // If not specified, the pod priority will be default or zero if there is no
  3060. // default.
  3061. // +optional
  3062. optional string priorityClassName = 24;
  3063. // The priority value. Various system components use this field to find the
  3064. // priority of the pod. When Priority Admission Controller is enabled, it
  3065. // prevents users from setting this field. The admission controller populates
  3066. // this field from PriorityClassName.
  3067. // The higher the value, the higher the priority.
  3068. // +optional
  3069. optional int32 priority = 25;
  3070. // Specifies the DNS parameters of a pod.
  3071. // Parameters specified here will be merged to the generated DNS
  3072. // configuration based on DNSPolicy.
  3073. // +optional
  3074. optional PodDNSConfig dnsConfig = 26;
  3075. // If specified, all readiness gates will be evaluated for pod readiness.
  3076. // A pod is ready when all its containers are ready AND
  3077. // all conditions specified in the readiness gates have status equal to "True"
  3078. // More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
  3079. // +optional
  3080. repeated PodReadinessGate readinessGates = 28;
  3081. // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
  3082. // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.
  3083. // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
  3084. // empty definition that uses the default runtime handler.
  3085. // More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
  3086. // This is a beta feature as of Kubernetes v1.14.
  3087. // +optional
  3088. optional string runtimeClassName = 29;
  3089. // EnableServiceLinks indicates whether information about services should be injected into pod's
  3090. // environment variables, matching the syntax of Docker links.
  3091. // Optional: Defaults to true.
  3092. // +optional
  3093. optional bool enableServiceLinks = 30;
  3094. // PreemptionPolicy is the Policy for preempting pods with lower priority.
  3095. // One of Never, PreemptLowerPriority.
  3096. // Defaults to PreemptLowerPriority if unset.
  3097. // This field is beta-level, gated by the NonPreemptingPriority feature-gate.
  3098. // +optional
  3099. optional string preemptionPolicy = 31;
  3100. // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
  3101. // This field will be autopopulated at admission time by the RuntimeClass admission controller. If
  3102. // the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
  3103. // The RuntimeClass admission controller will reject Pod create requests which have the overhead already
  3104. // set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
  3105. // defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
  3106. // More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
  3107. // This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
  3108. // +optional
  3109. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32;
  3110. // TopologySpreadConstraints describes how a group of pods ought to spread across topology
  3111. // domains. Scheduler will schedule pods in a way which abides by the constraints.
  3112. // All topologySpreadConstraints are ANDed.
  3113. // +optional
  3114. // +patchMergeKey=topologyKey
  3115. // +patchStrategy=merge
  3116. // +listType=map
  3117. // +listMapKey=topologyKey
  3118. // +listMapKey=whenUnsatisfiable
  3119. repeated TopologySpreadConstraint topologySpreadConstraints = 33;
  3120. // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
  3121. // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
  3122. // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
  3123. // If a pod does not have FQDN, this has no effect.
  3124. // Default to false.
  3125. // +optional
  3126. optional bool setHostnameAsFQDN = 35;
  3127. // Specifies the OS of the containers in the pod.
  3128. // Some pod and container fields are restricted if this is set.
  3129. //
  3130. // If the OS field is set to linux, the following fields must be unset:
  3131. // -securityContext.windowsOptions
  3132. //
  3133. // If the OS field is set to windows, following fields must be unset:
  3134. // - spec.hostPID
  3135. // - spec.hostIPC
  3136. // - spec.securityContext.seLinuxOptions
  3137. // - spec.securityContext.seccompProfile
  3138. // - spec.securityContext.fsGroup
  3139. // - spec.securityContext.fsGroupChangePolicy
  3140. // - spec.securityContext.sysctls
  3141. // - spec.shareProcessNamespace
  3142. // - spec.securityContext.runAsUser
  3143. // - spec.securityContext.runAsGroup
  3144. // - spec.securityContext.supplementalGroups
  3145. // - spec.containers[*].securityContext.seLinuxOptions
  3146. // - spec.containers[*].securityContext.seccompProfile
  3147. // - spec.containers[*].securityContext.capabilities
  3148. // - spec.containers[*].securityContext.readOnlyRootFilesystem
  3149. // - spec.containers[*].securityContext.privileged
  3150. // - spec.containers[*].securityContext.allowPrivilegeEscalation
  3151. // - spec.containers[*].securityContext.procMount
  3152. // - spec.containers[*].securityContext.runAsUser
  3153. // - spec.containers[*].securityContext.runAsGroup
  3154. // +optional
  3155. // This is an alpha field and requires the IdentifyPodOS feature
  3156. optional PodOS os = 36;
  3157. }
  3158. // PodStatus represents information about the status of a pod. Status may trail the actual
  3159. // state of a system, especially if the node that hosts the pod cannot contact the control
  3160. // plane.
  3161. message PodStatus {
  3162. // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
  3163. // The conditions array, the reason and message fields, and the individual container status
  3164. // arrays contain more detail about the pod's status.
  3165. // There are five possible phase values:
  3166. //
  3167. // Pending: The pod has been accepted by the Kubernetes system, but one or more of the
  3168. // container images has not been created. This includes time before being scheduled as
  3169. // well as time spent downloading images over the network, which could take a while.
  3170. // Running: The pod has been bound to a node, and all of the containers have been created.
  3171. // At least one container is still running, or is in the process of starting or restarting.
  3172. // Succeeded: All containers in the pod have terminated in success, and will not be restarted.
  3173. // Failed: All containers in the pod have terminated, and at least one container has
  3174. // terminated in failure. The container either exited with non-zero status or was terminated
  3175. // by the system.
  3176. // Unknown: For some reason the state of the pod could not be obtained, typically due to an
  3177. // error in communicating with the host of the pod.
  3178. //
  3179. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
  3180. // +optional
  3181. optional string phase = 1;
  3182. // Current service state of pod.
  3183. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
  3184. // +optional
  3185. // +patchMergeKey=type
  3186. // +patchStrategy=merge
  3187. repeated PodCondition conditions = 2;
  3188. // A human readable message indicating details about why the pod is in this condition.
  3189. // +optional
  3190. optional string message = 3;
  3191. // A brief CamelCase message indicating details about why the pod is in this state.
  3192. // e.g. 'Evicted'
  3193. // +optional
  3194. optional string reason = 4;
  3195. // nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
  3196. // scheduled right away as preemption victims receive their graceful termination periods.
  3197. // This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
  3198. // to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
  3199. // give the resources on this node to a higher priority pod that is created after preemption.
  3200. // As a result, this field may be different than PodSpec.nodeName when the pod is
  3201. // scheduled.
  3202. // +optional
  3203. optional string nominatedNodeName = 11;
  3204. // IP address of the host to which the pod is assigned. Empty if not yet scheduled.
  3205. // +optional
  3206. optional string hostIP = 5;
  3207. // IP address allocated to the pod. Routable at least within the cluster.
  3208. // Empty if not yet allocated.
  3209. // +optional
  3210. optional string podIP = 6;
  3211. // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
  3212. // match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
  3213. // is empty if no IPs have been allocated yet.
  3214. // +optional
  3215. // +patchStrategy=merge
  3216. // +patchMergeKey=ip
  3217. repeated PodIP podIPs = 12;
  3218. // RFC 3339 date and time at which the object was acknowledged by the Kubelet.
  3219. // This is before the Kubelet pulled the container image(s) for the pod.
  3220. // +optional
  3221. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7;
  3222. // The list has one entry per init container in the manifest. The most recent successful
  3223. // init container will have ready = true, the most recently started container will have
  3224. // startTime set.
  3225. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
  3226. repeated ContainerStatus initContainerStatuses = 10;
  3227. // The list has one entry per container in the manifest. Each entry is currently the output
  3228. // of `docker inspect`.
  3229. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
  3230. // +optional
  3231. repeated ContainerStatus containerStatuses = 8;
  3232. // The Quality of Service (QOS) classification assigned to the pod based on resource requirements
  3233. // See PodQOSClass type for available QOS classes
  3234. // More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
  3235. // +optional
  3236. optional string qosClass = 9;
  3237. // Status for any ephemeral containers that have run in this pod.
  3238. // This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
  3239. // +optional
  3240. repeated ContainerStatus ephemeralContainerStatuses = 13;
  3241. }
  3242. // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
  3243. message PodStatusResult {
  3244. // Standard object's metadata.
  3245. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3246. // +optional
  3247. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3248. // Most recently observed status of the pod.
  3249. // This data may not be up to date.
  3250. // Populated by the system.
  3251. // Read-only.
  3252. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3253. // +optional
  3254. optional PodStatus status = 2;
  3255. }
  3256. // PodTemplate describes a template for creating copies of a predefined pod.
  3257. message PodTemplate {
  3258. // Standard object's metadata.
  3259. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3260. // +optional
  3261. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3262. // Template defines the pods that will be created from this pod template.
  3263. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3264. // +optional
  3265. optional PodTemplateSpec template = 2;
  3266. }
  3267. // PodTemplateList is a list of PodTemplates.
  3268. message PodTemplateList {
  3269. // Standard list metadata.
  3270. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  3271. // +optional
  3272. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  3273. // List of pod templates
  3274. repeated PodTemplate items = 2;
  3275. }
  3276. // PodTemplateSpec describes the data a pod should have when created from a template
  3277. message PodTemplateSpec {
  3278. // Standard object's metadata.
  3279. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3280. // +optional
  3281. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3282. // Specification of the desired behavior of the pod.
  3283. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3284. // +optional
  3285. optional PodSpec spec = 2;
  3286. }
  3287. message PortStatus {
  3288. // Port is the port number of the service port of which status is recorded here
  3289. optional int32 port = 1;
  3290. // Protocol is the protocol of the service port of which status is recorded here
  3291. // The supported values are: "TCP", "UDP", "SCTP"
  3292. optional string protocol = 2;
  3293. // Error is to record the problem with the service port
  3294. // The format of the error shall comply with the following rules:
  3295. // - built-in error values shall be specified in this file and those shall use
  3296. // CamelCase names
  3297. // - cloud provider specific error values must have names that comply with the
  3298. // format foo.example.com/CamelCase.
  3299. // ---
  3300. // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
  3301. // +optional
  3302. // +kubebuilder:validation:Required
  3303. // +kubebuilder:validation: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])$`
  3304. // +kubebuilder:validation:MaxLength=316
  3305. optional string error = 3;
  3306. }
  3307. // PortworxVolumeSource represents a Portworx volume resource.
  3308. message PortworxVolumeSource {
  3309. // VolumeID uniquely identifies a Portworx volume
  3310. optional string volumeID = 1;
  3311. // FSType represents the filesystem type to mount
  3312. // Must be a filesystem type supported by the host operating system.
  3313. // Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
  3314. optional string fsType = 2;
  3315. // Defaults to false (read/write). ReadOnly here will force
  3316. // the ReadOnly setting in VolumeMounts.
  3317. // +optional
  3318. optional bool readOnly = 3;
  3319. }
  3320. // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
  3321. // +k8s:openapi-gen=false
  3322. message Preconditions {
  3323. // Specifies the target UID.
  3324. // +optional
  3325. optional string uid = 1;
  3326. }
  3327. // Describes a class of pods that should avoid this node.
  3328. message PreferAvoidPodsEntry {
  3329. // The class of pods.
  3330. optional PodSignature podSignature = 1;
  3331. // Time at which this entry was added to the list.
  3332. // +optional
  3333. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2;
  3334. // (brief) reason why this entry was added to the list.
  3335. // +optional
  3336. optional string reason = 3;
  3337. // Human readable message indicating why this entry was added to the list.
  3338. // +optional
  3339. optional string message = 4;
  3340. }
  3341. // An empty preferred scheduling term matches all objects with implicit weight 0
  3342. // (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
  3343. message PreferredSchedulingTerm {
  3344. // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
  3345. optional int32 weight = 1;
  3346. // A node selector term, associated with the corresponding weight.
  3347. optional NodeSelectorTerm preference = 2;
  3348. }
  3349. // Probe describes a health check to be performed against a container to determine whether it is
  3350. // alive or ready to receive traffic.
  3351. message Probe {
  3352. // The action taken to determine the health of a container
  3353. optional ProbeHandler handler = 1;
  3354. // Number of seconds after the container has started before liveness probes are initiated.
  3355. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
  3356. // +optional
  3357. optional int32 initialDelaySeconds = 2;
  3358. // Number of seconds after which the probe times out.
  3359. // Defaults to 1 second. Minimum value is 1.
  3360. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
  3361. // +optional
  3362. optional int32 timeoutSeconds = 3;
  3363. // How often (in seconds) to perform the probe.
  3364. // Default to 10 seconds. Minimum value is 1.
  3365. // +optional
  3366. optional int32 periodSeconds = 4;
  3367. // Minimum consecutive successes for the probe to be considered successful after having failed.
  3368. // Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
  3369. // +optional
  3370. optional int32 successThreshold = 5;
  3371. // Minimum consecutive failures for the probe to be considered failed after having succeeded.
  3372. // Defaults to 3. Minimum value is 1.
  3373. // +optional
  3374. optional int32 failureThreshold = 6;
  3375. // Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
  3376. // The grace period is the duration in seconds after the processes running in the pod are sent
  3377. // a termination signal and the time when the processes are forcibly halted with a kill signal.
  3378. // Set this value longer than the expected cleanup time for your process.
  3379. // If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
  3380. // value overrides the value provided by the pod spec.
  3381. // Value must be non-negative integer. The value zero indicates stop immediately via
  3382. // the kill signal (no opportunity to shut down).
  3383. // This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
  3384. // Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
  3385. // +optional
  3386. optional int64 terminationGracePeriodSeconds = 7;
  3387. }
  3388. // ProbeHandler defines a specific action that should be taken in a probe.
  3389. // One and only one of the fields must be specified.
  3390. message ProbeHandler {
  3391. // Exec specifies the action to take.
  3392. // +optional
  3393. optional ExecAction exec = 1;
  3394. // HTTPGet specifies the http request to perform.
  3395. // +optional
  3396. optional HTTPGetAction httpGet = 2;
  3397. // TCPSocket specifies an action involving a TCP port.
  3398. // +optional
  3399. optional TCPSocketAction tcpSocket = 3;
  3400. // GRPC specifies an action involving a GRPC port.
  3401. // This is an alpha field and requires enabling GRPCContainerProbe feature gate.
  3402. // +featureGate=GRPCContainerProbe
  3403. // +optional
  3404. optional GRPCAction grpc = 4;
  3405. }
  3406. // Represents a projected volume source
  3407. message ProjectedVolumeSource {
  3408. // list of volume projections
  3409. // +optional
  3410. repeated VolumeProjection sources = 1;
  3411. // Mode bits used to set permissions on created files by default.
  3412. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3413. // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
  3414. // Directories within the path are not affected by this setting.
  3415. // This might be in conflict with other options that affect the file
  3416. // mode, like fsGroup, and the result can be other mode bits set.
  3417. // +optional
  3418. optional int32 defaultMode = 2;
  3419. }
  3420. // Represents a Quobyte mount that lasts the lifetime of a pod.
  3421. // Quobyte volumes do not support ownership management or SELinux relabeling.
  3422. message QuobyteVolumeSource {
  3423. // Registry represents a single or multiple Quobyte Registry services
  3424. // specified as a string as host:port pair (multiple entries are separated with commas)
  3425. // which acts as the central registry for volumes
  3426. optional string registry = 1;
  3427. // Volume is a string that references an already created Quobyte volume by name.
  3428. optional string volume = 2;
  3429. // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
  3430. // Defaults to false.
  3431. // +optional
  3432. optional bool readOnly = 3;
  3433. // User to map volume access to
  3434. // Defaults to serivceaccount user
  3435. // +optional
  3436. optional string user = 4;
  3437. // Group to map volume access to
  3438. // Default is no group
  3439. // +optional
  3440. optional string group = 5;
  3441. // Tenant owning the given Quobyte volume in the Backend
  3442. // Used with dynamically provisioned Quobyte volumes, value is set by the plugin
  3443. // +optional
  3444. optional string tenant = 6;
  3445. }
  3446. // Represents a Rados Block Device mount that lasts the lifetime of a pod.
  3447. // RBD volumes support ownership management and SELinux relabeling.
  3448. message RBDPersistentVolumeSource {
  3449. // A collection of Ceph monitors.
  3450. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3451. repeated string monitors = 1;
  3452. // The rados image name.
  3453. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3454. optional string image = 2;
  3455. // Filesystem type of the volume that you want to mount.
  3456. // Tip: Ensure that the filesystem type is supported by the host operating system.
  3457. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  3458. // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
  3459. // TODO: how do we prevent errors in the filesystem from compromising the machine
  3460. // +optional
  3461. optional string fsType = 3;
  3462. // The rados pool name.
  3463. // Default is rbd.
  3464. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3465. // +optional
  3466. optional string pool = 4;
  3467. // The rados user name.
  3468. // Default is admin.
  3469. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3470. // +optional
  3471. optional string user = 5;
  3472. // Keyring is the path to key ring for RBDUser.
  3473. // Default is /etc/ceph/keyring.
  3474. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3475. // +optional
  3476. optional string keyring = 6;
  3477. // SecretRef is name of the authentication secret for RBDUser. If provided
  3478. // overrides keyring.
  3479. // Default is nil.
  3480. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3481. // +optional
  3482. optional SecretReference secretRef = 7;
  3483. // ReadOnly here will force the ReadOnly setting in VolumeMounts.
  3484. // Defaults to false.
  3485. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3486. // +optional
  3487. optional bool readOnly = 8;
  3488. }
  3489. // Represents a Rados Block Device mount that lasts the lifetime of a pod.
  3490. // RBD volumes support ownership management and SELinux relabeling.
  3491. message RBDVolumeSource {
  3492. // A collection of Ceph monitors.
  3493. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3494. repeated string monitors = 1;
  3495. // The rados image name.
  3496. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3497. optional string image = 2;
  3498. // Filesystem type of the volume that you want to mount.
  3499. // Tip: Ensure that the filesystem type is supported by the host operating system.
  3500. // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  3501. // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
  3502. // TODO: how do we prevent errors in the filesystem from compromising the machine
  3503. // +optional
  3504. optional string fsType = 3;
  3505. // The rados pool name.
  3506. // Default is rbd.
  3507. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3508. // +optional
  3509. optional string pool = 4;
  3510. // The rados user name.
  3511. // Default is admin.
  3512. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3513. // +optional
  3514. optional string user = 5;
  3515. // Keyring is the path to key ring for RBDUser.
  3516. // Default is /etc/ceph/keyring.
  3517. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3518. // +optional
  3519. optional string keyring = 6;
  3520. // SecretRef is name of the authentication secret for RBDUser. If provided
  3521. // overrides keyring.
  3522. // Default is nil.
  3523. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3524. // +optional
  3525. optional LocalObjectReference secretRef = 7;
  3526. // ReadOnly here will force the ReadOnly setting in VolumeMounts.
  3527. // Defaults to false.
  3528. // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
  3529. // +optional
  3530. optional bool readOnly = 8;
  3531. }
  3532. // RangeAllocation is not a public type.
  3533. message RangeAllocation {
  3534. // Standard object's metadata.
  3535. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3536. // +optional
  3537. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3538. // Range is string that identifies the range represented by 'data'.
  3539. optional string range = 2;
  3540. // Data is a bit array containing all allocated addresses in the previous segment.
  3541. optional bytes data = 3;
  3542. }
  3543. // ReplicationController represents the configuration of a replication controller.
  3544. message ReplicationController {
  3545. // If the Labels of a ReplicationController are empty, they are defaulted to
  3546. // be the same as the Pod(s) that the replication controller manages.
  3547. // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3548. // +optional
  3549. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3550. // Spec defines the specification of the desired behavior of the replication controller.
  3551. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3552. // +optional
  3553. optional ReplicationControllerSpec spec = 2;
  3554. // Status is the most recently observed status of the replication controller.
  3555. // This data may be out of date by some window of time.
  3556. // Populated by the system.
  3557. // Read-only.
  3558. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3559. // +optional
  3560. optional ReplicationControllerStatus status = 3;
  3561. }
  3562. // ReplicationControllerCondition describes the state of a replication controller at a certain point.
  3563. message ReplicationControllerCondition {
  3564. // Type of replication controller condition.
  3565. optional string type = 1;
  3566. // Status of the condition, one of True, False, Unknown.
  3567. optional string status = 2;
  3568. // The last time the condition transitioned from one status to another.
  3569. // +optional
  3570. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
  3571. // The reason for the condition's last transition.
  3572. // +optional
  3573. optional string reason = 4;
  3574. // A human readable message indicating details about the transition.
  3575. // +optional
  3576. optional string message = 5;
  3577. }
  3578. // ReplicationControllerList is a collection of replication controllers.
  3579. message ReplicationControllerList {
  3580. // Standard list metadata.
  3581. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  3582. // +optional
  3583. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  3584. // List of replication controllers.
  3585. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
  3586. repeated ReplicationController items = 2;
  3587. }
  3588. // ReplicationControllerSpec is the specification of a replication controller.
  3589. message ReplicationControllerSpec {
  3590. // Replicas is the number of desired replicas.
  3591. // This is a pointer to distinguish between explicit zero and unspecified.
  3592. // Defaults to 1.
  3593. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
  3594. // +optional
  3595. optional int32 replicas = 1;
  3596. // Minimum number of seconds for which a newly created pod should be ready
  3597. // without any of its container crashing, for it to be considered available.
  3598. // Defaults to 0 (pod will be considered available as soon as it is ready)
  3599. // +optional
  3600. optional int32 minReadySeconds = 4;
  3601. // Selector is a label query over pods that should match the Replicas count.
  3602. // If Selector is empty, it is defaulted to the labels present on the Pod template.
  3603. // Label keys and values that must match in order to be controlled by this replication
  3604. // controller, if empty defaulted to labels on Pod template.
  3605. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  3606. // +optional
  3607. // +mapType=atomic
  3608. map<string, string> selector = 2;
  3609. // Template is the object that describes the pod that will be created if
  3610. // insufficient replicas are detected. This takes precedence over a TemplateRef.
  3611. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
  3612. // +optional
  3613. optional PodTemplateSpec template = 3;
  3614. }
  3615. // ReplicationControllerStatus represents the current status of a replication
  3616. // controller.
  3617. message ReplicationControllerStatus {
  3618. // Replicas is the most recently oberved number of replicas.
  3619. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
  3620. optional int32 replicas = 1;
  3621. // The number of pods that have labels matching the labels of the pod template of the replication controller.
  3622. // +optional
  3623. optional int32 fullyLabeledReplicas = 2;
  3624. // The number of ready replicas for this replication controller.
  3625. // +optional
  3626. optional int32 readyReplicas = 4;
  3627. // The number of available replicas (ready for at least minReadySeconds) for this replication controller.
  3628. // +optional
  3629. optional int32 availableReplicas = 5;
  3630. // ObservedGeneration reflects the generation of the most recently observed replication controller.
  3631. // +optional
  3632. optional int64 observedGeneration = 3;
  3633. // Represents the latest available observations of a replication controller's current state.
  3634. // +optional
  3635. // +patchMergeKey=type
  3636. // +patchStrategy=merge
  3637. repeated ReplicationControllerCondition conditions = 6;
  3638. }
  3639. // ResourceFieldSelector represents container resources (cpu, memory) and their output format
  3640. // +structType=atomic
  3641. message ResourceFieldSelector {
  3642. // Container name: required for volumes, optional for env vars
  3643. // +optional
  3644. optional string containerName = 1;
  3645. // Required: resource to select
  3646. optional string resource = 2;
  3647. // Specifies the output format of the exposed resources, defaults to "1"
  3648. // +optional
  3649. optional k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3;
  3650. }
  3651. // ResourceQuota sets aggregate quota restrictions enforced per namespace
  3652. message ResourceQuota {
  3653. // Standard object's metadata.
  3654. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3655. // +optional
  3656. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3657. // Spec defines the desired quota.
  3658. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3659. // +optional
  3660. optional ResourceQuotaSpec spec = 2;
  3661. // Status defines the actual enforced quota and its current usage.
  3662. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  3663. // +optional
  3664. optional ResourceQuotaStatus status = 3;
  3665. }
  3666. // ResourceQuotaList is a list of ResourceQuota items.
  3667. message ResourceQuotaList {
  3668. // Standard list metadata.
  3669. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  3670. // +optional
  3671. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  3672. // Items is a list of ResourceQuota objects.
  3673. // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
  3674. repeated ResourceQuota items = 2;
  3675. }
  3676. // ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
  3677. message ResourceQuotaSpec {
  3678. // hard is the set of desired hard limits for each named resource.
  3679. // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
  3680. // +optional
  3681. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1;
  3682. // A collection of filters that must match each object tracked by a quota.
  3683. // If not specified, the quota matches all objects.
  3684. // +optional
  3685. repeated string scopes = 2;
  3686. // scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
  3687. // but expressed using ScopeSelectorOperator in combination with possible values.
  3688. // For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
  3689. // +optional
  3690. optional ScopeSelector scopeSelector = 3;
  3691. }
  3692. // ResourceQuotaStatus defines the enforced hard limits and observed use.
  3693. message ResourceQuotaStatus {
  3694. // Hard is the set of enforced hard limits for each named resource.
  3695. // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
  3696. // +optional
  3697. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1;
  3698. // Used is the current observed total usage of the resource in the namespace.
  3699. // +optional
  3700. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2;
  3701. }
  3702. // ResourceRequirements describes the compute resource requirements.
  3703. message ResourceRequirements {
  3704. // Limits describes the maximum amount of compute resources allowed.
  3705. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  3706. // +optional
  3707. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1;
  3708. // Requests describes the minimum amount of compute resources required.
  3709. // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
  3710. // otherwise to an implementation-defined value.
  3711. // More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  3712. // +optional
  3713. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2;
  3714. }
  3715. // SELinuxOptions are the labels to be applied to the container
  3716. message SELinuxOptions {
  3717. // User is a SELinux user label that applies to the container.
  3718. // +optional
  3719. optional string user = 1;
  3720. // Role is a SELinux role label that applies to the container.
  3721. // +optional
  3722. optional string role = 2;
  3723. // Type is a SELinux type label that applies to the container.
  3724. // +optional
  3725. optional string type = 3;
  3726. // Level is SELinux level label that applies to the container.
  3727. // +optional
  3728. optional string level = 4;
  3729. }
  3730. // ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
  3731. message ScaleIOPersistentVolumeSource {
  3732. // The host address of the ScaleIO API Gateway.
  3733. optional string gateway = 1;
  3734. // The name of the storage system as configured in ScaleIO.
  3735. optional string system = 2;
  3736. // SecretRef references to the secret for ScaleIO user and other
  3737. // sensitive information. If this is not provided, Login operation will fail.
  3738. optional SecretReference secretRef = 3;
  3739. // Flag to enable/disable SSL communication with Gateway, default false
  3740. // +optional
  3741. optional bool sslEnabled = 4;
  3742. // The name of the ScaleIO Protection Domain for the configured storage.
  3743. // +optional
  3744. optional string protectionDomain = 5;
  3745. // The ScaleIO Storage Pool associated with the protection domain.
  3746. // +optional
  3747. optional string storagePool = 6;
  3748. // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
  3749. // Default is ThinProvisioned.
  3750. // +optional
  3751. optional string storageMode = 7;
  3752. // The name of a volume already created in the ScaleIO system
  3753. // that is associated with this volume source.
  3754. optional string volumeName = 8;
  3755. // Filesystem type to mount.
  3756. // Must be a filesystem type supported by the host operating system.
  3757. // Ex. "ext4", "xfs", "ntfs".
  3758. // Default is "xfs"
  3759. // +optional
  3760. optional string fsType = 9;
  3761. // Defaults to false (read/write). ReadOnly here will force
  3762. // the ReadOnly setting in VolumeMounts.
  3763. // +optional
  3764. optional bool readOnly = 10;
  3765. }
  3766. // ScaleIOVolumeSource represents a persistent ScaleIO volume
  3767. message ScaleIOVolumeSource {
  3768. // The host address of the ScaleIO API Gateway.
  3769. optional string gateway = 1;
  3770. // The name of the storage system as configured in ScaleIO.
  3771. optional string system = 2;
  3772. // SecretRef references to the secret for ScaleIO user and other
  3773. // sensitive information. If this is not provided, Login operation will fail.
  3774. optional LocalObjectReference secretRef = 3;
  3775. // Flag to enable/disable SSL communication with Gateway, default false
  3776. // +optional
  3777. optional bool sslEnabled = 4;
  3778. // The name of the ScaleIO Protection Domain for the configured storage.
  3779. // +optional
  3780. optional string protectionDomain = 5;
  3781. // The ScaleIO Storage Pool associated with the protection domain.
  3782. // +optional
  3783. optional string storagePool = 6;
  3784. // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
  3785. // Default is ThinProvisioned.
  3786. // +optional
  3787. optional string storageMode = 7;
  3788. // The name of a volume already created in the ScaleIO system
  3789. // that is associated with this volume source.
  3790. optional string volumeName = 8;
  3791. // Filesystem type to mount.
  3792. // Must be a filesystem type supported by the host operating system.
  3793. // Ex. "ext4", "xfs", "ntfs".
  3794. // Default is "xfs".
  3795. // +optional
  3796. optional string fsType = 9;
  3797. // Defaults to false (read/write). ReadOnly here will force
  3798. // the ReadOnly setting in VolumeMounts.
  3799. // +optional
  3800. optional bool readOnly = 10;
  3801. }
  3802. // A scope selector represents the AND of the selectors represented
  3803. // by the scoped-resource selector requirements.
  3804. // +structType=atomic
  3805. message ScopeSelector {
  3806. // A list of scope selector requirements by scope of the resources.
  3807. // +optional
  3808. repeated ScopedResourceSelectorRequirement matchExpressions = 1;
  3809. }
  3810. // A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator
  3811. // that relates the scope name and values.
  3812. message ScopedResourceSelectorRequirement {
  3813. // The name of the scope that the selector applies to.
  3814. optional string scopeName = 1;
  3815. // Represents a scope's relationship to a set of values.
  3816. // Valid operators are In, NotIn, Exists, DoesNotExist.
  3817. optional string operator = 2;
  3818. // An array of string values. If the operator is In or NotIn,
  3819. // the values array must be non-empty. If the operator is Exists or DoesNotExist,
  3820. // the values array must be empty.
  3821. // This array is replaced during a strategic merge patch.
  3822. // +optional
  3823. repeated string values = 3;
  3824. }
  3825. // SeccompProfile defines a pod/container's seccomp profile settings.
  3826. // Only one profile source may be set.
  3827. // +union
  3828. message SeccompProfile {
  3829. // type indicates which kind of seccomp profile will be applied.
  3830. // Valid options are:
  3831. //
  3832. // Localhost - a profile defined in a file on the node should be used.
  3833. // RuntimeDefault - the container runtime default profile should be used.
  3834. // Unconfined - no profile should be applied.
  3835. // +unionDiscriminator
  3836. optional string type = 1;
  3837. // localhostProfile indicates a profile defined in a file on the node should be used.
  3838. // The profile must be preconfigured on the node to work.
  3839. // Must be a descending path, relative to the kubelet's configured seccomp profile location.
  3840. // Must only be set if type is "Localhost".
  3841. // +optional
  3842. optional string localhostProfile = 2;
  3843. }
  3844. // Secret holds secret data of a certain type. The total bytes of the values in
  3845. // the Data field must be less than MaxSecretSize bytes.
  3846. message Secret {
  3847. // Standard object's metadata.
  3848. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  3849. // +optional
  3850. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  3851. // Immutable, if set to true, ensures that data stored in the Secret cannot
  3852. // be updated (only object metadata can be modified).
  3853. // If not set to true, the field can be modified at any time.
  3854. // Defaulted to nil.
  3855. // +optional
  3856. optional bool immutable = 5;
  3857. // Data contains the secret data. Each key must consist of alphanumeric
  3858. // characters, '-', '_' or '.'. The serialized form of the secret data is a
  3859. // base64 encoded string, representing the arbitrary (possibly non-string)
  3860. // data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
  3861. // +optional
  3862. map<string, bytes> data = 2;
  3863. // stringData allows specifying non-binary secret data in string form.
  3864. // It is provided as a write-only input field for convenience.
  3865. // All keys and values are merged into the data field on write, overwriting any existing values.
  3866. // The stringData field is never output when reading from the API.
  3867. // +k8s:conversion-gen=false
  3868. // +optional
  3869. map<string, string> stringData = 4;
  3870. // Used to facilitate programmatic handling of secret data.
  3871. // More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
  3872. // +optional
  3873. optional string type = 3;
  3874. }
  3875. // SecretEnvSource selects a Secret to populate the environment
  3876. // variables with.
  3877. //
  3878. // The contents of the target Secret's Data field will represent the
  3879. // key-value pairs as environment variables.
  3880. message SecretEnvSource {
  3881. // The Secret to select from.
  3882. optional LocalObjectReference localObjectReference = 1;
  3883. // Specify whether the Secret must be defined
  3884. // +optional
  3885. optional bool optional = 2;
  3886. }
  3887. // SecretKeySelector selects a key of a Secret.
  3888. // +structType=atomic
  3889. message SecretKeySelector {
  3890. // The name of the secret in the pod's namespace to select from.
  3891. optional LocalObjectReference localObjectReference = 1;
  3892. // The key of the secret to select from. Must be a valid secret key.
  3893. optional string key = 2;
  3894. // Specify whether the Secret or its key must be defined
  3895. // +optional
  3896. optional bool optional = 3;
  3897. }
  3898. // SecretList is a list of Secret.
  3899. message SecretList {
  3900. // Standard list metadata.
  3901. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  3902. // +optional
  3903. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  3904. // Items is a list of secret objects.
  3905. // More info: https://kubernetes.io/docs/concepts/configuration/secret
  3906. repeated Secret items = 2;
  3907. }
  3908. // Adapts a secret into a projected volume.
  3909. //
  3910. // The contents of the target Secret's Data field will be presented in a
  3911. // projected volume as files using the keys in the Data field as the file names.
  3912. // Note that this is identical to a secret volume source without the default
  3913. // mode.
  3914. message SecretProjection {
  3915. optional LocalObjectReference localObjectReference = 1;
  3916. // If unspecified, each key-value pair in the Data field of the referenced
  3917. // Secret will be projected into the volume as a file whose name is the
  3918. // key and content is the value. If specified, the listed keys will be
  3919. // projected into the specified paths, and unlisted keys will not be
  3920. // present. If a key is specified which is not present in the Secret,
  3921. // the volume setup will error unless it is marked optional. Paths must be
  3922. // relative and may not contain the '..' path or start with '..'.
  3923. // +optional
  3924. repeated KeyToPath items = 2;
  3925. // Specify whether the Secret or its key must be defined
  3926. // +optional
  3927. optional bool optional = 4;
  3928. }
  3929. // SecretReference represents a Secret Reference. It has enough information to retrieve secret
  3930. // in any namespace
  3931. // +structType=atomic
  3932. message SecretReference {
  3933. // Name is unique within a namespace to reference a secret resource.
  3934. // +optional
  3935. optional string name = 1;
  3936. // Namespace defines the space within which the secret name must be unique.
  3937. // +optional
  3938. optional string namespace = 2;
  3939. }
  3940. // Adapts a Secret into a volume.
  3941. //
  3942. // The contents of the target Secret's Data field will be presented in a volume
  3943. // as files using the keys in the Data field as the file names.
  3944. // Secret volumes support ownership management and SELinux relabeling.
  3945. message SecretVolumeSource {
  3946. // Name of the secret in the pod's namespace to use.
  3947. // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
  3948. // +optional
  3949. optional string secretName = 1;
  3950. // If unspecified, each key-value pair in the Data field of the referenced
  3951. // Secret will be projected into the volume as a file whose name is the
  3952. // key and content is the value. If specified, the listed keys will be
  3953. // projected into the specified paths, and unlisted keys will not be
  3954. // present. If a key is specified which is not present in the Secret,
  3955. // the volume setup will error unless it is marked optional. Paths must be
  3956. // relative and may not contain the '..' path or start with '..'.
  3957. // +optional
  3958. repeated KeyToPath items = 2;
  3959. // Optional: mode bits used to set permissions on created files by default.
  3960. // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
  3961. // YAML accepts both octal and decimal values, JSON requires decimal values
  3962. // for mode bits. Defaults to 0644.
  3963. // Directories within the path are not affected by this setting.
  3964. // This might be in conflict with other options that affect the file
  3965. // mode, like fsGroup, and the result can be other mode bits set.
  3966. // +optional
  3967. optional int32 defaultMode = 3;
  3968. // Specify whether the Secret or its keys must be defined
  3969. // +optional
  3970. optional bool optional = 4;
  3971. }
  3972. // SecurityContext holds security configuration that will be applied to a container.
  3973. // Some fields are present in both SecurityContext and PodSecurityContext. When both
  3974. // are set, the values in SecurityContext take precedence.
  3975. message SecurityContext {
  3976. // The capabilities to add/drop when running containers.
  3977. // Defaults to the default set of capabilities granted by the container runtime.
  3978. // Note that this field cannot be set when spec.os.name is windows.
  3979. // +optional
  3980. optional Capabilities capabilities = 1;
  3981. // Run container in privileged mode.
  3982. // Processes in privileged containers are essentially equivalent to root on the host.
  3983. // Defaults to false.
  3984. // Note that this field cannot be set when spec.os.name is windows.
  3985. // +optional
  3986. optional bool privileged = 2;
  3987. // The SELinux context to be applied to the container.
  3988. // If unspecified, the container runtime will allocate a random SELinux context for each
  3989. // container. May also be set in PodSecurityContext. If set in both SecurityContext and
  3990. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  3991. // Note that this field cannot be set when spec.os.name is windows.
  3992. // +optional
  3993. optional SELinuxOptions seLinuxOptions = 3;
  3994. // The Windows specific settings applied to all containers.
  3995. // If unspecified, the options from the PodSecurityContext will be used.
  3996. // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
  3997. // Note that this field cannot be set when spec.os.name is linux.
  3998. // +optional
  3999. optional WindowsSecurityContextOptions windowsOptions = 10;
  4000. // The UID to run the entrypoint of the container process.
  4001. // Defaults to user specified in image metadata if unspecified.
  4002. // May also be set in PodSecurityContext. If set in both SecurityContext and
  4003. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  4004. // Note that this field cannot be set when spec.os.name is windows.
  4005. // +optional
  4006. optional int64 runAsUser = 4;
  4007. // The GID to run the entrypoint of the container process.
  4008. // Uses runtime default if unset.
  4009. // May also be set in PodSecurityContext. If set in both SecurityContext and
  4010. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  4011. // Note that this field cannot be set when spec.os.name is windows.
  4012. // +optional
  4013. optional int64 runAsGroup = 8;
  4014. // Indicates that the container must run as a non-root user.
  4015. // If true, the Kubelet will validate the image at runtime to ensure that it
  4016. // does not run as UID 0 (root) and fail to start the container if it does.
  4017. // If unset or false, no such validation will be performed.
  4018. // May also be set in PodSecurityContext. If set in both SecurityContext and
  4019. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  4020. // +optional
  4021. optional bool runAsNonRoot = 5;
  4022. // Whether this container has a read-only root filesystem.
  4023. // Default is false.
  4024. // Note that this field cannot be set when spec.os.name is windows.
  4025. // +optional
  4026. optional bool readOnlyRootFilesystem = 6;
  4027. // AllowPrivilegeEscalation controls whether a process can gain more
  4028. // privileges than its parent process. This bool directly controls if
  4029. // the no_new_privs flag will be set on the container process.
  4030. // AllowPrivilegeEscalation is true always when the container is:
  4031. // 1) run as Privileged
  4032. // 2) has CAP_SYS_ADMIN
  4033. // Note that this field cannot be set when spec.os.name is windows.
  4034. // +optional
  4035. optional bool allowPrivilegeEscalation = 7;
  4036. // procMount denotes the type of proc mount to use for the containers.
  4037. // The default is DefaultProcMount which uses the container runtime defaults for
  4038. // readonly paths and masked paths.
  4039. // This requires the ProcMountType feature flag to be enabled.
  4040. // Note that this field cannot be set when spec.os.name is windows.
  4041. // +optional
  4042. optional string procMount = 9;
  4043. // The seccomp options to use by this container. If seccomp options are
  4044. // provided at both the pod & container level, the container options
  4045. // override the pod options.
  4046. // Note that this field cannot be set when spec.os.name is windows.
  4047. // +optional
  4048. optional SeccompProfile seccompProfile = 11;
  4049. }
  4050. // SerializedReference is a reference to serialized object.
  4051. message SerializedReference {
  4052. // The reference to an object in the system.
  4053. // +optional
  4054. optional ObjectReference reference = 1;
  4055. }
  4056. // Service is a named abstraction of software service (for example, mysql) consisting of local port
  4057. // (for example 3306) that the proxy listens on, and the selector that determines which pods
  4058. // will answer requests sent through the proxy.
  4059. message Service {
  4060. // Standard object's metadata.
  4061. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  4062. // +optional
  4063. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  4064. // Spec defines the behavior of a service.
  4065. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  4066. // +optional
  4067. optional ServiceSpec spec = 2;
  4068. // Most recently observed status of the service.
  4069. // Populated by the system.
  4070. // Read-only.
  4071. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  4072. // +optional
  4073. optional ServiceStatus status = 3;
  4074. }
  4075. // ServiceAccount binds together:
  4076. // * a name, understood by users, and perhaps by peripheral systems, for an identity
  4077. // * a principal that can be authenticated and authorized
  4078. // * a set of secrets
  4079. message ServiceAccount {
  4080. // Standard object's metadata.
  4081. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  4082. // +optional
  4083. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  4084. // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
  4085. // More info: https://kubernetes.io/docs/concepts/configuration/secret
  4086. // +optional
  4087. // +patchMergeKey=name
  4088. // +patchStrategy=merge
  4089. repeated ObjectReference secrets = 2;
  4090. // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
  4091. // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
  4092. // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
  4093. // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
  4094. // +optional
  4095. repeated LocalObjectReference imagePullSecrets = 3;
  4096. // AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
  4097. // Can be overridden at the pod level.
  4098. // +optional
  4099. optional bool automountServiceAccountToken = 4;
  4100. }
  4101. // ServiceAccountList is a list of ServiceAccount objects
  4102. message ServiceAccountList {
  4103. // Standard list metadata.
  4104. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  4105. // +optional
  4106. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  4107. // List of ServiceAccounts.
  4108. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
  4109. repeated ServiceAccount items = 2;
  4110. }
  4111. // ServiceAccountTokenProjection represents a projected service account token
  4112. // volume. This projection can be used to insert a service account token into
  4113. // the pods runtime filesystem for use against APIs (Kubernetes API Server or
  4114. // otherwise).
  4115. message ServiceAccountTokenProjection {
  4116. // Audience is the intended audience of the token. A recipient of a token
  4117. // must identify itself with an identifier specified in the audience of the
  4118. // token, and otherwise should reject the token. The audience defaults to the
  4119. // identifier of the apiserver.
  4120. // +optional
  4121. optional string audience = 1;
  4122. // ExpirationSeconds is the requested duration of validity of the service
  4123. // account token. As the token approaches expiration, the kubelet volume
  4124. // plugin will proactively rotate the service account token. The kubelet will
  4125. // start trying to rotate the token if the token is older than 80 percent of
  4126. // its time to live or if the token is older than 24 hours.Defaults to 1 hour
  4127. // and must be at least 10 minutes.
  4128. // +optional
  4129. optional int64 expirationSeconds = 2;
  4130. // Path is the path relative to the mount point of the file to project the
  4131. // token into.
  4132. optional string path = 3;
  4133. }
  4134. // ServiceList holds a list of services.
  4135. message ServiceList {
  4136. // Standard list metadata.
  4137. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  4138. // +optional
  4139. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  4140. // List of services
  4141. repeated Service items = 2;
  4142. }
  4143. // ServicePort contains information on service's port.
  4144. message ServicePort {
  4145. // The name of this port within the service. This must be a DNS_LABEL.
  4146. // All ports within a ServiceSpec must have unique names. When considering
  4147. // the endpoints for a Service, this must match the 'name' field in the
  4148. // EndpointPort.
  4149. // Optional if only one ServicePort is defined on this service.
  4150. // +optional
  4151. optional string name = 1;
  4152. // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
  4153. // Default is TCP.
  4154. // +default="TCP"
  4155. // +optional
  4156. optional string protocol = 2;
  4157. // The application protocol for this port.
  4158. // This field follows standard Kubernetes label syntax.
  4159. // Un-prefixed names are reserved for IANA standard service names (as per
  4160. // RFC-6335 and http://www.iana.org/assignments/service-names).
  4161. // Non-standard protocols should use prefixed names such as
  4162. // mycompany.com/my-custom-protocol.
  4163. // +optional
  4164. optional string appProtocol = 6;
  4165. // The port that will be exposed by this service.
  4166. optional int32 port = 3;
  4167. // Number or name of the port to access on the pods targeted by the service.
  4168. // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
  4169. // If this is a string, it will be looked up as a named port in the
  4170. // target Pod's container ports. If this is not specified, the value
  4171. // of the 'port' field is used (an identity map).
  4172. // This field is ignored for services with clusterIP=None, and should be
  4173. // omitted or set equal to the 'port' field.
  4174. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
  4175. // +optional
  4176. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;
  4177. // The port on each node on which this service is exposed when type is
  4178. // NodePort or LoadBalancer. Usually assigned by the system. If a value is
  4179. // specified, in-range, and not in use it will be used, otherwise the
  4180. // operation will fail. If not specified, a port will be allocated if this
  4181. // Service requires one. If this field is specified when creating a
  4182. // Service which does not need it, creation will fail. This field will be
  4183. // wiped when updating a Service to no longer need it (e.g. changing type
  4184. // from NodePort to ClusterIP).
  4185. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  4186. // +optional
  4187. optional int32 nodePort = 5;
  4188. }
  4189. // ServiceProxyOptions is the query options to a Service's proxy call.
  4190. message ServiceProxyOptions {
  4191. // Path is the part of URLs that include service endpoints, suffixes,
  4192. // and parameters to use for the current proxy request to service.
  4193. // For example, the whole request URL is
  4194. // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
  4195. // Path is _search?q=user:kimchy.
  4196. // +optional
  4197. optional string path = 1;
  4198. }
  4199. // ServiceSpec describes the attributes that a user creates on a service.
  4200. message ServiceSpec {
  4201. // The list of ports that are exposed by this service.
  4202. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  4203. // +patchMergeKey=port
  4204. // +patchStrategy=merge
  4205. // +listType=map
  4206. // +listMapKey=port
  4207. // +listMapKey=protocol
  4208. repeated ServicePort ports = 1;
  4209. // Route service traffic to pods with label keys and values matching this
  4210. // selector. If empty or not present, the service is assumed to have an
  4211. // external process managing its endpoints, which Kubernetes will not
  4212. // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
  4213. // Ignored if type is ExternalName.
  4214. // More info: https://kubernetes.io/docs/concepts/services-networking/service/
  4215. // +optional
  4216. // +mapType=atomic
  4217. map<string, string> selector = 2;
  4218. // clusterIP is the IP address of the service and is usually assigned
  4219. // randomly. If an address is specified manually, is in-range (as per
  4220. // system configuration), and is not in use, it will be allocated to the
  4221. // service; otherwise creation of the service will fail. This field may not
  4222. // be changed through updates unless the type field is also being changed
  4223. // to ExternalName (which requires this field to be blank) or the type
  4224. // field is being changed from ExternalName (in which case this field may
  4225. // optionally be specified, as describe above). Valid values are "None",
  4226. // empty string (""), or a valid IP address. Setting this to "None" makes a
  4227. // "headless service" (no virtual IP), which is useful when direct endpoint
  4228. // connections are preferred and proxying is not required. Only applies to
  4229. // types ClusterIP, NodePort, and LoadBalancer. If this field is specified
  4230. // when creating a Service of type ExternalName, creation will fail. This
  4231. // field will be wiped when updating a Service to type ExternalName.
  4232. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  4233. // +optional
  4234. optional string clusterIP = 3;
  4235. // ClusterIPs is a list of IP addresses assigned to this service, and are
  4236. // usually assigned randomly. If an address is specified manually, is
  4237. // in-range (as per system configuration), and is not in use, it will be
  4238. // allocated to the service; otherwise creation of the service will fail.
  4239. // This field may not be changed through updates unless the type field is
  4240. // also being changed to ExternalName (which requires this field to be
  4241. // empty) or the type field is being changed from ExternalName (in which
  4242. // case this field may optionally be specified, as describe above). Valid
  4243. // values are "None", empty string (""), or a valid IP address. Setting
  4244. // this to "None" makes a "headless service" (no virtual IP), which is
  4245. // useful when direct endpoint connections are preferred and proxying is
  4246. // not required. Only applies to types ClusterIP, NodePort, and
  4247. // LoadBalancer. If this field is specified when creating a Service of type
  4248. // ExternalName, creation will fail. This field will be wiped when updating
  4249. // a Service to type ExternalName. If this field is not specified, it will
  4250. // be initialized from the clusterIP field. If this field is specified,
  4251. // clients must ensure that clusterIPs[0] and clusterIP have the same
  4252. // value.
  4253. //
  4254. // This field may hold a maximum of two entries (dual-stack IPs, in either order).
  4255. // These IPs must correspond to the values of the ipFamilies field. Both
  4256. // clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
  4257. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  4258. // +listType=atomic
  4259. // +optional
  4260. repeated string clusterIPs = 18;
  4261. // type determines how the Service is exposed. Defaults to ClusterIP. Valid
  4262. // options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
  4263. // "ClusterIP" allocates a cluster-internal IP address for load-balancing
  4264. // to endpoints. Endpoints are determined by the selector or if that is not
  4265. // specified, by manual construction of an Endpoints object or
  4266. // EndpointSlice objects. If clusterIP is "None", no virtual IP is
  4267. // allocated and the endpoints are published as a set of endpoints rather
  4268. // than a virtual IP.
  4269. // "NodePort" builds on ClusterIP and allocates a port on every node which
  4270. // routes to the same endpoints as the clusterIP.
  4271. // "LoadBalancer" builds on NodePort and creates an external load-balancer
  4272. // (if supported in the current cloud) which routes to the same endpoints
  4273. // as the clusterIP.
  4274. // "ExternalName" aliases this service to the specified externalName.
  4275. // Several other fields do not apply to ExternalName services.
  4276. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
  4277. // +optional
  4278. optional string type = 4;
  4279. // externalIPs is a list of IP addresses for which nodes in the cluster
  4280. // will also accept traffic for this service. These IPs are not managed by
  4281. // Kubernetes. The user is responsible for ensuring that traffic arrives
  4282. // at a node with this IP. A common example is external load-balancers
  4283. // that are not part of the Kubernetes system.
  4284. // +optional
  4285. repeated string externalIPs = 5;
  4286. // Supports "ClientIP" and "None". Used to maintain session affinity.
  4287. // Enable client IP based session affinity.
  4288. // Must be ClientIP or None.
  4289. // Defaults to None.
  4290. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  4291. // +optional
  4292. optional string sessionAffinity = 7;
  4293. // Only applies to Service Type: LoadBalancer
  4294. // LoadBalancer will get created with the IP specified in this field.
  4295. // This feature depends on whether the underlying cloud-provider supports specifying
  4296. // the loadBalancerIP when a load balancer is created.
  4297. // This field will be ignored if the cloud-provider does not support the feature.
  4298. // +optional
  4299. optional string loadBalancerIP = 8;
  4300. // If specified and supported by the platform, this will restrict traffic through the cloud-provider
  4301. // load-balancer will be restricted to the specified client IPs. This field will be ignored if the
  4302. // cloud-provider does not support the feature."
  4303. // More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
  4304. // +optional
  4305. repeated string loadBalancerSourceRanges = 9;
  4306. // externalName is the external reference that discovery mechanisms will
  4307. // return as an alias for this service (e.g. a DNS CNAME record). No
  4308. // proxying will be involved. Must be a lowercase RFC-1123 hostname
  4309. // (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
  4310. // +optional
  4311. optional string externalName = 10;
  4312. // externalTrafficPolicy denotes if this Service desires to route external
  4313. // traffic to node-local or cluster-wide endpoints. "Local" preserves the
  4314. // client source IP and avoids a second hop for LoadBalancer and Nodeport
  4315. // type services, but risks potentially imbalanced traffic spreading.
  4316. // "Cluster" obscures the client source IP and may cause a second hop to
  4317. // another node, but should have good overall load-spreading.
  4318. // +optional
  4319. optional string externalTrafficPolicy = 11;
  4320. // healthCheckNodePort specifies the healthcheck nodePort for the service.
  4321. // This only applies when type is set to LoadBalancer and
  4322. // externalTrafficPolicy is set to Local. If a value is specified, is
  4323. // in-range, and is not in use, it will be used. If not specified, a value
  4324. // will be automatically allocated. External systems (e.g. load-balancers)
  4325. // can use this port to determine if a given node holds endpoints for this
  4326. // service or not. If this field is specified when creating a Service
  4327. // which does not need it, creation will fail. This field will be wiped
  4328. // when updating a Service to no longer need it (e.g. changing type).
  4329. // +optional
  4330. optional int32 healthCheckNodePort = 12;
  4331. // publishNotReadyAddresses indicates that any agent which deals with endpoints for this
  4332. // Service should disregard any indications of ready/not-ready.
  4333. // The primary use case for setting this field is for a StatefulSet's Headless Service to
  4334. // propagate SRV DNS records for its Pods for the purpose of peer discovery.
  4335. // The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
  4336. // Services interpret this to mean that all endpoints are considered "ready" even if the
  4337. // Pods themselves are not. Agents which consume only Kubernetes generated endpoints
  4338. // through the Endpoints or EndpointSlice resources can safely assume this behavior.
  4339. // +optional
  4340. optional bool publishNotReadyAddresses = 13;
  4341. // sessionAffinityConfig contains the configurations of session affinity.
  4342. // +optional
  4343. optional SessionAffinityConfig sessionAffinityConfig = 14;
  4344. // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
  4345. // service. This field is usually assigned automatically based on cluster
  4346. // configuration and the ipFamilyPolicy field. If this field is specified
  4347. // manually, the requested family is available in the cluster,
  4348. // and ipFamilyPolicy allows it, it will be used; otherwise creation of
  4349. // the service will fail. This field is conditionally mutable: it allows
  4350. // for adding or removing a secondary IP family, but it does not allow
  4351. // changing the primary IP family of the Service. Valid values are "IPv4"
  4352. // and "IPv6". This field only applies to Services of types ClusterIP,
  4353. // NodePort, and LoadBalancer, and does apply to "headless" services.
  4354. // This field will be wiped when updating a Service to type ExternalName.
  4355. //
  4356. // This field may hold a maximum of two entries (dual-stack families, in
  4357. // either order). These families must correspond to the values of the
  4358. // clusterIPs field, if specified. Both clusterIPs and ipFamilies are
  4359. // governed by the ipFamilyPolicy field.
  4360. // +listType=atomic
  4361. // +optional
  4362. repeated string ipFamilies = 19;
  4363. // IPFamilyPolicy represents the dual-stack-ness requested or required by
  4364. // this Service. If there is no value provided, then this field will be set
  4365. // to SingleStack. Services can be "SingleStack" (a single IP family),
  4366. // "PreferDualStack" (two IP families on dual-stack configured clusters or
  4367. // a single IP family on single-stack clusters), or "RequireDualStack"
  4368. // (two IP families on dual-stack configured clusters, otherwise fail). The
  4369. // ipFamilies and clusterIPs fields depend on the value of this field. This
  4370. // field will be wiped when updating a service to type ExternalName.
  4371. // +optional
  4372. optional string ipFamilyPolicy = 17;
  4373. // allocateLoadBalancerNodePorts defines if NodePorts will be automatically
  4374. // allocated for services with type LoadBalancer. Default is "true". It
  4375. // may be set to "false" if the cluster load-balancer does not rely on
  4376. // NodePorts. If the caller requests specific NodePorts (by specifying a
  4377. // value), those requests will be respected, regardless of this field.
  4378. // This field may only be set for services with type LoadBalancer and will
  4379. // be cleared if the type is changed to any other type.
  4380. // This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
  4381. // +featureGate=ServiceLBNodePortControl
  4382. // +optional
  4383. optional bool allocateLoadBalancerNodePorts = 20;
  4384. // loadBalancerClass is the class of the load balancer implementation this Service belongs to.
  4385. // If specified, the value of this field must be a label-style identifier, with an optional prefix,
  4386. // e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
  4387. // This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
  4388. // balancer implementation is used, today this is typically done through the cloud provider integration,
  4389. // but should apply for any default implementation. If set, it is assumed that a load balancer
  4390. // implementation is watching for Services with a matching class. Any default load balancer
  4391. // implementation (e.g. cloud providers) should ignore Services that set this field.
  4392. // This field can only be set when creating or updating a Service to type 'LoadBalancer'.
  4393. // Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
  4394. // +featureGate=LoadBalancerClass
  4395. // +optional
  4396. optional string loadBalancerClass = 21;
  4397. // InternalTrafficPolicy specifies if the cluster internal traffic
  4398. // should be routed to all endpoints or node-local endpoints only.
  4399. // "Cluster" routes internal traffic to a Service to all endpoints.
  4400. // "Local" routes traffic to node-local endpoints only, traffic is
  4401. // dropped if no node-local endpoints are ready.
  4402. // The default value is "Cluster".
  4403. // +featureGate=ServiceInternalTrafficPolicy
  4404. // +optional
  4405. optional string internalTrafficPolicy = 22;
  4406. }
  4407. // ServiceStatus represents the current status of a service.
  4408. message ServiceStatus {
  4409. // LoadBalancer contains the current status of the load-balancer,
  4410. // if one is present.
  4411. // +optional
  4412. optional LoadBalancerStatus loadBalancer = 1;
  4413. // Current service state
  4414. // +optional
  4415. // +patchMergeKey=type
  4416. // +patchStrategy=merge
  4417. // +listType=map
  4418. // +listMapKey=type
  4419. repeated k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2;
  4420. }
  4421. // SessionAffinityConfig represents the configurations of session affinity.
  4422. message SessionAffinityConfig {
  4423. // clientIP contains the configurations of Client IP based session affinity.
  4424. // +optional
  4425. optional ClientIPConfig clientIP = 1;
  4426. }
  4427. // Represents a StorageOS persistent volume resource.
  4428. message StorageOSPersistentVolumeSource {
  4429. // VolumeName is the human-readable name of the StorageOS volume. Volume
  4430. // names are only unique within a namespace.
  4431. optional string volumeName = 1;
  4432. // VolumeNamespace specifies the scope of the volume within StorageOS. If no
  4433. // namespace is specified then the Pod's namespace will be used. This allows the
  4434. // Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
  4435. // Set VolumeName to any name to override the default behaviour.
  4436. // Set to "default" if you are not using namespaces within StorageOS.
  4437. // Namespaces that do not pre-exist within StorageOS will be created.
  4438. // +optional
  4439. optional string volumeNamespace = 2;
  4440. // Filesystem type to mount.
  4441. // Must be a filesystem type supported by the host operating system.
  4442. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  4443. // +optional
  4444. optional string fsType = 3;
  4445. // Defaults to false (read/write). ReadOnly here will force
  4446. // the ReadOnly setting in VolumeMounts.
  4447. // +optional
  4448. optional bool readOnly = 4;
  4449. // SecretRef specifies the secret to use for obtaining the StorageOS API
  4450. // credentials. If not specified, default values will be attempted.
  4451. // +optional
  4452. optional ObjectReference secretRef = 5;
  4453. }
  4454. // Represents a StorageOS persistent volume resource.
  4455. message StorageOSVolumeSource {
  4456. // VolumeName is the human-readable name of the StorageOS volume. Volume
  4457. // names are only unique within a namespace.
  4458. optional string volumeName = 1;
  4459. // VolumeNamespace specifies the scope of the volume within StorageOS. If no
  4460. // namespace is specified then the Pod's namespace will be used. This allows the
  4461. // Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
  4462. // Set VolumeName to any name to override the default behaviour.
  4463. // Set to "default" if you are not using namespaces within StorageOS.
  4464. // Namespaces that do not pre-exist within StorageOS will be created.
  4465. // +optional
  4466. optional string volumeNamespace = 2;
  4467. // Filesystem type to mount.
  4468. // Must be a filesystem type supported by the host operating system.
  4469. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  4470. // +optional
  4471. optional string fsType = 3;
  4472. // Defaults to false (read/write). ReadOnly here will force
  4473. // the ReadOnly setting in VolumeMounts.
  4474. // +optional
  4475. optional bool readOnly = 4;
  4476. // SecretRef specifies the secret to use for obtaining the StorageOS API
  4477. // credentials. If not specified, default values will be attempted.
  4478. // +optional
  4479. optional LocalObjectReference secretRef = 5;
  4480. }
  4481. // Sysctl defines a kernel parameter to be set
  4482. message Sysctl {
  4483. // Name of a property to set
  4484. optional string name = 1;
  4485. // Value of a property to set
  4486. optional string value = 2;
  4487. }
  4488. // TCPSocketAction describes an action based on opening a socket
  4489. message TCPSocketAction {
  4490. // Number or name of the port to access on the container.
  4491. // Number must be in the range 1 to 65535.
  4492. // Name must be an IANA_SVC_NAME.
  4493. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
  4494. // Optional: Host name to connect to, defaults to the pod IP.
  4495. // +optional
  4496. optional string host = 2;
  4497. }
  4498. // The node this Taint is attached to has the "effect" on
  4499. // any pod that does not tolerate the Taint.
  4500. message Taint {
  4501. // Required. The taint key to be applied to a node.
  4502. optional string key = 1;
  4503. // The taint value corresponding to the taint key.
  4504. // +optional
  4505. optional string value = 2;
  4506. // Required. The effect of the taint on pods
  4507. // that do not tolerate the taint.
  4508. // Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
  4509. optional string effect = 3;
  4510. // TimeAdded represents the time at which the taint was added.
  4511. // It is only written for NoExecute taints.
  4512. // +optional
  4513. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4;
  4514. }
  4515. // The pod this Toleration is attached to tolerates any taint that matches
  4516. // the triple <key,value,effect> using the matching operator <operator>.
  4517. message Toleration {
  4518. // Key is the taint key that the toleration applies to. Empty means match all taint keys.
  4519. // If the key is empty, operator must be Exists; this combination means to match all values and all keys.
  4520. // +optional
  4521. optional string key = 1;
  4522. // Operator represents a key's relationship to the value.
  4523. // Valid operators are Exists and Equal. Defaults to Equal.
  4524. // Exists is equivalent to wildcard for value, so that a pod can
  4525. // tolerate all taints of a particular category.
  4526. // +optional
  4527. optional string operator = 2;
  4528. // Value is the taint value the toleration matches to.
  4529. // If the operator is Exists, the value should be empty, otherwise just a regular string.
  4530. // +optional
  4531. optional string value = 3;
  4532. // Effect indicates the taint effect to match. Empty means match all taint effects.
  4533. // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
  4534. // +optional
  4535. optional string effect = 4;
  4536. // TolerationSeconds represents the period of time the toleration (which must be
  4537. // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
  4538. // it is not set, which means tolerate the taint forever (do not evict). Zero and
  4539. // negative values will be treated as 0 (evict immediately) by the system.
  4540. // +optional
  4541. optional int64 tolerationSeconds = 5;
  4542. }
  4543. // A topology selector requirement is a selector that matches given label.
  4544. // This is an alpha feature and may change in the future.
  4545. message TopologySelectorLabelRequirement {
  4546. // The label key that the selector applies to.
  4547. optional string key = 1;
  4548. // An array of string values. One value must match the label to be selected.
  4549. // Each entry in Values is ORed.
  4550. repeated string values = 2;
  4551. }
  4552. // A topology selector term represents the result of label queries.
  4553. // A null or empty topology selector term matches no objects.
  4554. // The requirements of them are ANDed.
  4555. // It provides a subset of functionality as NodeSelectorTerm.
  4556. // This is an alpha feature and may change in the future.
  4557. // +structType=atomic
  4558. message TopologySelectorTerm {
  4559. // A list of topology selector requirements by labels.
  4560. // +optional
  4561. repeated TopologySelectorLabelRequirement matchLabelExpressions = 1;
  4562. }
  4563. // TopologySpreadConstraint specifies how to spread matching pods among the given topology.
  4564. message TopologySpreadConstraint {
  4565. // MaxSkew describes the degree to which pods may be unevenly distributed.
  4566. // When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
  4567. // between the number of matching pods in the target topology and the global minimum.
  4568. // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
  4569. // labelSelector spread as 1/1/0:
  4570. // +-------+-------+-------+
  4571. // | zone1 | zone2 | zone3 |
  4572. // +-------+-------+-------+
  4573. // | P | P | |
  4574. // +-------+-------+-------+
  4575. // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
  4576. // scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
  4577. // violate MaxSkew(1).
  4578. // - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
  4579. // When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
  4580. // to topologies that satisfy it.
  4581. // It's a required field. Default value is 1 and 0 is not allowed.
  4582. optional int32 maxSkew = 1;
  4583. // TopologyKey is the key of node labels. Nodes that have a label with this key
  4584. // and identical values are considered to be in the same topology.
  4585. // We consider each <key, value> as a "bucket", and try to put balanced number
  4586. // of pods into each bucket.
  4587. // It's a required field.
  4588. optional string topologyKey = 2;
  4589. // WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
  4590. // the spread constraint.
  4591. // - DoNotSchedule (default) tells the scheduler not to schedule it.
  4592. // - ScheduleAnyway tells the scheduler to schedule the pod in any location,
  4593. // but giving higher precedence to topologies that would help reduce the
  4594. // skew.
  4595. // A constraint is considered "Unsatisfiable" for an incoming pod
  4596. // if and only if every possible node assignment for that pod would violate
  4597. // "MaxSkew" on some topology.
  4598. // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
  4599. // labelSelector spread as 3/1/1:
  4600. // +-------+-------+-------+
  4601. // | zone1 | zone2 | zone3 |
  4602. // +-------+-------+-------+
  4603. // | P P P | P | P |
  4604. // +-------+-------+-------+
  4605. // If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
  4606. // to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
  4607. // MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
  4608. // won't make it *more* imbalanced.
  4609. // It's a required field.
  4610. optional string whenUnsatisfiable = 3;
  4611. // LabelSelector is used to find matching pods.
  4612. // Pods that match this label selector are counted to determine the number of pods
  4613. // in their corresponding topology domain.
  4614. // +optional
  4615. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4;
  4616. }
  4617. // TypedLocalObjectReference contains enough information to let you locate the
  4618. // typed referenced object inside the same namespace.
  4619. // +structType=atomic
  4620. message TypedLocalObjectReference {
  4621. // APIGroup is the group for the resource being referenced.
  4622. // If APIGroup is not specified, the specified Kind must be in the core API group.
  4623. // For any other third-party types, APIGroup is required.
  4624. // +optional
  4625. optional string apiGroup = 1;
  4626. // Kind is the type of resource being referenced
  4627. optional string kind = 2;
  4628. // Name is the name of resource being referenced
  4629. optional string name = 3;
  4630. }
  4631. // Volume represents a named volume in a pod that may be accessed by any container in the pod.
  4632. message Volume {
  4633. // Volume's name.
  4634. // Must be a DNS_LABEL and unique within the pod.
  4635. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
  4636. optional string name = 1;
  4637. // VolumeSource represents the location and type of the mounted volume.
  4638. // If not specified, the Volume is implied to be an EmptyDir.
  4639. // This implied behavior is deprecated and will be removed in a future version.
  4640. optional VolumeSource volumeSource = 2;
  4641. }
  4642. // volumeDevice describes a mapping of a raw block device within a container.
  4643. message VolumeDevice {
  4644. // name must match the name of a persistentVolumeClaim in the pod
  4645. optional string name = 1;
  4646. // devicePath is the path inside of the container that the device will be mapped to.
  4647. optional string devicePath = 2;
  4648. }
  4649. // VolumeMount describes a mounting of a Volume within a container.
  4650. message VolumeMount {
  4651. // This must match the Name of a Volume.
  4652. optional string name = 1;
  4653. // Mounted read-only if true, read-write otherwise (false or unspecified).
  4654. // Defaults to false.
  4655. // +optional
  4656. optional bool readOnly = 2;
  4657. // Path within the container at which the volume should be mounted. Must
  4658. // not contain ':'.
  4659. optional string mountPath = 3;
  4660. // Path within the volume from which the container's volume should be mounted.
  4661. // Defaults to "" (volume's root).
  4662. // +optional
  4663. optional string subPath = 4;
  4664. // mountPropagation determines how mounts are propagated from the host
  4665. // to container and the other way around.
  4666. // When not set, MountPropagationNone is used.
  4667. // This field is beta in 1.10.
  4668. // +optional
  4669. optional string mountPropagation = 5;
  4670. // Expanded path within the volume from which the container's volume should be mounted.
  4671. // Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
  4672. // Defaults to "" (volume's root).
  4673. // SubPathExpr and SubPath are mutually exclusive.
  4674. // +optional
  4675. optional string subPathExpr = 6;
  4676. }
  4677. // VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
  4678. message VolumeNodeAffinity {
  4679. // Required specifies hard node constraints that must be met.
  4680. optional NodeSelector required = 1;
  4681. }
  4682. // Projection that may be projected along with other supported volume types
  4683. message VolumeProjection {
  4684. // information about the secret data to project
  4685. // +optional
  4686. optional SecretProjection secret = 1;
  4687. // information about the downwardAPI data to project
  4688. // +optional
  4689. optional DownwardAPIProjection downwardAPI = 2;
  4690. // information about the configMap data to project
  4691. // +optional
  4692. optional ConfigMapProjection configMap = 3;
  4693. // information about the serviceAccountToken data to project
  4694. // +optional
  4695. optional ServiceAccountTokenProjection serviceAccountToken = 4;
  4696. }
  4697. // Represents the source of a volume to mount.
  4698. // Only one of its members may be specified.
  4699. message VolumeSource {
  4700. // HostPath represents a pre-existing file or directory on the host
  4701. // machine that is directly exposed to the container. This is generally
  4702. // used for system agents or other privileged things that are allowed
  4703. // to see the host machine. Most containers will NOT need this.
  4704. // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
  4705. // ---
  4706. // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
  4707. // mount host directories as read/write.
  4708. // +optional
  4709. optional HostPathVolumeSource hostPath = 1;
  4710. // EmptyDir represents a temporary directory that shares a pod's lifetime.
  4711. // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
  4712. // +optional
  4713. optional EmptyDirVolumeSource emptyDir = 2;
  4714. // GCEPersistentDisk represents a GCE Disk resource that is attached to a
  4715. // kubelet's host machine and then exposed to the pod.
  4716. // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
  4717. // +optional
  4718. optional GCEPersistentDiskVolumeSource gcePersistentDisk = 3;
  4719. // AWSElasticBlockStore represents an AWS Disk resource that is attached to a
  4720. // kubelet's host machine and then exposed to the pod.
  4721. // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
  4722. // +optional
  4723. optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4;
  4724. // GitRepo represents a git repository at a particular revision.
  4725. // DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
  4726. // EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
  4727. // into the Pod's container.
  4728. // +optional
  4729. optional GitRepoVolumeSource gitRepo = 5;
  4730. // Secret represents a secret that should populate this volume.
  4731. // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
  4732. // +optional
  4733. optional SecretVolumeSource secret = 6;
  4734. // NFS represents an NFS mount on the host that shares a pod's lifetime
  4735. // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
  4736. // +optional
  4737. optional NFSVolumeSource nfs = 7;
  4738. // ISCSI represents an ISCSI Disk resource that is attached to a
  4739. // kubelet's host machine and then exposed to the pod.
  4740. // More info: https://examples.k8s.io/volumes/iscsi/README.md
  4741. // +optional
  4742. optional ISCSIVolumeSource iscsi = 8;
  4743. // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
  4744. // More info: https://examples.k8s.io/volumes/glusterfs/README.md
  4745. // +optional
  4746. optional GlusterfsVolumeSource glusterfs = 9;
  4747. // PersistentVolumeClaimVolumeSource represents a reference to a
  4748. // PersistentVolumeClaim in the same namespace.
  4749. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
  4750. // +optional
  4751. optional PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10;
  4752. // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
  4753. // More info: https://examples.k8s.io/volumes/rbd/README.md
  4754. // +optional
  4755. optional RBDVolumeSource rbd = 11;
  4756. // FlexVolume represents a generic volume resource that is
  4757. // provisioned/attached using an exec based plugin.
  4758. // +optional
  4759. optional FlexVolumeSource flexVolume = 12;
  4760. // Cinder represents a cinder volume attached and mounted on kubelets host machine.
  4761. // More info: https://examples.k8s.io/mysql-cinder-pd/README.md
  4762. // +optional
  4763. optional CinderVolumeSource cinder = 13;
  4764. // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
  4765. // +optional
  4766. optional CephFSVolumeSource cephfs = 14;
  4767. // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
  4768. // +optional
  4769. optional FlockerVolumeSource flocker = 15;
  4770. // DownwardAPI represents downward API about the pod that should populate this volume
  4771. // +optional
  4772. optional DownwardAPIVolumeSource downwardAPI = 16;
  4773. // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
  4774. // +optional
  4775. optional FCVolumeSource fc = 17;
  4776. // AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
  4777. // +optional
  4778. optional AzureFileVolumeSource azureFile = 18;
  4779. // ConfigMap represents a configMap that should populate this volume
  4780. // +optional
  4781. optional ConfigMapVolumeSource configMap = 19;
  4782. // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
  4783. // +optional
  4784. optional VsphereVirtualDiskVolumeSource vsphereVolume = 20;
  4785. // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
  4786. // +optional
  4787. optional QuobyteVolumeSource quobyte = 21;
  4788. // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
  4789. // +optional
  4790. optional AzureDiskVolumeSource azureDisk = 22;
  4791. // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
  4792. optional PhotonPersistentDiskVolumeSource photonPersistentDisk = 23;
  4793. // Items for all in one resources secrets, configmaps, and downward API
  4794. optional ProjectedVolumeSource projected = 26;
  4795. // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
  4796. // +optional
  4797. optional PortworxVolumeSource portworxVolume = 24;
  4798. // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
  4799. // +optional
  4800. optional ScaleIOVolumeSource scaleIO = 25;
  4801. // StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
  4802. // +optional
  4803. optional StorageOSVolumeSource storageos = 27;
  4804. // CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
  4805. // +optional
  4806. optional CSIVolumeSource csi = 28;
  4807. // Ephemeral represents a volume that is handled by a cluster storage driver.
  4808. // The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
  4809. // and deleted when the pod is removed.
  4810. //
  4811. // Use this if:
  4812. // a) the volume is only needed while the pod runs,
  4813. // b) features of normal volumes like restoring from snapshot or capacity
  4814. // tracking are needed,
  4815. // c) the storage driver is specified through a storage class, and
  4816. // d) the storage driver supports dynamic volume provisioning through
  4817. // a PersistentVolumeClaim (see EphemeralVolumeSource for more
  4818. // information on the connection between this volume type
  4819. // and PersistentVolumeClaim).
  4820. //
  4821. // Use PersistentVolumeClaim or one of the vendor-specific
  4822. // APIs for volumes that persist for longer than the lifecycle
  4823. // of an individual pod.
  4824. //
  4825. // Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
  4826. // be used that way - see the documentation of the driver for
  4827. // more information.
  4828. //
  4829. // A pod can use both types of ephemeral volumes and
  4830. // persistent volumes at the same time.
  4831. //
  4832. // +optional
  4833. optional EphemeralVolumeSource ephemeral = 29;
  4834. }
  4835. // Represents a vSphere volume resource.
  4836. message VsphereVirtualDiskVolumeSource {
  4837. // Path that identifies vSphere volume vmdk
  4838. optional string volumePath = 1;
  4839. // Filesystem type to mount.
  4840. // Must be a filesystem type supported by the host operating system.
  4841. // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
  4842. // +optional
  4843. optional string fsType = 2;
  4844. // Storage Policy Based Management (SPBM) profile name.
  4845. // +optional
  4846. optional string storagePolicyName = 3;
  4847. // Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
  4848. // +optional
  4849. optional string storagePolicyID = 4;
  4850. }
  4851. // The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
  4852. message WeightedPodAffinityTerm {
  4853. // weight associated with matching the corresponding podAffinityTerm,
  4854. // in the range 1-100.
  4855. optional int32 weight = 1;
  4856. // Required. A pod affinity term, associated with the corresponding weight.
  4857. optional PodAffinityTerm podAffinityTerm = 2;
  4858. }
  4859. // WindowsSecurityContextOptions contain Windows-specific options and credentials.
  4860. message WindowsSecurityContextOptions {
  4861. // GMSACredentialSpecName is the name of the GMSA credential spec to use.
  4862. // +optional
  4863. optional string gmsaCredentialSpecName = 1;
  4864. // GMSACredentialSpec is where the GMSA admission webhook
  4865. // (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
  4866. // GMSA credential spec named by the GMSACredentialSpecName field.
  4867. // +optional
  4868. optional string gmsaCredentialSpec = 2;
  4869. // The UserName in Windows to run the entrypoint of the container process.
  4870. // Defaults to the user specified in image metadata if unspecified.
  4871. // May also be set in PodSecurityContext. If set in both SecurityContext and
  4872. // PodSecurityContext, the value specified in SecurityContext takes precedence.
  4873. // +optional
  4874. optional string runAsUserName = 3;
  4875. // HostProcess determines if a container should be run as a 'Host Process' container.
  4876. // This field is alpha-level and will only be honored by components that enable the
  4877. // WindowsHostProcessContainers feature flag. Setting this field without the feature
  4878. // flag will result in errors when validating the Pod. All of a Pod's containers must
  4879. // have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
  4880. // containers and non-HostProcess containers). In addition, if HostProcess is true
  4881. // then HostNetwork must also be set to true.
  4882. // +optional
  4883. optional bool hostProcess = 4;
  4884. }