longhorn.yaml 147 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274
  1. ---
  2. # Builtin: "helm template" does not respect --create-namespace
  3. apiVersion: v1
  4. kind: Namespace
  5. metadata:
  6. name: longhorn-system
  7. ---
  8. # Source: longhorn/templates/serviceaccount.yaml
  9. apiVersion: v1
  10. kind: ServiceAccount
  11. metadata:
  12. name: longhorn-service-account
  13. namespace: longhorn-system
  14. labels:
  15. app.kubernetes.io/name: longhorn
  16. app.kubernetes.io/instance: longhorn
  17. app.kubernetes.io/version: v1.4.0
  18. ---
  19. # Source: longhorn/templates/serviceaccount.yaml
  20. apiVersion: v1
  21. kind: ServiceAccount
  22. metadata:
  23. name: longhorn-support-bundle
  24. namespace: longhorn-system
  25. labels:
  26. app.kubernetes.io/name: longhorn
  27. app.kubernetes.io/instance: longhorn
  28. app.kubernetes.io/version: v1.4.0
  29. ---
  30. # Source: longhorn/templates/default-setting.yaml
  31. apiVersion: v1
  32. kind: ConfigMap
  33. metadata:
  34. name: longhorn-default-setting
  35. namespace: longhorn-system
  36. labels:
  37. app.kubernetes.io/name: longhorn
  38. app.kubernetes.io/instance: longhorn
  39. app.kubernetes.io/version: v1.4.0
  40. data:
  41. default-setting.yaml: |-
  42. ---
  43. # Source: longhorn/templates/storageclass.yaml
  44. apiVersion: v1
  45. kind: ConfigMap
  46. metadata:
  47. name: longhorn-storageclass
  48. namespace: longhorn-system
  49. labels:
  50. app.kubernetes.io/name: longhorn
  51. app.kubernetes.io/instance: longhorn
  52. app.kubernetes.io/version: v1.4.0
  53. data:
  54. storageclass.yaml: |
  55. kind: StorageClass
  56. apiVersion: storage.k8s.io/v1
  57. metadata:
  58. name: longhorn
  59. annotations:
  60. storageclass.kubernetes.io/is-default-class: "true"
  61. provisioner: driver.longhorn.io
  62. allowVolumeExpansion: true
  63. reclaimPolicy: "Delete"
  64. volumeBindingMode: Immediate
  65. parameters:
  66. numberOfReplicas: "3"
  67. staleReplicaTimeout: "30"
  68. fromBackup: ""
  69. fsType: "ext4"
  70. dataLocality: "disabled"
  71. ---
  72. # Source: longhorn/templates/crds.yaml
  73. apiVersion: apiextensions.k8s.io/v1
  74. kind: CustomResourceDefinition
  75. metadata:
  76. annotations:
  77. controller-gen.kubebuilder.io/version: v0.7.0
  78. creationTimestamp: null
  79. labels:
  80. app.kubernetes.io/name: longhorn
  81. app.kubernetes.io/instance: longhorn
  82. app.kubernetes.io/version: v1.4.0
  83. longhorn-manager: ""
  84. name: backingimagedatasources.longhorn.io
  85. spec:
  86. group: longhorn.io
  87. names:
  88. kind: BackingImageDataSource
  89. listKind: BackingImageDataSourceList
  90. plural: backingimagedatasources
  91. shortNames:
  92. - lhbids
  93. singular: backingimagedatasource
  94. scope: Namespaced
  95. versions:
  96. - additionalPrinterColumns:
  97. - description: The current state of the pod used to provision the backing image file from source
  98. jsonPath: .status.currentState
  99. name: State
  100. type: string
  101. - description: The data source type
  102. jsonPath: .spec.sourceType
  103. name: SourceType
  104. type: string
  105. - description: The node the backing image file will be prepared on
  106. jsonPath: .spec.nodeID
  107. name: Node
  108. type: string
  109. - description: The disk the backing image file will be prepared on
  110. jsonPath: .spec.diskUUID
  111. name: DiskUUID
  112. type: string
  113. - jsonPath: .metadata.creationTimestamp
  114. name: Age
  115. type: date
  116. name: v1beta1
  117. schema:
  118. openAPIV3Schema:
  119. description: BackingImageDataSource is where Longhorn stores backing image data source object.
  120. properties:
  121. apiVersion:
  122. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  123. type: string
  124. kind:
  125. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  126. type: string
  127. metadata:
  128. type: object
  129. spec:
  130. x-kubernetes-preserve-unknown-fields: true
  131. status:
  132. x-kubernetes-preserve-unknown-fields: true
  133. type: object
  134. served: true
  135. storage: false
  136. subresources:
  137. status: {}
  138. - additionalPrinterColumns:
  139. - description: The system generated UUID of the provisioned backing image file
  140. jsonPath: .spec.uuid
  141. name: UUID
  142. type: string
  143. - description: The current state of the pod used to provision the backing image file from source
  144. jsonPath: .status.currentState
  145. name: State
  146. type: string
  147. - description: The data source type
  148. jsonPath: .spec.sourceType
  149. name: SourceType
  150. type: string
  151. - description: The backing image file size
  152. jsonPath: .status.size
  153. name: Size
  154. type: string
  155. - description: The node the backing image file will be prepared on
  156. jsonPath: .spec.nodeID
  157. name: Node
  158. type: string
  159. - description: The disk the backing image file will be prepared on
  160. jsonPath: .spec.diskUUID
  161. name: DiskUUID
  162. type: string
  163. - jsonPath: .metadata.creationTimestamp
  164. name: Age
  165. type: date
  166. name: v1beta2
  167. schema:
  168. openAPIV3Schema:
  169. description: BackingImageDataSource is where Longhorn stores backing image data source object.
  170. properties:
  171. apiVersion:
  172. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  173. type: string
  174. kind:
  175. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  176. type: string
  177. metadata:
  178. type: object
  179. spec:
  180. description: BackingImageDataSourceSpec defines the desired state of the Longhorn backing image data source
  181. properties:
  182. checksum:
  183. type: string
  184. diskPath:
  185. type: string
  186. diskUUID:
  187. type: string
  188. fileTransferred:
  189. type: boolean
  190. nodeID:
  191. type: string
  192. parameters:
  193. additionalProperties:
  194. type: string
  195. type: object
  196. sourceType:
  197. enum:
  198. - download
  199. - upload
  200. - export-from-volume
  201. type: string
  202. uuid:
  203. type: string
  204. type: object
  205. status:
  206. description: BackingImageDataSourceStatus defines the observed state of the Longhorn backing image data source
  207. properties:
  208. checksum:
  209. type: string
  210. currentState:
  211. type: string
  212. ip:
  213. type: string
  214. message:
  215. type: string
  216. ownerID:
  217. type: string
  218. progress:
  219. type: integer
  220. runningParameters:
  221. additionalProperties:
  222. type: string
  223. nullable: true
  224. type: object
  225. size:
  226. format: int64
  227. type: integer
  228. storageIP:
  229. type: string
  230. type: object
  231. type: object
  232. served: true
  233. storage: true
  234. subresources:
  235. status: {}
  236. status:
  237. acceptedNames:
  238. kind: ""
  239. plural: ""
  240. conditions: []
  241. storedVersions: []
  242. ---
  243. # Source: longhorn/templates/crds.yaml
  244. apiVersion: apiextensions.k8s.io/v1
  245. kind: CustomResourceDefinition
  246. metadata:
  247. annotations:
  248. controller-gen.kubebuilder.io/version: v0.7.0
  249. creationTimestamp: null
  250. labels:
  251. app.kubernetes.io/name: longhorn
  252. app.kubernetes.io/instance: longhorn
  253. app.kubernetes.io/version: v1.4.0
  254. longhorn-manager: ""
  255. name: backingimagemanagers.longhorn.io
  256. spec:
  257. group: longhorn.io
  258. names:
  259. kind: BackingImageManager
  260. listKind: BackingImageManagerList
  261. plural: backingimagemanagers
  262. shortNames:
  263. - lhbim
  264. singular: backingimagemanager
  265. scope: Namespaced
  266. versions:
  267. - additionalPrinterColumns:
  268. - description: The current state of the manager
  269. jsonPath: .status.currentState
  270. name: State
  271. type: string
  272. - description: The image the manager pod will use
  273. jsonPath: .spec.image
  274. name: Image
  275. type: string
  276. - description: The node the manager is on
  277. jsonPath: .spec.nodeID
  278. name: Node
  279. type: string
  280. - description: The disk the manager is responsible for
  281. jsonPath: .spec.diskUUID
  282. name: DiskUUID
  283. type: string
  284. - description: The disk path the manager is using
  285. jsonPath: .spec.diskPath
  286. name: DiskPath
  287. type: string
  288. - jsonPath: .metadata.creationTimestamp
  289. name: Age
  290. type: date
  291. name: v1beta1
  292. schema:
  293. openAPIV3Schema:
  294. description: BackingImageManager is where Longhorn stores backing image manager object.
  295. properties:
  296. apiVersion:
  297. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  298. type: string
  299. kind:
  300. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  301. type: string
  302. metadata:
  303. type: object
  304. spec:
  305. x-kubernetes-preserve-unknown-fields: true
  306. status:
  307. x-kubernetes-preserve-unknown-fields: true
  308. type: object
  309. served: true
  310. storage: false
  311. subresources:
  312. status: {}
  313. - additionalPrinterColumns:
  314. - description: The current state of the manager
  315. jsonPath: .status.currentState
  316. name: State
  317. type: string
  318. - description: The image the manager pod will use
  319. jsonPath: .spec.image
  320. name: Image
  321. type: string
  322. - description: The node the manager is on
  323. jsonPath: .spec.nodeID
  324. name: Node
  325. type: string
  326. - description: The disk the manager is responsible for
  327. jsonPath: .spec.diskUUID
  328. name: DiskUUID
  329. type: string
  330. - description: The disk path the manager is using
  331. jsonPath: .spec.diskPath
  332. name: DiskPath
  333. type: string
  334. - jsonPath: .metadata.creationTimestamp
  335. name: Age
  336. type: date
  337. name: v1beta2
  338. schema:
  339. openAPIV3Schema:
  340. description: BackingImageManager is where Longhorn stores backing image manager object.
  341. properties:
  342. apiVersion:
  343. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  344. type: string
  345. kind:
  346. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  347. type: string
  348. metadata:
  349. type: object
  350. spec:
  351. description: BackingImageManagerSpec defines the desired state of the Longhorn backing image manager
  352. properties:
  353. backingImages:
  354. additionalProperties:
  355. type: string
  356. type: object
  357. diskPath:
  358. type: string
  359. diskUUID:
  360. type: string
  361. image:
  362. type: string
  363. nodeID:
  364. type: string
  365. type: object
  366. status:
  367. description: BackingImageManagerStatus defines the observed state of the Longhorn backing image manager
  368. properties:
  369. apiMinVersion:
  370. type: integer
  371. apiVersion:
  372. type: integer
  373. backingImageFileMap:
  374. additionalProperties:
  375. properties:
  376. currentChecksum:
  377. type: string
  378. directory:
  379. description: 'Deprecated: This field is useless.'
  380. type: string
  381. downloadProgress:
  382. description: 'Deprecated: This field is renamed to `Progress`.'
  383. type: integer
  384. message:
  385. type: string
  386. name:
  387. type: string
  388. progress:
  389. type: integer
  390. senderManagerAddress:
  391. type: string
  392. sendingReference:
  393. type: integer
  394. size:
  395. format: int64
  396. type: integer
  397. state:
  398. type: string
  399. url:
  400. description: 'Deprecated: This field is useless now. The manager of backing image files doesn''t care if a file is downloaded and how.'
  401. type: string
  402. uuid:
  403. type: string
  404. type: object
  405. nullable: true
  406. type: object
  407. currentState:
  408. type: string
  409. ip:
  410. type: string
  411. ownerID:
  412. type: string
  413. storageIP:
  414. type: string
  415. type: object
  416. type: object
  417. served: true
  418. storage: true
  419. subresources:
  420. status: {}
  421. status:
  422. acceptedNames:
  423. kind: ""
  424. plural: ""
  425. conditions: []
  426. storedVersions: []
  427. ---
  428. # Source: longhorn/templates/crds.yaml
  429. apiVersion: apiextensions.k8s.io/v1
  430. kind: CustomResourceDefinition
  431. metadata:
  432. annotations:
  433. controller-gen.kubebuilder.io/version: v0.7.0
  434. creationTimestamp: null
  435. labels:
  436. app.kubernetes.io/name: longhorn
  437. app.kubernetes.io/instance: longhorn
  438. app.kubernetes.io/version: v1.4.0
  439. longhorn-manager: ""
  440. name: backingimages.longhorn.io
  441. spec:
  442. conversion:
  443. strategy: Webhook
  444. webhook:
  445. clientConfig:
  446. service:
  447. name: longhorn-conversion-webhook
  448. namespace: longhorn-system
  449. path: /v1/webhook/conversion
  450. port: 9443
  451. conversionReviewVersions:
  452. - v1beta2
  453. - v1beta1
  454. group: longhorn.io
  455. names:
  456. kind: BackingImage
  457. listKind: BackingImageList
  458. plural: backingimages
  459. shortNames:
  460. - lhbi
  461. singular: backingimage
  462. scope: Namespaced
  463. versions:
  464. - additionalPrinterColumns:
  465. - description: The backing image name
  466. jsonPath: .spec.image
  467. name: Image
  468. type: string
  469. - jsonPath: .metadata.creationTimestamp
  470. name: Age
  471. type: date
  472. name: v1beta1
  473. schema:
  474. openAPIV3Schema:
  475. description: BackingImage is where Longhorn stores backing image object.
  476. properties:
  477. apiVersion:
  478. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  479. type: string
  480. kind:
  481. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  482. type: string
  483. metadata:
  484. type: object
  485. spec:
  486. x-kubernetes-preserve-unknown-fields: true
  487. status:
  488. x-kubernetes-preserve-unknown-fields: true
  489. type: object
  490. served: true
  491. storage: false
  492. subresources:
  493. status: {}
  494. - additionalPrinterColumns:
  495. - description: The system generated UUID
  496. jsonPath: .status.uuid
  497. name: UUID
  498. type: string
  499. - description: The source of the backing image file data
  500. jsonPath: .spec.sourceType
  501. name: SourceType
  502. type: string
  503. - description: The backing image file size in each disk
  504. jsonPath: .status.size
  505. name: Size
  506. type: string
  507. - jsonPath: .metadata.creationTimestamp
  508. name: Age
  509. type: date
  510. name: v1beta2
  511. schema:
  512. openAPIV3Schema:
  513. description: BackingImage is where Longhorn stores backing image object.
  514. properties:
  515. apiVersion:
  516. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  517. type: string
  518. kind:
  519. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  520. type: string
  521. metadata:
  522. type: object
  523. spec:
  524. description: BackingImageSpec defines the desired state of the Longhorn backing image
  525. properties:
  526. checksum:
  527. type: string
  528. disks:
  529. additionalProperties:
  530. type: string
  531. type: object
  532. imageURL:
  533. description: 'Deprecated: This kind of info will be included in the related BackingImageDataSource.'
  534. type: string
  535. sourceParameters:
  536. additionalProperties:
  537. type: string
  538. type: object
  539. sourceType:
  540. enum:
  541. - download
  542. - upload
  543. - export-from-volume
  544. type: string
  545. type: object
  546. status:
  547. description: BackingImageStatus defines the observed state of the Longhorn backing image status
  548. properties:
  549. checksum:
  550. type: string
  551. diskDownloadProgressMap:
  552. additionalProperties:
  553. type: integer
  554. description: 'Deprecated: Replaced by field `Progress` in `DiskFileStatusMap`.'
  555. nullable: true
  556. type: object
  557. diskDownloadStateMap:
  558. additionalProperties:
  559. description: BackingImageDownloadState is replaced by BackingImageState.
  560. type: string
  561. description: 'Deprecated: Replaced by field `State` in `DiskFileStatusMap`.'
  562. nullable: true
  563. type: object
  564. diskFileStatusMap:
  565. additionalProperties:
  566. properties:
  567. lastStateTransitionTime:
  568. type: string
  569. message:
  570. type: string
  571. progress:
  572. type: integer
  573. state:
  574. type: string
  575. type: object
  576. nullable: true
  577. type: object
  578. diskLastRefAtMap:
  579. additionalProperties:
  580. type: string
  581. nullable: true
  582. type: object
  583. ownerID:
  584. type: string
  585. size:
  586. format: int64
  587. type: integer
  588. uuid:
  589. type: string
  590. type: object
  591. type: object
  592. served: true
  593. storage: true
  594. subresources:
  595. status: {}
  596. status:
  597. acceptedNames:
  598. kind: ""
  599. plural: ""
  600. conditions: []
  601. storedVersions: []
  602. ---
  603. # Source: longhorn/templates/crds.yaml
  604. apiVersion: apiextensions.k8s.io/v1
  605. kind: CustomResourceDefinition
  606. metadata:
  607. annotations:
  608. controller-gen.kubebuilder.io/version: v0.7.0
  609. creationTimestamp: null
  610. labels:
  611. app.kubernetes.io/name: longhorn
  612. app.kubernetes.io/instance: longhorn
  613. app.kubernetes.io/version: v1.4.0
  614. longhorn-manager: ""
  615. name: backups.longhorn.io
  616. spec:
  617. group: longhorn.io
  618. names:
  619. kind: Backup
  620. listKind: BackupList
  621. plural: backups
  622. shortNames:
  623. - lhb
  624. singular: backup
  625. scope: Namespaced
  626. versions:
  627. - additionalPrinterColumns:
  628. - description: The snapshot name
  629. jsonPath: .status.snapshotName
  630. name: SnapshotName
  631. type: string
  632. - description: The snapshot size
  633. jsonPath: .status.size
  634. name: SnapshotSize
  635. type: string
  636. - description: The snapshot creation time
  637. jsonPath: .status.snapshotCreatedAt
  638. name: SnapshotCreatedAt
  639. type: string
  640. - description: The backup state
  641. jsonPath: .status.state
  642. name: State
  643. type: string
  644. - description: The backup last synced time
  645. jsonPath: .status.lastSyncedAt
  646. name: LastSyncedAt
  647. type: string
  648. name: v1beta1
  649. schema:
  650. openAPIV3Schema:
  651. description: Backup is where Longhorn stores backup object.
  652. properties:
  653. apiVersion:
  654. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  655. type: string
  656. kind:
  657. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  658. type: string
  659. metadata:
  660. type: object
  661. spec:
  662. x-kubernetes-preserve-unknown-fields: true
  663. status:
  664. x-kubernetes-preserve-unknown-fields: true
  665. type: object
  666. served: true
  667. storage: false
  668. subresources:
  669. status: {}
  670. - additionalPrinterColumns:
  671. - description: The snapshot name
  672. jsonPath: .status.snapshotName
  673. name: SnapshotName
  674. type: string
  675. - description: The snapshot size
  676. jsonPath: .status.size
  677. name: SnapshotSize
  678. type: string
  679. - description: The snapshot creation time
  680. jsonPath: .status.snapshotCreatedAt
  681. name: SnapshotCreatedAt
  682. type: string
  683. - description: The backup state
  684. jsonPath: .status.state
  685. name: State
  686. type: string
  687. - description: The backup last synced time
  688. jsonPath: .status.lastSyncedAt
  689. name: LastSyncedAt
  690. type: string
  691. name: v1beta2
  692. schema:
  693. openAPIV3Schema:
  694. description: Backup is where Longhorn stores backup object.
  695. properties:
  696. apiVersion:
  697. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  698. type: string
  699. kind:
  700. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  701. type: string
  702. metadata:
  703. type: object
  704. spec:
  705. description: BackupSpec defines the desired state of the Longhorn backup
  706. properties:
  707. labels:
  708. additionalProperties:
  709. type: string
  710. description: The labels of snapshot backup.
  711. type: object
  712. snapshotName:
  713. description: The snapshot name.
  714. type: string
  715. syncRequestedAt:
  716. description: The time to request run sync the remote backup.
  717. format: date-time
  718. nullable: true
  719. type: string
  720. type: object
  721. status:
  722. description: BackupStatus defines the observed state of the Longhorn backup
  723. properties:
  724. backupCreatedAt:
  725. description: The snapshot backup upload finished time.
  726. type: string
  727. error:
  728. description: The error message when taking the snapshot backup.
  729. type: string
  730. labels:
  731. additionalProperties:
  732. type: string
  733. description: The labels of snapshot backup.
  734. nullable: true
  735. type: object
  736. lastSyncedAt:
  737. description: The last time that the backup was synced with the remote backup target.
  738. format: date-time
  739. nullable: true
  740. type: string
  741. messages:
  742. additionalProperties:
  743. type: string
  744. description: The error messages when calling longhorn engine on listing or inspecting backups.
  745. nullable: true
  746. type: object
  747. ownerID:
  748. description: The node ID on which the controller is responsible to reconcile this backup CR.
  749. type: string
  750. progress:
  751. description: The snapshot backup progress.
  752. type: integer
  753. replicaAddress:
  754. description: The address of the replica that runs snapshot backup.
  755. type: string
  756. size:
  757. description: The snapshot size.
  758. type: string
  759. snapshotCreatedAt:
  760. description: The snapshot creation time.
  761. type: string
  762. snapshotName:
  763. description: The snapshot name.
  764. type: string
  765. state:
  766. description: The backup creation state. Can be "", "InProgress", "Completed", "Error", "Unknown".
  767. type: string
  768. url:
  769. description: The snapshot backup URL.
  770. type: string
  771. volumeBackingImageName:
  772. description: The volume's backing image name.
  773. type: string
  774. volumeCreated:
  775. description: The volume creation time.
  776. type: string
  777. volumeName:
  778. description: The volume name.
  779. type: string
  780. volumeSize:
  781. description: The volume size.
  782. type: string
  783. type: object
  784. type: object
  785. served: true
  786. storage: true
  787. subresources:
  788. status: {}
  789. status:
  790. acceptedNames:
  791. kind: ""
  792. plural: ""
  793. conditions: []
  794. storedVersions: []
  795. ---
  796. # Source: longhorn/templates/crds.yaml
  797. apiVersion: apiextensions.k8s.io/v1
  798. kind: CustomResourceDefinition
  799. metadata:
  800. annotations:
  801. controller-gen.kubebuilder.io/version: v0.7.0
  802. creationTimestamp: null
  803. labels:
  804. app.kubernetes.io/name: longhorn
  805. app.kubernetes.io/instance: longhorn
  806. app.kubernetes.io/version: v1.4.0
  807. longhorn-manager: ""
  808. name: backuptargets.longhorn.io
  809. spec:
  810. conversion:
  811. strategy: Webhook
  812. webhook:
  813. clientConfig:
  814. service:
  815. name: longhorn-conversion-webhook
  816. namespace: longhorn-system
  817. path: /v1/webhook/conversion
  818. port: 9443
  819. conversionReviewVersions:
  820. - v1beta2
  821. - v1beta1
  822. group: longhorn.io
  823. names:
  824. kind: BackupTarget
  825. listKind: BackupTargetList
  826. plural: backuptargets
  827. shortNames:
  828. - lhbt
  829. singular: backuptarget
  830. scope: Namespaced
  831. versions:
  832. - additionalPrinterColumns:
  833. - description: The backup target URL
  834. jsonPath: .spec.backupTargetURL
  835. name: URL
  836. type: string
  837. - description: The backup target credential secret
  838. jsonPath: .spec.credentialSecret
  839. name: Credential
  840. type: string
  841. - description: The backup target poll interval
  842. jsonPath: .spec.pollInterval
  843. name: LastBackupAt
  844. type: string
  845. - description: Indicate whether the backup target is available or not
  846. jsonPath: .status.available
  847. name: Available
  848. type: boolean
  849. - description: The backup target last synced time
  850. jsonPath: .status.lastSyncedAt
  851. name: LastSyncedAt
  852. type: string
  853. name: v1beta1
  854. schema:
  855. openAPIV3Schema:
  856. description: BackupTarget is where Longhorn stores backup target object.
  857. properties:
  858. apiVersion:
  859. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  860. type: string
  861. kind:
  862. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  863. type: string
  864. metadata:
  865. type: object
  866. spec:
  867. x-kubernetes-preserve-unknown-fields: true
  868. status:
  869. x-kubernetes-preserve-unknown-fields: true
  870. type: object
  871. served: true
  872. storage: false
  873. subresources:
  874. status: {}
  875. - additionalPrinterColumns:
  876. - description: The backup target URL
  877. jsonPath: .spec.backupTargetURL
  878. name: URL
  879. type: string
  880. - description: The backup target credential secret
  881. jsonPath: .spec.credentialSecret
  882. name: Credential
  883. type: string
  884. - description: The backup target poll interval
  885. jsonPath: .spec.pollInterval
  886. name: LastBackupAt
  887. type: string
  888. - description: Indicate whether the backup target is available or not
  889. jsonPath: .status.available
  890. name: Available
  891. type: boolean
  892. - description: The backup target last synced time
  893. jsonPath: .status.lastSyncedAt
  894. name: LastSyncedAt
  895. type: string
  896. name: v1beta2
  897. schema:
  898. openAPIV3Schema:
  899. description: BackupTarget is where Longhorn stores backup target object.
  900. properties:
  901. apiVersion:
  902. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  903. type: string
  904. kind:
  905. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  906. type: string
  907. metadata:
  908. type: object
  909. spec:
  910. description: BackupTargetSpec defines the desired state of the Longhorn backup target
  911. properties:
  912. backupTargetURL:
  913. description: The backup target URL.
  914. type: string
  915. credentialSecret:
  916. description: The backup target credential secret.
  917. type: string
  918. pollInterval:
  919. description: The interval that the cluster needs to run sync with the backup target.
  920. type: string
  921. syncRequestedAt:
  922. description: The time to request run sync the remote backup target.
  923. format: date-time
  924. nullable: true
  925. type: string
  926. type: object
  927. status:
  928. description: BackupTargetStatus defines the observed state of the Longhorn backup target
  929. properties:
  930. available:
  931. description: Available indicates if the remote backup target is available or not.
  932. type: boolean
  933. conditions:
  934. description: Records the reason on why the backup target is unavailable.
  935. items:
  936. properties:
  937. lastProbeTime:
  938. description: Last time we probed the condition.
  939. type: string
  940. lastTransitionTime:
  941. description: Last time the condition transitioned from one status to another.
  942. type: string
  943. message:
  944. description: Human-readable message indicating details about last transition.
  945. type: string
  946. reason:
  947. description: Unique, one-word, CamelCase reason for the condition's last transition.
  948. type: string
  949. status:
  950. description: Status is the status of the condition. Can be True, False, Unknown.
  951. type: string
  952. type:
  953. description: Type is the type of the condition.
  954. type: string
  955. type: object
  956. nullable: true
  957. type: array
  958. lastSyncedAt:
  959. description: The last time that the controller synced with the remote backup target.
  960. format: date-time
  961. nullable: true
  962. type: string
  963. ownerID:
  964. description: The node ID on which the controller is responsible to reconcile this backup target CR.
  965. type: string
  966. type: object
  967. type: object
  968. served: true
  969. storage: true
  970. subresources:
  971. status: {}
  972. status:
  973. acceptedNames:
  974. kind: ""
  975. plural: ""
  976. conditions: []
  977. storedVersions: []
  978. ---
  979. # Source: longhorn/templates/crds.yaml
  980. apiVersion: apiextensions.k8s.io/v1
  981. kind: CustomResourceDefinition
  982. metadata:
  983. annotations:
  984. controller-gen.kubebuilder.io/version: v0.7.0
  985. creationTimestamp: null
  986. labels:
  987. app.kubernetes.io/name: longhorn
  988. app.kubernetes.io/instance: longhorn
  989. app.kubernetes.io/version: v1.4.0
  990. longhorn-manager: ""
  991. name: backupvolumes.longhorn.io
  992. spec:
  993. group: longhorn.io
  994. names:
  995. kind: BackupVolume
  996. listKind: BackupVolumeList
  997. plural: backupvolumes
  998. shortNames:
  999. - lhbv
  1000. singular: backupvolume
  1001. scope: Namespaced
  1002. versions:
  1003. - additionalPrinterColumns:
  1004. - description: The backup volume creation time
  1005. jsonPath: .status.createdAt
  1006. name: CreatedAt
  1007. type: string
  1008. - description: The backup volume last backup name
  1009. jsonPath: .status.lastBackupName
  1010. name: LastBackupName
  1011. type: string
  1012. - description: The backup volume last backup time
  1013. jsonPath: .status.lastBackupAt
  1014. name: LastBackupAt
  1015. type: string
  1016. - description: The backup volume last synced time
  1017. jsonPath: .status.lastSyncedAt
  1018. name: LastSyncedAt
  1019. type: string
  1020. name: v1beta1
  1021. schema:
  1022. openAPIV3Schema:
  1023. description: BackupVolume is where Longhorn stores backup volume object.
  1024. properties:
  1025. apiVersion:
  1026. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1027. type: string
  1028. kind:
  1029. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1030. type: string
  1031. metadata:
  1032. type: object
  1033. spec:
  1034. x-kubernetes-preserve-unknown-fields: true
  1035. status:
  1036. x-kubernetes-preserve-unknown-fields: true
  1037. type: object
  1038. served: true
  1039. storage: false
  1040. subresources:
  1041. status: {}
  1042. - additionalPrinterColumns:
  1043. - description: The backup volume creation time
  1044. jsonPath: .status.createdAt
  1045. name: CreatedAt
  1046. type: string
  1047. - description: The backup volume last backup name
  1048. jsonPath: .status.lastBackupName
  1049. name: LastBackupName
  1050. type: string
  1051. - description: The backup volume last backup time
  1052. jsonPath: .status.lastBackupAt
  1053. name: LastBackupAt
  1054. type: string
  1055. - description: The backup volume last synced time
  1056. jsonPath: .status.lastSyncedAt
  1057. name: LastSyncedAt
  1058. type: string
  1059. name: v1beta2
  1060. schema:
  1061. openAPIV3Schema:
  1062. description: BackupVolume is where Longhorn stores backup volume object.
  1063. properties:
  1064. apiVersion:
  1065. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1066. type: string
  1067. kind:
  1068. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1069. type: string
  1070. metadata:
  1071. type: object
  1072. spec:
  1073. description: BackupVolumeSpec defines the desired state of the Longhorn backup volume
  1074. properties:
  1075. syncRequestedAt:
  1076. description: The time to request run sync the remote backup volume.
  1077. format: date-time
  1078. nullable: true
  1079. type: string
  1080. type: object
  1081. status:
  1082. description: BackupVolumeStatus defines the observed state of the Longhorn backup volume
  1083. properties:
  1084. backingImageChecksum:
  1085. description: the backing image checksum.
  1086. type: string
  1087. backingImageName:
  1088. description: The backing image name.
  1089. type: string
  1090. createdAt:
  1091. description: The backup volume creation time.
  1092. type: string
  1093. dataStored:
  1094. description: The backup volume block count.
  1095. type: string
  1096. labels:
  1097. additionalProperties:
  1098. type: string
  1099. description: The backup volume labels.
  1100. nullable: true
  1101. type: object
  1102. lastBackupAt:
  1103. description: The latest volume backup time.
  1104. type: string
  1105. lastBackupName:
  1106. description: The latest volume backup name.
  1107. type: string
  1108. lastModificationTime:
  1109. description: The backup volume config last modification time.
  1110. format: date-time
  1111. nullable: true
  1112. type: string
  1113. lastSyncedAt:
  1114. description: The last time that the backup volume was synced into the cluster.
  1115. format: date-time
  1116. nullable: true
  1117. type: string
  1118. messages:
  1119. additionalProperties:
  1120. type: string
  1121. description: The error messages when call longhorn engine on list or inspect backup volumes.
  1122. nullable: true
  1123. type: object
  1124. ownerID:
  1125. description: The node ID on which the controller is responsible to reconcile this backup volume CR.
  1126. type: string
  1127. size:
  1128. description: The backup volume size.
  1129. type: string
  1130. type: object
  1131. type: object
  1132. served: true
  1133. storage: true
  1134. subresources:
  1135. status: {}
  1136. status:
  1137. acceptedNames:
  1138. kind: ""
  1139. plural: ""
  1140. conditions: []
  1141. storedVersions: []
  1142. ---
  1143. # Source: longhorn/templates/crds.yaml
  1144. apiVersion: apiextensions.k8s.io/v1
  1145. kind: CustomResourceDefinition
  1146. metadata:
  1147. annotations:
  1148. controller-gen.kubebuilder.io/version: v0.7.0
  1149. creationTimestamp: null
  1150. labels:
  1151. app.kubernetes.io/name: longhorn
  1152. app.kubernetes.io/instance: longhorn
  1153. app.kubernetes.io/version: v1.4.0
  1154. longhorn-manager: ""
  1155. name: engineimages.longhorn.io
  1156. spec:
  1157. preserveUnknownFields: false
  1158. conversion:
  1159. strategy: Webhook
  1160. webhook:
  1161. clientConfig:
  1162. service:
  1163. name: longhorn-conversion-webhook
  1164. namespace: longhorn-system
  1165. path: /v1/webhook/conversion
  1166. port: 9443
  1167. conversionReviewVersions:
  1168. - v1beta2
  1169. - v1beta1
  1170. group: longhorn.io
  1171. names:
  1172. kind: EngineImage
  1173. listKind: EngineImageList
  1174. plural: engineimages
  1175. shortNames:
  1176. - lhei
  1177. singular: engineimage
  1178. scope: Namespaced
  1179. versions:
  1180. - additionalPrinterColumns:
  1181. - description: State of the engine image
  1182. jsonPath: .status.state
  1183. name: State
  1184. type: string
  1185. - description: The Longhorn engine image
  1186. jsonPath: .spec.image
  1187. name: Image
  1188. type: string
  1189. - description: Number of resources using the engine image
  1190. jsonPath: .status.refCount
  1191. name: RefCount
  1192. type: integer
  1193. - description: The build date of the engine image
  1194. jsonPath: .status.buildDate
  1195. name: BuildDate
  1196. type: date
  1197. - jsonPath: .metadata.creationTimestamp
  1198. name: Age
  1199. type: date
  1200. name: v1beta1
  1201. schema:
  1202. openAPIV3Schema:
  1203. description: EngineImage is where Longhorn stores engine image object.
  1204. properties:
  1205. apiVersion:
  1206. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1207. type: string
  1208. kind:
  1209. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1210. type: string
  1211. metadata:
  1212. type: object
  1213. spec:
  1214. x-kubernetes-preserve-unknown-fields: true
  1215. status:
  1216. x-kubernetes-preserve-unknown-fields: true
  1217. type: object
  1218. served: true
  1219. storage: false
  1220. subresources:
  1221. status: {}
  1222. - additionalPrinterColumns:
  1223. - description: State of the engine image
  1224. jsonPath: .status.state
  1225. name: State
  1226. type: string
  1227. - description: The Longhorn engine image
  1228. jsonPath: .spec.image
  1229. name: Image
  1230. type: string
  1231. - description: Number of resources using the engine image
  1232. jsonPath: .status.refCount
  1233. name: RefCount
  1234. type: integer
  1235. - description: The build date of the engine image
  1236. jsonPath: .status.buildDate
  1237. name: BuildDate
  1238. type: date
  1239. - jsonPath: .metadata.creationTimestamp
  1240. name: Age
  1241. type: date
  1242. name: v1beta2
  1243. schema:
  1244. openAPIV3Schema:
  1245. description: EngineImage is where Longhorn stores engine image object.
  1246. properties:
  1247. apiVersion:
  1248. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1249. type: string
  1250. kind:
  1251. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1252. type: string
  1253. metadata:
  1254. type: object
  1255. spec:
  1256. description: EngineImageSpec defines the desired state of the Longhorn engine image
  1257. properties:
  1258. image:
  1259. minLength: 1
  1260. type: string
  1261. required:
  1262. - image
  1263. type: object
  1264. status:
  1265. description: EngineImageStatus defines the observed state of the Longhorn engine image
  1266. properties:
  1267. buildDate:
  1268. type: string
  1269. cliAPIMinVersion:
  1270. type: integer
  1271. cliAPIVersion:
  1272. type: integer
  1273. conditions:
  1274. items:
  1275. properties:
  1276. lastProbeTime:
  1277. description: Last time we probed the condition.
  1278. type: string
  1279. lastTransitionTime:
  1280. description: Last time the condition transitioned from one status to another.
  1281. type: string
  1282. message:
  1283. description: Human-readable message indicating details about last transition.
  1284. type: string
  1285. reason:
  1286. description: Unique, one-word, CamelCase reason for the condition's last transition.
  1287. type: string
  1288. status:
  1289. description: Status is the status of the condition. Can be True, False, Unknown.
  1290. type: string
  1291. type:
  1292. description: Type is the type of the condition.
  1293. type: string
  1294. type: object
  1295. nullable: true
  1296. type: array
  1297. controllerAPIMinVersion:
  1298. type: integer
  1299. controllerAPIVersion:
  1300. type: integer
  1301. dataFormatMinVersion:
  1302. type: integer
  1303. dataFormatVersion:
  1304. type: integer
  1305. gitCommit:
  1306. type: string
  1307. noRefSince:
  1308. type: string
  1309. nodeDeploymentMap:
  1310. additionalProperties:
  1311. type: boolean
  1312. nullable: true
  1313. type: object
  1314. ownerID:
  1315. type: string
  1316. refCount:
  1317. type: integer
  1318. state:
  1319. type: string
  1320. version:
  1321. type: string
  1322. type: object
  1323. type: object
  1324. served: true
  1325. storage: true
  1326. subresources:
  1327. status: {}
  1328. status:
  1329. acceptedNames:
  1330. kind: ""
  1331. plural: ""
  1332. conditions: []
  1333. storedVersions: []
  1334. ---
  1335. # Source: longhorn/templates/crds.yaml
  1336. apiVersion: apiextensions.k8s.io/v1
  1337. kind: CustomResourceDefinition
  1338. metadata:
  1339. annotations:
  1340. controller-gen.kubebuilder.io/version: v0.7.0
  1341. creationTimestamp: null
  1342. labels:
  1343. app.kubernetes.io/name: longhorn
  1344. app.kubernetes.io/instance: longhorn
  1345. app.kubernetes.io/version: v1.4.0
  1346. longhorn-manager: ""
  1347. name: engines.longhorn.io
  1348. spec:
  1349. group: longhorn.io
  1350. names:
  1351. kind: Engine
  1352. listKind: EngineList
  1353. plural: engines
  1354. shortNames:
  1355. - lhe
  1356. singular: engine
  1357. scope: Namespaced
  1358. versions:
  1359. - additionalPrinterColumns:
  1360. - description: The current state of the engine
  1361. jsonPath: .status.currentState
  1362. name: State
  1363. type: string
  1364. - description: The node that the engine is on
  1365. jsonPath: .spec.nodeID
  1366. name: Node
  1367. type: string
  1368. - description: The instance manager of the engine
  1369. jsonPath: .status.instanceManagerName
  1370. name: InstanceManager
  1371. type: string
  1372. - description: The current image of the engine
  1373. jsonPath: .status.currentImage
  1374. name: Image
  1375. type: string
  1376. - jsonPath: .metadata.creationTimestamp
  1377. name: Age
  1378. type: date
  1379. name: v1beta1
  1380. schema:
  1381. openAPIV3Schema:
  1382. description: Engine is where Longhorn stores engine object.
  1383. properties:
  1384. apiVersion:
  1385. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1386. type: string
  1387. kind:
  1388. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1389. type: string
  1390. metadata:
  1391. type: object
  1392. spec:
  1393. x-kubernetes-preserve-unknown-fields: true
  1394. status:
  1395. x-kubernetes-preserve-unknown-fields: true
  1396. type: object
  1397. served: true
  1398. storage: false
  1399. subresources:
  1400. status: {}
  1401. - additionalPrinterColumns:
  1402. - description: The current state of the engine
  1403. jsonPath: .status.currentState
  1404. name: State
  1405. type: string
  1406. - description: The node that the engine is on
  1407. jsonPath: .spec.nodeID
  1408. name: Node
  1409. type: string
  1410. - description: The instance manager of the engine
  1411. jsonPath: .status.instanceManagerName
  1412. name: InstanceManager
  1413. type: string
  1414. - description: The current image of the engine
  1415. jsonPath: .status.currentImage
  1416. name: Image
  1417. type: string
  1418. - jsonPath: .metadata.creationTimestamp
  1419. name: Age
  1420. type: date
  1421. name: v1beta2
  1422. schema:
  1423. openAPIV3Schema:
  1424. description: Engine is where Longhorn stores engine object.
  1425. properties:
  1426. apiVersion:
  1427. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1428. type: string
  1429. kind:
  1430. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1431. type: string
  1432. metadata:
  1433. type: object
  1434. spec:
  1435. description: EngineSpec defines the desired state of the Longhorn engine
  1436. properties:
  1437. active:
  1438. type: boolean
  1439. backupVolume:
  1440. type: string
  1441. desireState:
  1442. type: string
  1443. disableFrontend:
  1444. type: boolean
  1445. engineImage:
  1446. type: string
  1447. frontend:
  1448. enum:
  1449. - blockdev
  1450. - iscsi
  1451. - ""
  1452. type: string
  1453. logRequested:
  1454. type: boolean
  1455. nodeID:
  1456. type: string
  1457. replicaAddressMap:
  1458. additionalProperties:
  1459. type: string
  1460. type: object
  1461. requestedBackupRestore:
  1462. type: string
  1463. requestedDataSource:
  1464. type: string
  1465. revisionCounterDisabled:
  1466. type: boolean
  1467. salvageRequested:
  1468. type: boolean
  1469. unmapMarkSnapChainRemovedEnabled:
  1470. type: boolean
  1471. upgradedReplicaAddressMap:
  1472. additionalProperties:
  1473. type: string
  1474. type: object
  1475. volumeName:
  1476. type: string
  1477. volumeSize:
  1478. format: int64
  1479. type: string
  1480. type: object
  1481. status:
  1482. description: EngineStatus defines the observed state of the Longhorn engine
  1483. properties:
  1484. backupStatus:
  1485. additionalProperties:
  1486. properties:
  1487. backupURL:
  1488. type: string
  1489. error:
  1490. type: string
  1491. progress:
  1492. type: integer
  1493. replicaAddress:
  1494. type: string
  1495. snapshotName:
  1496. type: string
  1497. state:
  1498. type: string
  1499. type: object
  1500. nullable: true
  1501. type: object
  1502. cloneStatus:
  1503. additionalProperties:
  1504. properties:
  1505. error:
  1506. type: string
  1507. fromReplicaAddress:
  1508. type: string
  1509. isCloning:
  1510. type: boolean
  1511. progress:
  1512. type: integer
  1513. snapshotName:
  1514. type: string
  1515. state:
  1516. type: string
  1517. type: object
  1518. nullable: true
  1519. type: object
  1520. conditions:
  1521. items:
  1522. properties:
  1523. lastProbeTime:
  1524. description: Last time we probed the condition.
  1525. type: string
  1526. lastTransitionTime:
  1527. description: Last time the condition transitioned from one status to another.
  1528. type: string
  1529. message:
  1530. description: Human-readable message indicating details about last transition.
  1531. type: string
  1532. reason:
  1533. description: Unique, one-word, CamelCase reason for the condition's last transition.
  1534. type: string
  1535. status:
  1536. description: Status is the status of the condition. Can be True, False, Unknown.
  1537. type: string
  1538. type:
  1539. description: Type is the type of the condition.
  1540. type: string
  1541. type: object
  1542. nullable: true
  1543. type: array
  1544. currentImage:
  1545. type: string
  1546. currentReplicaAddressMap:
  1547. additionalProperties:
  1548. type: string
  1549. nullable: true
  1550. type: object
  1551. currentSize:
  1552. format: int64
  1553. type: string
  1554. currentState:
  1555. type: string
  1556. endpoint:
  1557. type: string
  1558. instanceManagerName:
  1559. type: string
  1560. ip:
  1561. type: string
  1562. isExpanding:
  1563. type: boolean
  1564. lastExpansionError:
  1565. type: string
  1566. lastExpansionFailedAt:
  1567. type: string
  1568. lastRestoredBackup:
  1569. type: string
  1570. logFetched:
  1571. type: boolean
  1572. ownerID:
  1573. type: string
  1574. port:
  1575. type: integer
  1576. purgeStatus:
  1577. additionalProperties:
  1578. properties:
  1579. error:
  1580. type: string
  1581. isPurging:
  1582. type: boolean
  1583. progress:
  1584. type: integer
  1585. state:
  1586. type: string
  1587. type: object
  1588. nullable: true
  1589. type: object
  1590. rebuildStatus:
  1591. additionalProperties:
  1592. properties:
  1593. error:
  1594. type: string
  1595. fromReplicaAddress:
  1596. type: string
  1597. isRebuilding:
  1598. type: boolean
  1599. progress:
  1600. type: integer
  1601. state:
  1602. type: string
  1603. type: object
  1604. nullable: true
  1605. type: object
  1606. replicaModeMap:
  1607. additionalProperties:
  1608. type: string
  1609. nullable: true
  1610. type: object
  1611. restoreStatus:
  1612. additionalProperties:
  1613. properties:
  1614. backupURL:
  1615. type: string
  1616. currentRestoringBackup:
  1617. type: string
  1618. error:
  1619. type: string
  1620. filename:
  1621. type: string
  1622. isRestoring:
  1623. type: boolean
  1624. lastRestored:
  1625. type: string
  1626. progress:
  1627. type: integer
  1628. state:
  1629. type: string
  1630. type: object
  1631. nullable: true
  1632. type: object
  1633. salvageExecuted:
  1634. type: boolean
  1635. snapshots:
  1636. additionalProperties:
  1637. properties:
  1638. children:
  1639. additionalProperties:
  1640. type: boolean
  1641. nullable: true
  1642. type: object
  1643. created:
  1644. type: string
  1645. labels:
  1646. additionalProperties:
  1647. type: string
  1648. nullable: true
  1649. type: object
  1650. name:
  1651. type: string
  1652. parent:
  1653. type: string
  1654. removed:
  1655. type: boolean
  1656. size:
  1657. type: string
  1658. usercreated:
  1659. type: boolean
  1660. type: object
  1661. nullable: true
  1662. type: object
  1663. snapshotsError:
  1664. type: string
  1665. started:
  1666. type: boolean
  1667. storageIP:
  1668. type: string
  1669. unmapMarkSnapChainRemovedEnabled:
  1670. type: boolean
  1671. type: object
  1672. type: object
  1673. served: true
  1674. storage: true
  1675. subresources:
  1676. status: {}
  1677. status:
  1678. acceptedNames:
  1679. kind: ""
  1680. plural: ""
  1681. conditions: []
  1682. storedVersions: []
  1683. ---
  1684. # Source: longhorn/templates/crds.yaml
  1685. apiVersion: apiextensions.k8s.io/v1
  1686. kind: CustomResourceDefinition
  1687. metadata:
  1688. annotations:
  1689. controller-gen.kubebuilder.io/version: v0.7.0
  1690. creationTimestamp: null
  1691. labels:
  1692. app.kubernetes.io/name: longhorn
  1693. app.kubernetes.io/instance: longhorn
  1694. app.kubernetes.io/version: v1.4.0
  1695. longhorn-manager: ""
  1696. name: instancemanagers.longhorn.io
  1697. spec:
  1698. group: longhorn.io
  1699. names:
  1700. kind: InstanceManager
  1701. listKind: InstanceManagerList
  1702. plural: instancemanagers
  1703. shortNames:
  1704. - lhim
  1705. singular: instancemanager
  1706. scope: Namespaced
  1707. versions:
  1708. - additionalPrinterColumns:
  1709. - description: The state of the instance manager
  1710. jsonPath: .status.currentState
  1711. name: State
  1712. type: string
  1713. - description: The type of the instance manager (engine or replica)
  1714. jsonPath: .spec.type
  1715. name: Type
  1716. type: string
  1717. - description: The node that the instance manager is running on
  1718. jsonPath: .spec.nodeID
  1719. name: Node
  1720. type: string
  1721. - jsonPath: .metadata.creationTimestamp
  1722. name: Age
  1723. type: date
  1724. name: v1beta1
  1725. schema:
  1726. openAPIV3Schema:
  1727. description: InstanceManager is where Longhorn stores instance manager object.
  1728. properties:
  1729. apiVersion:
  1730. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1731. type: string
  1732. kind:
  1733. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1734. type: string
  1735. metadata:
  1736. type: object
  1737. spec:
  1738. x-kubernetes-preserve-unknown-fields: true
  1739. status:
  1740. x-kubernetes-preserve-unknown-fields: true
  1741. type: object
  1742. served: true
  1743. storage: false
  1744. subresources:
  1745. status: {}
  1746. - additionalPrinterColumns:
  1747. - description: The state of the instance manager
  1748. jsonPath: .status.currentState
  1749. name: State
  1750. type: string
  1751. - description: The type of the instance manager (engine or replica)
  1752. jsonPath: .spec.type
  1753. name: Type
  1754. type: string
  1755. - description: The node that the instance manager is running on
  1756. jsonPath: .spec.nodeID
  1757. name: Node
  1758. type: string
  1759. - jsonPath: .metadata.creationTimestamp
  1760. name: Age
  1761. type: date
  1762. name: v1beta2
  1763. schema:
  1764. openAPIV3Schema:
  1765. description: InstanceManager is where Longhorn stores instance manager object.
  1766. properties:
  1767. apiVersion:
  1768. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1769. type: string
  1770. kind:
  1771. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1772. type: string
  1773. metadata:
  1774. type: object
  1775. spec:
  1776. description: InstanceManagerSpec defines the desired state of the Longhorn instancer manager
  1777. properties:
  1778. engineImage:
  1779. description: 'TODO: deprecate this field'
  1780. type: string
  1781. image:
  1782. type: string
  1783. nodeID:
  1784. type: string
  1785. type:
  1786. enum:
  1787. - engine
  1788. - replica
  1789. type: string
  1790. type: object
  1791. status:
  1792. description: InstanceManagerStatus defines the observed state of the Longhorn instance manager
  1793. properties:
  1794. apiMinVersion:
  1795. type: integer
  1796. apiVersion:
  1797. type: integer
  1798. proxyApiMinVersion:
  1799. type: integer
  1800. proxyApiVersion:
  1801. type: integer
  1802. currentState:
  1803. type: string
  1804. instances:
  1805. additionalProperties:
  1806. properties:
  1807. spec:
  1808. properties:
  1809. name:
  1810. type: string
  1811. type: object
  1812. status:
  1813. properties:
  1814. endpoint:
  1815. type: string
  1816. errorMsg:
  1817. type: string
  1818. listen:
  1819. type: string
  1820. portEnd:
  1821. format: int32
  1822. type: integer
  1823. portStart:
  1824. format: int32
  1825. type: integer
  1826. resourceVersion:
  1827. format: int64
  1828. type: integer
  1829. state:
  1830. type: string
  1831. type:
  1832. type: string
  1833. type: object
  1834. type: object
  1835. nullable: true
  1836. type: object
  1837. ip:
  1838. type: string
  1839. ownerID:
  1840. type: string
  1841. type: object
  1842. type: object
  1843. served: true
  1844. storage: true
  1845. subresources:
  1846. status: {}
  1847. status:
  1848. acceptedNames:
  1849. kind: ""
  1850. plural: ""
  1851. conditions: []
  1852. storedVersions: []
  1853. ---
  1854. # Source: longhorn/templates/crds.yaml
  1855. apiVersion: apiextensions.k8s.io/v1
  1856. kind: CustomResourceDefinition
  1857. metadata:
  1858. annotations:
  1859. controller-gen.kubebuilder.io/version: v0.7.0
  1860. creationTimestamp: null
  1861. labels:
  1862. app.kubernetes.io/name: longhorn
  1863. app.kubernetes.io/instance: longhorn
  1864. app.kubernetes.io/version: v1.4.0
  1865. longhorn-manager: ""
  1866. name: nodes.longhorn.io
  1867. spec:
  1868. preserveUnknownFields: false
  1869. conversion:
  1870. strategy: Webhook
  1871. webhook:
  1872. clientConfig:
  1873. service:
  1874. name: longhorn-conversion-webhook
  1875. namespace: longhorn-system
  1876. path: /v1/webhook/conversion
  1877. port: 9443
  1878. conversionReviewVersions:
  1879. - v1beta2
  1880. - v1beta1
  1881. group: longhorn.io
  1882. names:
  1883. kind: Node
  1884. listKind: NodeList
  1885. plural: nodes
  1886. shortNames:
  1887. - lhn
  1888. singular: node
  1889. scope: Namespaced
  1890. versions:
  1891. - additionalPrinterColumns:
  1892. - description: Indicate whether the node is ready
  1893. jsonPath: .status.conditions['Ready']['status']
  1894. name: Ready
  1895. type: string
  1896. - description: Indicate whether the user disabled/enabled replica scheduling for the node
  1897. jsonPath: .spec.allowScheduling
  1898. name: AllowScheduling
  1899. type: boolean
  1900. - description: Indicate whether Longhorn can schedule replicas on the node
  1901. jsonPath: .status.conditions['Schedulable']['status']
  1902. name: Schedulable
  1903. type: string
  1904. - jsonPath: .metadata.creationTimestamp
  1905. name: Age
  1906. type: date
  1907. name: v1beta1
  1908. schema:
  1909. openAPIV3Schema:
  1910. description: Node is where Longhorn stores Longhorn node object.
  1911. properties:
  1912. apiVersion:
  1913. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1914. type: string
  1915. kind:
  1916. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1917. type: string
  1918. metadata:
  1919. type: object
  1920. spec:
  1921. x-kubernetes-preserve-unknown-fields: true
  1922. status:
  1923. x-kubernetes-preserve-unknown-fields: true
  1924. type: object
  1925. served: true
  1926. storage: false
  1927. subresources:
  1928. status: {}
  1929. - additionalPrinterColumns:
  1930. - description: Indicate whether the node is ready
  1931. jsonPath: .status.conditions[?(@.type=='Ready')].status
  1932. name: Ready
  1933. type: string
  1934. - description: Indicate whether the user disabled/enabled replica scheduling for the node
  1935. jsonPath: .spec.allowScheduling
  1936. name: AllowScheduling
  1937. type: boolean
  1938. - description: Indicate whether Longhorn can schedule replicas on the node
  1939. jsonPath: .status.conditions[?(@.type=='Schedulable')].status
  1940. name: Schedulable
  1941. type: string
  1942. - jsonPath: .metadata.creationTimestamp
  1943. name: Age
  1944. type: date
  1945. name: v1beta2
  1946. schema:
  1947. openAPIV3Schema:
  1948. description: Node is where Longhorn stores Longhorn node object.
  1949. properties:
  1950. apiVersion:
  1951. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  1952. type: string
  1953. kind:
  1954. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  1955. type: string
  1956. metadata:
  1957. type: object
  1958. spec:
  1959. description: NodeSpec defines the desired state of the Longhorn node
  1960. properties:
  1961. allowScheduling:
  1962. type: boolean
  1963. disks:
  1964. additionalProperties:
  1965. properties:
  1966. allowScheduling:
  1967. type: boolean
  1968. evictionRequested:
  1969. type: boolean
  1970. path:
  1971. type: string
  1972. storageReserved:
  1973. format: int64
  1974. type: integer
  1975. tags:
  1976. items:
  1977. type: string
  1978. type: array
  1979. type: object
  1980. type: object
  1981. engineManagerCPURequest:
  1982. type: integer
  1983. evictionRequested:
  1984. type: boolean
  1985. name:
  1986. type: string
  1987. replicaManagerCPURequest:
  1988. type: integer
  1989. tags:
  1990. items:
  1991. type: string
  1992. type: array
  1993. type: object
  1994. status:
  1995. description: NodeStatus defines the observed state of the Longhorn node
  1996. properties:
  1997. conditions:
  1998. items:
  1999. properties:
  2000. lastProbeTime:
  2001. description: Last time we probed the condition.
  2002. type: string
  2003. lastTransitionTime:
  2004. description: Last time the condition transitioned from one status to another.
  2005. type: string
  2006. message:
  2007. description: Human-readable message indicating details about last transition.
  2008. type: string
  2009. reason:
  2010. description: Unique, one-word, CamelCase reason for the condition's last transition.
  2011. type: string
  2012. status:
  2013. description: Status is the status of the condition. Can be True, False, Unknown.
  2014. type: string
  2015. type:
  2016. description: Type is the type of the condition.
  2017. type: string
  2018. type: object
  2019. nullable: true
  2020. type: array
  2021. diskStatus:
  2022. additionalProperties:
  2023. properties:
  2024. conditions:
  2025. items:
  2026. properties:
  2027. lastProbeTime:
  2028. description: Last time we probed the condition.
  2029. type: string
  2030. lastTransitionTime:
  2031. description: Last time the condition transitioned from one status to another.
  2032. type: string
  2033. message:
  2034. description: Human-readable message indicating details about last transition.
  2035. type: string
  2036. reason:
  2037. description: Unique, one-word, CamelCase reason for the condition's last transition.
  2038. type: string
  2039. status:
  2040. description: Status is the status of the condition. Can be True, False, Unknown.
  2041. type: string
  2042. type:
  2043. description: Type is the type of the condition.
  2044. type: string
  2045. type: object
  2046. nullable: true
  2047. type: array
  2048. diskUUID:
  2049. type: string
  2050. scheduledReplica:
  2051. additionalProperties:
  2052. format: int64
  2053. type: integer
  2054. nullable: true
  2055. type: object
  2056. storageAvailable:
  2057. format: int64
  2058. type: integer
  2059. storageMaximum:
  2060. format: int64
  2061. type: integer
  2062. storageScheduled:
  2063. format: int64
  2064. type: integer
  2065. type: object
  2066. nullable: true
  2067. type: object
  2068. region:
  2069. type: string
  2070. snapshotCheckStatus:
  2071. properties:
  2072. lastPeriodicCheckedAt:
  2073. format: date-time
  2074. type: string
  2075. snapshotCheckState:
  2076. type: string
  2077. type: object
  2078. zone:
  2079. type: string
  2080. type: object
  2081. type: object
  2082. served: true
  2083. storage: true
  2084. subresources:
  2085. status: {}
  2086. status:
  2087. acceptedNames:
  2088. kind: ""
  2089. plural: ""
  2090. conditions: []
  2091. storedVersions: []
  2092. ---
  2093. # Source: longhorn/templates/crds.yaml
  2094. apiVersion: apiextensions.k8s.io/v1
  2095. kind: CustomResourceDefinition
  2096. metadata:
  2097. annotations:
  2098. controller-gen.kubebuilder.io/version: v0.7.0
  2099. creationTimestamp: null
  2100. labels:
  2101. app.kubernetes.io/name: longhorn
  2102. app.kubernetes.io/instance: longhorn
  2103. app.kubernetes.io/version: v1.4.0
  2104. longhorn-manager: ""
  2105. name: orphans.longhorn.io
  2106. spec:
  2107. group: longhorn.io
  2108. names:
  2109. kind: Orphan
  2110. listKind: OrphanList
  2111. plural: orphans
  2112. shortNames:
  2113. - lho
  2114. singular: orphan
  2115. scope: Namespaced
  2116. versions:
  2117. - additionalPrinterColumns:
  2118. - description: The type of the orphan
  2119. jsonPath: .spec.orphanType
  2120. name: Type
  2121. type: string
  2122. - description: The node that the orphan is on
  2123. jsonPath: .spec.nodeID
  2124. name: Node
  2125. type: string
  2126. name: v1beta2
  2127. schema:
  2128. openAPIV3Schema:
  2129. description: Orphan is where Longhorn stores orphan object.
  2130. properties:
  2131. apiVersion:
  2132. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2133. type: string
  2134. kind:
  2135. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2136. type: string
  2137. metadata:
  2138. type: object
  2139. spec:
  2140. description: OrphanSpec defines the desired state of the Longhorn orphaned data
  2141. properties:
  2142. nodeID:
  2143. description: The node ID on which the controller is responsible to reconcile this orphan CR.
  2144. type: string
  2145. orphanType:
  2146. description: The type of the orphaned data. Can be "replica".
  2147. type: string
  2148. parameters:
  2149. additionalProperties:
  2150. type: string
  2151. description: The parameters of the orphaned data
  2152. type: object
  2153. type: object
  2154. status:
  2155. description: OrphanStatus defines the observed state of the Longhorn orphaned data
  2156. properties:
  2157. conditions:
  2158. items:
  2159. properties:
  2160. lastProbeTime:
  2161. description: Last time we probed the condition.
  2162. type: string
  2163. lastTransitionTime:
  2164. description: Last time the condition transitioned from one status to another.
  2165. type: string
  2166. message:
  2167. description: Human-readable message indicating details about last transition.
  2168. type: string
  2169. reason:
  2170. description: Unique, one-word, CamelCase reason for the condition's last transition.
  2171. type: string
  2172. status:
  2173. description: Status is the status of the condition. Can be True, False, Unknown.
  2174. type: string
  2175. type:
  2176. description: Type is the type of the condition.
  2177. type: string
  2178. type: object
  2179. nullable: true
  2180. type: array
  2181. ownerID:
  2182. type: string
  2183. type: object
  2184. type: object
  2185. served: true
  2186. storage: true
  2187. subresources:
  2188. status: {}
  2189. status:
  2190. acceptedNames:
  2191. kind: ""
  2192. plural: ""
  2193. conditions: []
  2194. storedVersions: []
  2195. ---
  2196. # Source: longhorn/templates/crds.yaml
  2197. apiVersion: apiextensions.k8s.io/v1
  2198. kind: CustomResourceDefinition
  2199. metadata:
  2200. annotations:
  2201. controller-gen.kubebuilder.io/version: v0.7.0
  2202. creationTimestamp: null
  2203. labels:
  2204. longhorn-manager: ""
  2205. name: recurringjobs.longhorn.io
  2206. spec:
  2207. group: longhorn.io
  2208. names:
  2209. kind: RecurringJob
  2210. listKind: RecurringJobList
  2211. plural: recurringjobs
  2212. shortNames:
  2213. - lhrj
  2214. singular: recurringjob
  2215. scope: Namespaced
  2216. versions:
  2217. - additionalPrinterColumns:
  2218. - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume
  2219. jsonPath: .spec.groups
  2220. name: Groups
  2221. type: string
  2222. - description: Should be one of "backup" or "snapshot"
  2223. jsonPath: .spec.task
  2224. name: Task
  2225. type: string
  2226. - description: The cron expression represents recurring job scheduling
  2227. jsonPath: .spec.cron
  2228. name: Cron
  2229. type: string
  2230. - description: The number of snapshots/backups to keep for the volume
  2231. jsonPath: .spec.retain
  2232. name: Retain
  2233. type: integer
  2234. - description: The concurrent job to run by each cron job
  2235. jsonPath: .spec.concurrency
  2236. name: Concurrency
  2237. type: integer
  2238. - jsonPath: .metadata.creationTimestamp
  2239. name: Age
  2240. type: date
  2241. - description: Specify the labels
  2242. jsonPath: .spec.labels
  2243. name: Labels
  2244. type: string
  2245. name: v1beta1
  2246. schema:
  2247. openAPIV3Schema:
  2248. description: RecurringJob is where Longhorn stores recurring job object.
  2249. properties:
  2250. apiVersion:
  2251. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2252. type: string
  2253. kind:
  2254. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2255. type: string
  2256. metadata:
  2257. type: object
  2258. spec:
  2259. x-kubernetes-preserve-unknown-fields: true
  2260. status:
  2261. x-kubernetes-preserve-unknown-fields: true
  2262. type: object
  2263. served: true
  2264. storage: false
  2265. subresources:
  2266. status: {}
  2267. - additionalPrinterColumns:
  2268. - description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume
  2269. jsonPath: .spec.groups
  2270. name: Groups
  2271. type: string
  2272. - description: Should be one of "backup" or "snapshot"
  2273. jsonPath: .spec.task
  2274. name: Task
  2275. type: string
  2276. - description: The cron expression represents recurring job scheduling
  2277. jsonPath: .spec.cron
  2278. name: Cron
  2279. type: string
  2280. - description: The number of snapshots/backups to keep for the volume
  2281. jsonPath: .spec.retain
  2282. name: Retain
  2283. type: integer
  2284. - description: The concurrent job to run by each cron job
  2285. jsonPath: .spec.concurrency
  2286. name: Concurrency
  2287. type: integer
  2288. - jsonPath: .metadata.creationTimestamp
  2289. name: Age
  2290. type: date
  2291. - description: Specify the labels
  2292. jsonPath: .spec.labels
  2293. name: Labels
  2294. type: string
  2295. name: v1beta2
  2296. schema:
  2297. openAPIV3Schema:
  2298. description: RecurringJob is where Longhorn stores recurring job object.
  2299. properties:
  2300. apiVersion:
  2301. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2302. type: string
  2303. kind:
  2304. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2305. type: string
  2306. metadata:
  2307. type: object
  2308. spec:
  2309. description: RecurringJobSpec defines the desired state of the Longhorn recurring job
  2310. properties:
  2311. concurrency:
  2312. description: The concurrency of taking the snapshot/backup.
  2313. type: integer
  2314. cron:
  2315. description: The cron setting.
  2316. type: string
  2317. groups:
  2318. description: The recurring job group.
  2319. items:
  2320. type: string
  2321. type: array
  2322. labels:
  2323. additionalProperties:
  2324. type: string
  2325. description: The label of the snapshot/backup.
  2326. type: object
  2327. name:
  2328. description: The recurring job name.
  2329. type: string
  2330. retain:
  2331. description: The retain count of the snapshot/backup.
  2332. type: integer
  2333. task:
  2334. description: The recurring job type. Can be "snapshot" or "backup".
  2335. enum:
  2336. - snapshot
  2337. - backup
  2338. type: string
  2339. type: object
  2340. status:
  2341. description: RecurringJobStatus defines the observed state of the Longhorn recurring job
  2342. properties:
  2343. ownerID:
  2344. description: The owner ID which is responsible to reconcile this recurring job CR.
  2345. type: string
  2346. type: object
  2347. type: object
  2348. served: true
  2349. storage: true
  2350. subresources:
  2351. status: {}
  2352. status:
  2353. acceptedNames:
  2354. kind: ""
  2355. plural: ""
  2356. conditions: []
  2357. storedVersions: []
  2358. ---
  2359. # Source: longhorn/templates/crds.yaml
  2360. apiVersion: apiextensions.k8s.io/v1
  2361. kind: CustomResourceDefinition
  2362. metadata:
  2363. annotations:
  2364. controller-gen.kubebuilder.io/version: v0.7.0
  2365. creationTimestamp: null
  2366. labels:
  2367. app.kubernetes.io/name: longhorn
  2368. app.kubernetes.io/instance: longhorn
  2369. app.kubernetes.io/version: v1.4.0
  2370. longhorn-manager: ""
  2371. name: replicas.longhorn.io
  2372. spec:
  2373. group: longhorn.io
  2374. names:
  2375. kind: Replica
  2376. listKind: ReplicaList
  2377. plural: replicas
  2378. shortNames:
  2379. - lhr
  2380. singular: replica
  2381. scope: Namespaced
  2382. versions:
  2383. - additionalPrinterColumns:
  2384. - description: The current state of the replica
  2385. jsonPath: .status.currentState
  2386. name: State
  2387. type: string
  2388. - description: The node that the replica is on
  2389. jsonPath: .spec.nodeID
  2390. name: Node
  2391. type: string
  2392. - description: The disk that the replica is on
  2393. jsonPath: .spec.diskID
  2394. name: Disk
  2395. type: string
  2396. - description: The instance manager of the replica
  2397. jsonPath: .status.instanceManagerName
  2398. name: InstanceManager
  2399. type: string
  2400. - description: The current image of the replica
  2401. jsonPath: .status.currentImage
  2402. name: Image
  2403. type: string
  2404. - jsonPath: .metadata.creationTimestamp
  2405. name: Age
  2406. type: date
  2407. name: v1beta1
  2408. schema:
  2409. openAPIV3Schema:
  2410. description: Replica is where Longhorn stores replica object.
  2411. properties:
  2412. apiVersion:
  2413. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2414. type: string
  2415. kind:
  2416. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2417. type: string
  2418. metadata:
  2419. type: object
  2420. spec:
  2421. x-kubernetes-preserve-unknown-fields: true
  2422. status:
  2423. x-kubernetes-preserve-unknown-fields: true
  2424. type: object
  2425. served: true
  2426. storage: false
  2427. subresources:
  2428. status: {}
  2429. - additionalPrinterColumns:
  2430. - description: The current state of the replica
  2431. jsonPath: .status.currentState
  2432. name: State
  2433. type: string
  2434. - description: The node that the replica is on
  2435. jsonPath: .spec.nodeID
  2436. name: Node
  2437. type: string
  2438. - description: The disk that the replica is on
  2439. jsonPath: .spec.diskID
  2440. name: Disk
  2441. type: string
  2442. - description: The instance manager of the replica
  2443. jsonPath: .status.instanceManagerName
  2444. name: InstanceManager
  2445. type: string
  2446. - description: The current image of the replica
  2447. jsonPath: .status.currentImage
  2448. name: Image
  2449. type: string
  2450. - jsonPath: .metadata.creationTimestamp
  2451. name: Age
  2452. type: date
  2453. name: v1beta2
  2454. schema:
  2455. openAPIV3Schema:
  2456. description: Replica is where Longhorn stores replica object.
  2457. properties:
  2458. apiVersion:
  2459. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2460. type: string
  2461. kind:
  2462. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2463. type: string
  2464. metadata:
  2465. type: object
  2466. spec:
  2467. description: ReplicaSpec defines the desired state of the Longhorn replica
  2468. properties:
  2469. active:
  2470. type: boolean
  2471. backingImage:
  2472. type: string
  2473. baseImage:
  2474. description: Deprecated. Rename to BackingImage
  2475. type: string
  2476. dataDirectoryName:
  2477. type: string
  2478. dataPath:
  2479. description: Deprecated
  2480. type: string
  2481. desireState:
  2482. type: string
  2483. diskID:
  2484. type: string
  2485. diskPath:
  2486. type: string
  2487. engineImage:
  2488. type: string
  2489. engineName:
  2490. type: string
  2491. failedAt:
  2492. type: string
  2493. hardNodeAffinity:
  2494. type: string
  2495. healthyAt:
  2496. type: string
  2497. logRequested:
  2498. type: boolean
  2499. nodeID:
  2500. type: string
  2501. rebuildRetryCount:
  2502. type: integer
  2503. revisionCounterDisabled:
  2504. type: boolean
  2505. salvageRequested:
  2506. type: boolean
  2507. unmapMarkDiskChainRemovedEnabled:
  2508. type: boolean
  2509. volumeName:
  2510. type: string
  2511. volumeSize:
  2512. format: int64
  2513. type: string
  2514. type: object
  2515. status:
  2516. description: ReplicaStatus defines the observed state of the Longhorn replica
  2517. properties:
  2518. conditions:
  2519. items:
  2520. properties:
  2521. lastProbeTime:
  2522. description: Last time we probed the condition.
  2523. type: string
  2524. lastTransitionTime:
  2525. description: Last time the condition transitioned from one status to another.
  2526. type: string
  2527. message:
  2528. description: Human-readable message indicating details about last transition.
  2529. type: string
  2530. reason:
  2531. description: Unique, one-word, CamelCase reason for the condition's last transition.
  2532. type: string
  2533. status:
  2534. description: Status is the status of the condition. Can be True, False, Unknown.
  2535. type: string
  2536. type:
  2537. description: Type is the type of the condition.
  2538. type: string
  2539. type: object
  2540. nullable: true
  2541. type: array
  2542. currentImage:
  2543. type: string
  2544. currentState:
  2545. type: string
  2546. evictionRequested:
  2547. type: boolean
  2548. instanceManagerName:
  2549. type: string
  2550. ip:
  2551. type: string
  2552. logFetched:
  2553. type: boolean
  2554. ownerID:
  2555. type: string
  2556. port:
  2557. type: integer
  2558. salvageExecuted:
  2559. type: boolean
  2560. started:
  2561. type: boolean
  2562. storageIP:
  2563. type: string
  2564. type: object
  2565. type: object
  2566. served: true
  2567. storage: true
  2568. subresources:
  2569. status: {}
  2570. status:
  2571. acceptedNames:
  2572. kind: ""
  2573. plural: ""
  2574. conditions: []
  2575. storedVersions: []
  2576. ---
  2577. # Source: longhorn/templates/crds.yaml
  2578. apiVersion: apiextensions.k8s.io/v1
  2579. kind: CustomResourceDefinition
  2580. metadata:
  2581. annotations:
  2582. controller-gen.kubebuilder.io/version: v0.7.0
  2583. creationTimestamp: null
  2584. labels:
  2585. app.kubernetes.io/name: longhorn
  2586. app.kubernetes.io/instance: longhorn
  2587. app.kubernetes.io/version: v1.4.0
  2588. longhorn-manager: ""
  2589. name: settings.longhorn.io
  2590. spec:
  2591. group: longhorn.io
  2592. names:
  2593. kind: Setting
  2594. listKind: SettingList
  2595. plural: settings
  2596. shortNames:
  2597. - lhs
  2598. singular: setting
  2599. scope: Namespaced
  2600. versions:
  2601. - additionalPrinterColumns:
  2602. - description: The value of the setting
  2603. jsonPath: .value
  2604. name: Value
  2605. type: string
  2606. - jsonPath: .metadata.creationTimestamp
  2607. name: Age
  2608. type: date
  2609. name: v1beta1
  2610. schema:
  2611. openAPIV3Schema:
  2612. description: Setting is where Longhorn stores setting object.
  2613. properties:
  2614. apiVersion:
  2615. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2616. type: string
  2617. kind:
  2618. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2619. type: string
  2620. metadata:
  2621. type: object
  2622. value:
  2623. type: string
  2624. required:
  2625. - value
  2626. type: object
  2627. served: true
  2628. storage: false
  2629. subresources:
  2630. status: {}
  2631. - additionalPrinterColumns:
  2632. - description: The value of the setting
  2633. jsonPath: .value
  2634. name: Value
  2635. type: string
  2636. - jsonPath: .metadata.creationTimestamp
  2637. name: Age
  2638. type: date
  2639. name: v1beta2
  2640. schema:
  2641. openAPIV3Schema:
  2642. description: Setting is where Longhorn stores setting object.
  2643. properties:
  2644. apiVersion:
  2645. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2646. type: string
  2647. kind:
  2648. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2649. type: string
  2650. metadata:
  2651. type: object
  2652. value:
  2653. type: string
  2654. required:
  2655. - value
  2656. type: object
  2657. served: true
  2658. storage: true
  2659. subresources:
  2660. status: {}
  2661. status:
  2662. acceptedNames:
  2663. kind: ""
  2664. plural: ""
  2665. conditions: []
  2666. storedVersions: []
  2667. ---
  2668. # Source: longhorn/templates/crds.yaml
  2669. apiVersion: apiextensions.k8s.io/v1
  2670. kind: CustomResourceDefinition
  2671. metadata:
  2672. annotations:
  2673. controller-gen.kubebuilder.io/version: v0.7.0
  2674. creationTimestamp: null
  2675. labels:
  2676. app.kubernetes.io/name: longhorn
  2677. app.kubernetes.io/instance: longhorn
  2678. app.kubernetes.io/version: v1.4.0
  2679. longhorn-manager: ""
  2680. name: sharemanagers.longhorn.io
  2681. spec:
  2682. group: longhorn.io
  2683. names:
  2684. kind: ShareManager
  2685. listKind: ShareManagerList
  2686. plural: sharemanagers
  2687. shortNames:
  2688. - lhsm
  2689. singular: sharemanager
  2690. scope: Namespaced
  2691. versions:
  2692. - additionalPrinterColumns:
  2693. - description: The state of the share manager
  2694. jsonPath: .status.state
  2695. name: State
  2696. type: string
  2697. - description: The node that the share manager is owned by
  2698. jsonPath: .status.ownerID
  2699. name: Node
  2700. type: string
  2701. - jsonPath: .metadata.creationTimestamp
  2702. name: Age
  2703. type: date
  2704. name: v1beta1
  2705. schema:
  2706. openAPIV3Schema:
  2707. description: ShareManager is where Longhorn stores share manager object.
  2708. properties:
  2709. apiVersion:
  2710. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2711. type: string
  2712. kind:
  2713. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2714. type: string
  2715. metadata:
  2716. type: object
  2717. spec:
  2718. x-kubernetes-preserve-unknown-fields: true
  2719. status:
  2720. x-kubernetes-preserve-unknown-fields: true
  2721. type: object
  2722. served: true
  2723. storage: false
  2724. subresources:
  2725. status: {}
  2726. - additionalPrinterColumns:
  2727. - description: The state of the share manager
  2728. jsonPath: .status.state
  2729. name: State
  2730. type: string
  2731. - description: The node that the share manager is owned by
  2732. jsonPath: .status.ownerID
  2733. name: Node
  2734. type: string
  2735. - jsonPath: .metadata.creationTimestamp
  2736. name: Age
  2737. type: date
  2738. name: v1beta2
  2739. schema:
  2740. openAPIV3Schema:
  2741. description: ShareManager is where Longhorn stores share manager object.
  2742. properties:
  2743. apiVersion:
  2744. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2745. type: string
  2746. kind:
  2747. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2748. type: string
  2749. metadata:
  2750. type: object
  2751. spec:
  2752. description: ShareManagerSpec defines the desired state of the Longhorn share manager
  2753. properties:
  2754. image:
  2755. type: string
  2756. type: object
  2757. status:
  2758. description: ShareManagerStatus defines the observed state of the Longhorn share manager
  2759. properties:
  2760. endpoint:
  2761. type: string
  2762. ownerID:
  2763. type: string
  2764. state:
  2765. type: string
  2766. type: object
  2767. type: object
  2768. served: true
  2769. storage: true
  2770. subresources:
  2771. status: {}
  2772. status:
  2773. acceptedNames:
  2774. kind: ""
  2775. plural: ""
  2776. conditions: []
  2777. storedVersions: []
  2778. ---
  2779. # Source: longhorn/templates/crds.yaml
  2780. apiVersion: apiextensions.k8s.io/v1
  2781. kind: CustomResourceDefinition
  2782. metadata:
  2783. annotations:
  2784. controller-gen.kubebuilder.io/version: v0.7.0
  2785. creationTimestamp: null
  2786. labels:
  2787. app.kubernetes.io/name: longhorn
  2788. app.kubernetes.io/instance: longhorn
  2789. app.kubernetes.io/version: v1.4.0
  2790. longhorn-manager: ""
  2791. name: snapshots.longhorn.io
  2792. spec:
  2793. group: longhorn.io
  2794. names:
  2795. kind: Snapshot
  2796. listKind: SnapshotList
  2797. plural: snapshots
  2798. shortNames:
  2799. - lhsnap
  2800. singular: snapshot
  2801. scope: Namespaced
  2802. versions:
  2803. - additionalPrinterColumns:
  2804. - description: The volume that this snapshot belongs to
  2805. jsonPath: .spec.volume
  2806. name: Volume
  2807. type: string
  2808. - description: Timestamp when the point-in-time snapshot was taken
  2809. jsonPath: .status.creationTime
  2810. name: CreationTime
  2811. type: string
  2812. - description: Indicates if the snapshot is ready to be used to restore/backup a volume
  2813. jsonPath: .status.readyToUse
  2814. name: ReadyToUse
  2815. type: boolean
  2816. - description: Represents the minimum size of volume required to rehydrate from this snapshot
  2817. jsonPath: .status.restoreSize
  2818. name: RestoreSize
  2819. type: string
  2820. - description: The actual size of the snapshot
  2821. jsonPath: .status.size
  2822. name: Size
  2823. type: string
  2824. - jsonPath: .metadata.creationTimestamp
  2825. name: Age
  2826. type: date
  2827. name: v1beta2
  2828. schema:
  2829. openAPIV3Schema:
  2830. description: Snapshot is the Schema for the snapshots API
  2831. properties:
  2832. apiVersion:
  2833. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2834. type: string
  2835. kind:
  2836. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2837. type: string
  2838. metadata:
  2839. type: object
  2840. spec:
  2841. description: SnapshotSpec defines the desired state of Longhorn Snapshot
  2842. properties:
  2843. createSnapshot:
  2844. description: require creating a new snapshot
  2845. type: boolean
  2846. labels:
  2847. additionalProperties:
  2848. type: string
  2849. description: The labels of snapshot
  2850. nullable: true
  2851. type: object
  2852. volume:
  2853. description: the volume that this snapshot belongs to. This field is immutable after creation. Required
  2854. type: string
  2855. required:
  2856. - volume
  2857. type: object
  2858. status:
  2859. description: SnapshotStatus defines the observed state of Longhorn Snapshot
  2860. properties:
  2861. checksum:
  2862. type: string
  2863. children:
  2864. additionalProperties:
  2865. type: boolean
  2866. nullable: true
  2867. type: object
  2868. creationTime:
  2869. type: string
  2870. error:
  2871. type: string
  2872. labels:
  2873. additionalProperties:
  2874. type: string
  2875. nullable: true
  2876. type: object
  2877. markRemoved:
  2878. type: boolean
  2879. ownerID:
  2880. type: string
  2881. parent:
  2882. type: string
  2883. readyToUse:
  2884. type: boolean
  2885. restoreSize:
  2886. format: int64
  2887. type: integer
  2888. size:
  2889. format: int64
  2890. type: integer
  2891. userCreated:
  2892. type: boolean
  2893. type: object
  2894. type: object
  2895. served: true
  2896. storage: true
  2897. subresources:
  2898. status: {}
  2899. status:
  2900. acceptedNames:
  2901. kind: ""
  2902. plural: ""
  2903. conditions: []
  2904. storedVersions: []
  2905. ---
  2906. # Source: longhorn/templates/crds.yaml
  2907. apiVersion: apiextensions.k8s.io/v1
  2908. kind: CustomResourceDefinition
  2909. metadata:
  2910. annotations:
  2911. controller-gen.kubebuilder.io/version: v0.7.0
  2912. creationTimestamp: null
  2913. labels:
  2914. app.kubernetes.io/name: longhorn
  2915. app.kubernetes.io/instance: longhorn
  2916. app.kubernetes.io/version: v1.4.0
  2917. longhorn-manager: ""
  2918. name: supportbundles.longhorn.io
  2919. spec:
  2920. group: longhorn.io
  2921. names:
  2922. kind: SupportBundle
  2923. listKind: SupportBundleList
  2924. plural: supportbundles
  2925. shortNames:
  2926. - lhbundle
  2927. singular: supportbundle
  2928. scope: Namespaced
  2929. versions:
  2930. - additionalPrinterColumns:
  2931. - description: The state of the support bundle
  2932. jsonPath: .status.state
  2933. name: State
  2934. type: string
  2935. - description: The issue URL
  2936. jsonPath: .spec.issueURL
  2937. name: Issue
  2938. type: string
  2939. - description: A brief description of the issue
  2940. jsonPath: .spec.description
  2941. name: Description
  2942. type: string
  2943. - jsonPath: .metadata.creationTimestamp
  2944. name: Age
  2945. type: date
  2946. name: v1beta2
  2947. schema:
  2948. openAPIV3Schema:
  2949. description: SupportBundle is where Longhorn stores support bundle object
  2950. properties:
  2951. apiVersion:
  2952. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  2953. type: string
  2954. kind:
  2955. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  2956. type: string
  2957. metadata:
  2958. type: object
  2959. spec:
  2960. description: SupportBundleSpec defines the desired state of the Longhorn SupportBundle
  2961. properties:
  2962. description:
  2963. description: A brief description of the issue
  2964. type: string
  2965. issueURL:
  2966. description: The issue URL
  2967. nullable: true
  2968. type: string
  2969. nodeID:
  2970. description: The preferred responsible controller node ID.
  2971. type: string
  2972. required:
  2973. - description
  2974. type: object
  2975. status:
  2976. description: SupportBundleStatus defines the observed state of the Longhorn SupportBundle
  2977. properties:
  2978. conditions:
  2979. items:
  2980. properties:
  2981. lastProbeTime:
  2982. description: Last time we probed the condition.
  2983. type: string
  2984. lastTransitionTime:
  2985. description: Last time the condition transitioned from one status to another.
  2986. type: string
  2987. message:
  2988. description: Human-readable message indicating details about last transition.
  2989. type: string
  2990. reason:
  2991. description: Unique, one-word, CamelCase reason for the condition's last transition.
  2992. type: string
  2993. status:
  2994. description: Status is the status of the condition. Can be True, False, Unknown.
  2995. type: string
  2996. type:
  2997. description: Type is the type of the condition.
  2998. type: string
  2999. type: object
  3000. type: array
  3001. filename:
  3002. type: string
  3003. filesize:
  3004. format: int64
  3005. type: integer
  3006. image:
  3007. description: The support bundle manager image
  3008. type: string
  3009. managerIP:
  3010. description: The support bundle manager IP
  3011. type: string
  3012. ownerID:
  3013. description: The current responsible controller node ID
  3014. type: string
  3015. progress:
  3016. type: integer
  3017. state:
  3018. type: string
  3019. type: object
  3020. type: object
  3021. served: true
  3022. storage: true
  3023. subresources:
  3024. status: {}
  3025. status:
  3026. acceptedNames:
  3027. kind: ""
  3028. plural: ""
  3029. conditions: []
  3030. storedVersions: []
  3031. ---
  3032. # Source: longhorn/templates/crds.yaml
  3033. apiVersion: apiextensions.k8s.io/v1
  3034. kind: CustomResourceDefinition
  3035. metadata:
  3036. annotations:
  3037. controller-gen.kubebuilder.io/version: v0.7.0
  3038. creationTimestamp: null
  3039. labels:
  3040. app.kubernetes.io/name: longhorn
  3041. app.kubernetes.io/instance: longhorn
  3042. app.kubernetes.io/version: v1.4.0
  3043. longhorn-manager: ""
  3044. name: systembackups.longhorn.io
  3045. spec:
  3046. group: longhorn.io
  3047. names:
  3048. kind: SystemBackup
  3049. listKind: SystemBackupList
  3050. plural: systembackups
  3051. shortNames:
  3052. - lhsb
  3053. singular: systembackup
  3054. scope: Namespaced
  3055. versions:
  3056. - additionalPrinterColumns:
  3057. - description: The system backup Longhorn version
  3058. jsonPath: .status.version
  3059. name: Version
  3060. type: string
  3061. - description: The system backup state
  3062. jsonPath: .status.state
  3063. name: State
  3064. type: string
  3065. - description: The system backup creation time
  3066. jsonPath: .status.createdAt
  3067. name: Created
  3068. type: string
  3069. - description: The last time that the system backup was synced into the cluster
  3070. jsonPath: .status.lastSyncedAt
  3071. name: LastSyncedAt
  3072. type: string
  3073. name: v1beta2
  3074. schema:
  3075. openAPIV3Schema:
  3076. description: SystemBackup is where Longhorn stores system backup object
  3077. properties:
  3078. apiVersion:
  3079. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  3080. type: string
  3081. kind:
  3082. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  3083. type: string
  3084. metadata:
  3085. type: object
  3086. spec:
  3087. description: SystemBackupSpec defines the desired state of the Longhorn SystemBackup
  3088. type: object
  3089. status:
  3090. description: SystemBackupStatus defines the observed state of the Longhorn SystemBackup
  3091. properties:
  3092. conditions:
  3093. items:
  3094. properties:
  3095. lastProbeTime:
  3096. description: Last time we probed the condition.
  3097. type: string
  3098. lastTransitionTime:
  3099. description: Last time the condition transitioned from one status to another.
  3100. type: string
  3101. message:
  3102. description: Human-readable message indicating details about last transition.
  3103. type: string
  3104. reason:
  3105. description: Unique, one-word, CamelCase reason for the condition's last transition.
  3106. type: string
  3107. status:
  3108. description: Status is the status of the condition. Can be True, False, Unknown.
  3109. type: string
  3110. type:
  3111. description: Type is the type of the condition.
  3112. type: string
  3113. type: object
  3114. nullable: true
  3115. type: array
  3116. createdAt:
  3117. description: The system backup creation time.
  3118. format: date-time
  3119. type: string
  3120. gitCommit:
  3121. description: The saved Longhorn manager git commit.
  3122. nullable: true
  3123. type: string
  3124. lastSyncedAt:
  3125. description: The last time that the system backup was synced into the cluster.
  3126. format: date-time
  3127. nullable: true
  3128. type: string
  3129. managerImage:
  3130. description: The saved manager image.
  3131. type: string
  3132. ownerID:
  3133. description: The node ID of the responsible controller to reconcile this SystemBackup.
  3134. type: string
  3135. state:
  3136. description: The system backup state.
  3137. type: string
  3138. version:
  3139. description: The saved Longhorn version.
  3140. nullable: true
  3141. type: string
  3142. type: object
  3143. type: object
  3144. served: true
  3145. storage: true
  3146. subresources:
  3147. status: {}
  3148. status:
  3149. acceptedNames:
  3150. kind: ""
  3151. plural: ""
  3152. conditions: []
  3153. storedVersions: []
  3154. ---
  3155. # Source: longhorn/templates/crds.yaml
  3156. apiVersion: apiextensions.k8s.io/v1
  3157. kind: CustomResourceDefinition
  3158. metadata:
  3159. annotations:
  3160. controller-gen.kubebuilder.io/version: v0.7.0
  3161. creationTimestamp: null
  3162. labels:
  3163. app.kubernetes.io/name: longhorn
  3164. app.kubernetes.io/instance: longhorn
  3165. app.kubernetes.io/version: v1.4.0
  3166. longhorn-manager: ""
  3167. name: systemrestores.longhorn.io
  3168. spec:
  3169. group: longhorn.io
  3170. names:
  3171. kind: SystemRestore
  3172. listKind: SystemRestoreList
  3173. plural: systemrestores
  3174. shortNames:
  3175. - lhsr
  3176. singular: systemrestore
  3177. scope: Namespaced
  3178. versions:
  3179. - additionalPrinterColumns:
  3180. - description: The system restore state
  3181. jsonPath: .status.state
  3182. name: State
  3183. type: string
  3184. - jsonPath: .metadata.creationTimestamp
  3185. name: Age
  3186. type: date
  3187. name: v1beta2
  3188. schema:
  3189. openAPIV3Schema:
  3190. description: SystemRestore is where Longhorn stores system restore object
  3191. properties:
  3192. apiVersion:
  3193. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  3194. type: string
  3195. kind:
  3196. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  3197. type: string
  3198. metadata:
  3199. type: object
  3200. spec:
  3201. description: SystemRestoreSpec defines the desired state of the Longhorn SystemRestore
  3202. properties:
  3203. systemBackup:
  3204. description: The system backup name in the object store.
  3205. type: string
  3206. required:
  3207. - systemBackup
  3208. type: object
  3209. status:
  3210. description: SystemRestoreStatus defines the observed state of the Longhorn SystemRestore
  3211. properties:
  3212. conditions:
  3213. items:
  3214. properties:
  3215. lastProbeTime:
  3216. description: Last time we probed the condition.
  3217. type: string
  3218. lastTransitionTime:
  3219. description: Last time the condition transitioned from one status to another.
  3220. type: string
  3221. message:
  3222. description: Human-readable message indicating details about last transition.
  3223. type: string
  3224. reason:
  3225. description: Unique, one-word, CamelCase reason for the condition's last transition.
  3226. type: string
  3227. status:
  3228. description: Status is the status of the condition. Can be True, False, Unknown.
  3229. type: string
  3230. type:
  3231. description: Type is the type of the condition.
  3232. type: string
  3233. type: object
  3234. nullable: true
  3235. type: array
  3236. ownerID:
  3237. description: The node ID of the responsible controller to reconcile this SystemRestore.
  3238. type: string
  3239. sourceURL:
  3240. description: The source system backup URL.
  3241. type: string
  3242. state:
  3243. description: The system restore state.
  3244. type: string
  3245. type: object
  3246. type: object
  3247. served: true
  3248. storage: true
  3249. subresources:
  3250. status: {}
  3251. status:
  3252. acceptedNames:
  3253. kind: ""
  3254. plural: ""
  3255. conditions: []
  3256. storedVersions: []
  3257. ---
  3258. # Source: longhorn/templates/crds.yaml
  3259. apiVersion: apiextensions.k8s.io/v1
  3260. kind: CustomResourceDefinition
  3261. metadata:
  3262. annotations:
  3263. controller-gen.kubebuilder.io/version: v0.7.0
  3264. labels:
  3265. app.kubernetes.io/name: longhorn
  3266. app.kubernetes.io/instance: longhorn
  3267. app.kubernetes.io/version: v1.4.0
  3268. longhorn-manager: ""
  3269. name: volumes.longhorn.io
  3270. spec:
  3271. preserveUnknownFields: false
  3272. conversion:
  3273. strategy: Webhook
  3274. webhook:
  3275. clientConfig:
  3276. service:
  3277. name: longhorn-conversion-webhook
  3278. namespace: longhorn-system
  3279. path: /v1/webhook/conversion
  3280. port: 9443
  3281. conversionReviewVersions:
  3282. - v1beta2
  3283. - v1beta1
  3284. group: longhorn.io
  3285. names:
  3286. kind: Volume
  3287. listKind: VolumeList
  3288. plural: volumes
  3289. shortNames:
  3290. - lhv
  3291. singular: volume
  3292. scope: Namespaced
  3293. versions:
  3294. - additionalPrinterColumns:
  3295. - description: The state of the volume
  3296. jsonPath: .status.state
  3297. name: State
  3298. type: string
  3299. - description: The robustness of the volume
  3300. jsonPath: .status.robustness
  3301. name: Robustness
  3302. type: string
  3303. - description: The scheduled condition of the volume
  3304. jsonPath: .status.conditions['scheduled']['status']
  3305. name: Scheduled
  3306. type: string
  3307. - description: The size of the volume
  3308. jsonPath: .spec.size
  3309. name: Size
  3310. type: string
  3311. - description: The node that the volume is currently attaching to
  3312. jsonPath: .status.currentNodeID
  3313. name: Node
  3314. type: string
  3315. - jsonPath: .metadata.creationTimestamp
  3316. name: Age
  3317. type: date
  3318. name: v1beta1
  3319. schema:
  3320. openAPIV3Schema:
  3321. description: Volume is where Longhorn stores volume object.
  3322. properties:
  3323. apiVersion:
  3324. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  3325. type: string
  3326. kind:
  3327. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  3328. type: string
  3329. metadata:
  3330. type: object
  3331. spec:
  3332. x-kubernetes-preserve-unknown-fields: true
  3333. status:
  3334. x-kubernetes-preserve-unknown-fields: true
  3335. type: object
  3336. served: true
  3337. storage: false
  3338. subresources:
  3339. status: {}
  3340. - additionalPrinterColumns:
  3341. - description: The state of the volume
  3342. jsonPath: .status.state
  3343. name: State
  3344. type: string
  3345. - description: The robustness of the volume
  3346. jsonPath: .status.robustness
  3347. name: Robustness
  3348. type: string
  3349. - description: The scheduled condition of the volume
  3350. jsonPath: .status.conditions[?(@.type=='Schedulable')].status
  3351. name: Scheduled
  3352. type: string
  3353. - description: The size of the volume
  3354. jsonPath: .spec.size
  3355. name: Size
  3356. type: string
  3357. - description: The node that the volume is currently attaching to
  3358. jsonPath: .status.currentNodeID
  3359. name: Node
  3360. type: string
  3361. - jsonPath: .metadata.creationTimestamp
  3362. name: Age
  3363. type: date
  3364. name: v1beta2
  3365. schema:
  3366. openAPIV3Schema:
  3367. description: Volume is where Longhorn stores volume object.
  3368. properties:
  3369. apiVersion:
  3370. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  3371. type: string
  3372. kind:
  3373. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  3374. type: string
  3375. metadata:
  3376. type: object
  3377. spec:
  3378. description: VolumeSpec defines the desired state of the Longhorn volume
  3379. properties:
  3380. Standby:
  3381. type: boolean
  3382. accessMode:
  3383. enum:
  3384. - rwo
  3385. - rwx
  3386. type: string
  3387. backingImage:
  3388. type: string
  3389. baseImage:
  3390. description: Deprecated. Rename to BackingImage
  3391. type: string
  3392. dataLocality:
  3393. enum:
  3394. - disabled
  3395. - best-effort
  3396. - strict-local
  3397. type: string
  3398. dataSource:
  3399. type: string
  3400. disableFrontend:
  3401. type: boolean
  3402. diskSelector:
  3403. items:
  3404. type: string
  3405. type: array
  3406. encrypted:
  3407. type: boolean
  3408. engineImage:
  3409. type: string
  3410. fromBackup:
  3411. type: string
  3412. restoreVolumeRecurringJob:
  3413. enum:
  3414. - ignored
  3415. - enabled
  3416. - disabled
  3417. type: string
  3418. frontend:
  3419. enum:
  3420. - blockdev
  3421. - iscsi
  3422. - ""
  3423. type: string
  3424. lastAttachedBy:
  3425. type: string
  3426. migratable:
  3427. type: boolean
  3428. migrationNodeID:
  3429. type: string
  3430. nodeID:
  3431. type: string
  3432. nodeSelector:
  3433. items:
  3434. type: string
  3435. type: array
  3436. numberOfReplicas:
  3437. type: integer
  3438. recurringJobs:
  3439. description: Deprecated. Replaced by a separate resource named "RecurringJob"
  3440. items:
  3441. description: 'VolumeRecurringJobSpec is a deprecated struct. TODO: Should be removed when recurringJobs gets removed from the volume spec.'
  3442. properties:
  3443. concurrency:
  3444. type: integer
  3445. cron:
  3446. type: string
  3447. groups:
  3448. items:
  3449. type: string
  3450. type: array
  3451. labels:
  3452. additionalProperties:
  3453. type: string
  3454. type: object
  3455. name:
  3456. type: string
  3457. retain:
  3458. type: integer
  3459. task:
  3460. enum:
  3461. - snapshot
  3462. - backup
  3463. type: string
  3464. type: object
  3465. type: array
  3466. replicaAutoBalance:
  3467. enum:
  3468. - ignored
  3469. - disabled
  3470. - least-effort
  3471. - best-effort
  3472. type: string
  3473. revisionCounterDisabled:
  3474. type: boolean
  3475. size:
  3476. format: int64
  3477. type: string
  3478. snapshotDataIntegrity:
  3479. enum:
  3480. - ignored
  3481. - disabled
  3482. - enabled
  3483. - fast-check
  3484. type: string
  3485. staleReplicaTimeout:
  3486. type: integer
  3487. unmapMarkSnapChainRemoved:
  3488. enum:
  3489. - ignored
  3490. - disabled
  3491. - enabled
  3492. type: string
  3493. type: object
  3494. status:
  3495. description: VolumeStatus defines the observed state of the Longhorn volume
  3496. properties:
  3497. actualSize:
  3498. format: int64
  3499. type: integer
  3500. cloneStatus:
  3501. properties:
  3502. snapshot:
  3503. type: string
  3504. sourceVolume:
  3505. type: string
  3506. state:
  3507. type: string
  3508. type: object
  3509. conditions:
  3510. items:
  3511. properties:
  3512. lastProbeTime:
  3513. description: Last time we probed the condition.
  3514. type: string
  3515. lastTransitionTime:
  3516. description: Last time the condition transitioned from one status to another.
  3517. type: string
  3518. message:
  3519. description: Human-readable message indicating details about last transition.
  3520. type: string
  3521. reason:
  3522. description: Unique, one-word, CamelCase reason for the condition's last transition.
  3523. type: string
  3524. status:
  3525. description: Status is the status of the condition. Can be True, False, Unknown.
  3526. type: string
  3527. type:
  3528. description: Type is the type of the condition.
  3529. type: string
  3530. type: object
  3531. nullable: true
  3532. type: array
  3533. currentImage:
  3534. type: string
  3535. currentNodeID:
  3536. type: string
  3537. expansionRequired:
  3538. type: boolean
  3539. frontendDisabled:
  3540. type: boolean
  3541. isStandby:
  3542. type: boolean
  3543. kubernetesStatus:
  3544. properties:
  3545. lastPVCRefAt:
  3546. type: string
  3547. lastPodRefAt:
  3548. type: string
  3549. namespace:
  3550. description: determine if PVC/Namespace is history or not
  3551. type: string
  3552. pvName:
  3553. type: string
  3554. pvStatus:
  3555. type: string
  3556. pvcName:
  3557. type: string
  3558. workloadsStatus:
  3559. description: determine if Pod/Workload is history or not
  3560. items:
  3561. properties:
  3562. podName:
  3563. type: string
  3564. podStatus:
  3565. type: string
  3566. workloadName:
  3567. type: string
  3568. workloadType:
  3569. type: string
  3570. type: object
  3571. nullable: true
  3572. type: array
  3573. type: object
  3574. lastBackup:
  3575. type: string
  3576. lastBackupAt:
  3577. type: string
  3578. lastDegradedAt:
  3579. type: string
  3580. ownerID:
  3581. type: string
  3582. pendingNodeID:
  3583. type: string
  3584. remountRequestedAt:
  3585. type: string
  3586. restoreInitiated:
  3587. type: boolean
  3588. restoreRequired:
  3589. type: boolean
  3590. robustness:
  3591. type: string
  3592. shareEndpoint:
  3593. type: string
  3594. shareState:
  3595. type: string
  3596. state:
  3597. type: string
  3598. type: object
  3599. type: object
  3600. served: true
  3601. storage: true
  3602. subresources:
  3603. status: {}
  3604. status:
  3605. acceptedNames:
  3606. kind: ""
  3607. plural: ""
  3608. conditions: []
  3609. storedVersions: []
  3610. ---
  3611. # Source: longhorn/templates/clusterrole.yaml
  3612. apiVersion: rbac.authorization.k8s.io/v1
  3613. kind: ClusterRole
  3614. metadata:
  3615. name: longhorn-role
  3616. labels:
  3617. app.kubernetes.io/name: longhorn
  3618. app.kubernetes.io/instance: longhorn
  3619. app.kubernetes.io/version: v1.4.0
  3620. rules:
  3621. - apiGroups:
  3622. - apiextensions.k8s.io
  3623. resources:
  3624. - customresourcedefinitions
  3625. verbs:
  3626. - "*"
  3627. - apiGroups: [""]
  3628. resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims","persistentvolumeclaims/status", "nodes", "proxy/nodes", "pods/log", "secrets", "services", "endpoints", "configmaps", "serviceaccounts"]
  3629. verbs: ["*"]
  3630. - apiGroups: [""]
  3631. resources: ["namespaces"]
  3632. verbs: ["get", "list"]
  3633. - apiGroups: ["apps"]
  3634. resources: ["daemonsets", "statefulsets", "deployments"]
  3635. verbs: ["*"]
  3636. - apiGroups: ["batch"]
  3637. resources: ["jobs", "cronjobs"]
  3638. verbs: ["*"]
  3639. - apiGroups: ["policy"]
  3640. resources: ["poddisruptionbudgets", "podsecuritypolicies"]
  3641. verbs: ["*"]
  3642. - apiGroups: ["scheduling.k8s.io"]
  3643. resources: ["priorityclasses"]
  3644. verbs: ["watch", "list"]
  3645. - apiGroups: ["storage.k8s.io"]
  3646. resources: ["storageclasses", "volumeattachments", "volumeattachments/status", "csinodes", "csidrivers"]
  3647. verbs: ["*"]
  3648. - apiGroups: ["snapshot.storage.k8s.io"]
  3649. resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"]
  3650. verbs: ["*"]
  3651. - apiGroups: ["longhorn.io"]
  3652. resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings",
  3653. "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status",
  3654. "sharemanagers", "sharemanagers/status", "backingimages", "backingimages/status",
  3655. "backingimagemanagers", "backingimagemanagers/status", "backingimagedatasources", "backingimagedatasources/status",
  3656. "backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status",
  3657. "recurringjobs", "recurringjobs/status", "orphans", "orphans/status", "snapshots", "snapshots/status",
  3658. "supportbundles", "supportbundles/status", "systembackups", "systembackups/status", "systemrestores", "systemrestores/status"]
  3659. verbs: ["*"]
  3660. - apiGroups: ["coordination.k8s.io"]
  3661. resources: ["leases"]
  3662. verbs: ["*"]
  3663. - apiGroups: ["metrics.k8s.io"]
  3664. resources: ["pods", "nodes"]
  3665. verbs: ["get", "list"]
  3666. - apiGroups: ["apiregistration.k8s.io"]
  3667. resources: ["apiservices"]
  3668. verbs: ["list", "watch"]
  3669. - apiGroups: ["admissionregistration.k8s.io"]
  3670. resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
  3671. verbs: ["get", "list", "create", "patch", "delete"]
  3672. - apiGroups: ["rbac.authorization.k8s.io"]
  3673. resources: ["roles", "rolebindings", "clusterrolebindings", "clusterroles"]
  3674. verbs: ["*"]
  3675. ---
  3676. # Source: longhorn/templates/clusterrolebinding.yaml
  3677. apiVersion: rbac.authorization.k8s.io/v1
  3678. kind: ClusterRoleBinding
  3679. metadata:
  3680. name: longhorn-bind
  3681. labels:
  3682. app.kubernetes.io/name: longhorn
  3683. app.kubernetes.io/instance: longhorn
  3684. app.kubernetes.io/version: v1.4.0
  3685. roleRef:
  3686. apiGroup: rbac.authorization.k8s.io
  3687. kind: ClusterRole
  3688. name: longhorn-role
  3689. subjects:
  3690. - kind: ServiceAccount
  3691. name: longhorn-service-account
  3692. namespace: longhorn-system
  3693. ---
  3694. # Source: longhorn/templates/clusterrolebinding.yaml
  3695. apiVersion: rbac.authorization.k8s.io/v1
  3696. kind: ClusterRoleBinding
  3697. metadata:
  3698. name: longhorn-support-bundle
  3699. labels:
  3700. app.kubernetes.io/name: longhorn
  3701. app.kubernetes.io/instance: longhorn
  3702. app.kubernetes.io/version: v1.4.0
  3703. roleRef:
  3704. apiGroup: rbac.authorization.k8s.io
  3705. kind: ClusterRole
  3706. name: cluster-admin
  3707. subjects:
  3708. - kind: ServiceAccount
  3709. name: longhorn-support-bundle
  3710. namespace: longhorn-system
  3711. ---
  3712. # Source: longhorn/templates/daemonset-sa.yaml
  3713. apiVersion: v1
  3714. kind: Service
  3715. metadata:
  3716. labels:
  3717. app.kubernetes.io/name: longhorn
  3718. app.kubernetes.io/instance: longhorn
  3719. app.kubernetes.io/version: v1.4.0
  3720. app: longhorn-manager
  3721. name: longhorn-backend
  3722. namespace: longhorn-system
  3723. spec:
  3724. type: ClusterIP
  3725. sessionAffinity: ClientIP
  3726. selector:
  3727. app: longhorn-manager
  3728. ports:
  3729. - name: manager
  3730. port: 9500
  3731. targetPort: manager
  3732. ---
  3733. # Source: longhorn/templates/deployment-ui.yaml
  3734. kind: Service
  3735. apiVersion: v1
  3736. metadata:
  3737. labels:
  3738. app.kubernetes.io/name: longhorn
  3739. app.kubernetes.io/instance: longhorn
  3740. app.kubernetes.io/version: v1.4.0
  3741. app: longhorn-ui
  3742. name: longhorn-frontend
  3743. namespace: longhorn-system
  3744. spec:
  3745. type: ClusterIP
  3746. selector:
  3747. app: longhorn-ui
  3748. ports:
  3749. - name: http
  3750. port: 80
  3751. targetPort: http
  3752. nodePort: null
  3753. ---
  3754. # Source: longhorn/templates/services.yaml
  3755. apiVersion: v1
  3756. kind: Service
  3757. metadata:
  3758. labels:
  3759. app.kubernetes.io/name: longhorn
  3760. app.kubernetes.io/instance: longhorn
  3761. app.kubernetes.io/version: v1.4.0
  3762. app: longhorn-conversion-webhook
  3763. name: longhorn-conversion-webhook
  3764. namespace: longhorn-system
  3765. spec:
  3766. type: ClusterIP
  3767. sessionAffinity: ClientIP
  3768. selector:
  3769. app: longhorn-conversion-webhook
  3770. ports:
  3771. - name: conversion-webhook
  3772. port: 9443
  3773. targetPort: conversion-wh
  3774. ---
  3775. # Source: longhorn/templates/services.yaml
  3776. apiVersion: v1
  3777. kind: Service
  3778. metadata:
  3779. labels:
  3780. app.kubernetes.io/name: longhorn
  3781. app.kubernetes.io/instance: longhorn
  3782. app.kubernetes.io/version: v1.4.0
  3783. app: longhorn-admission-webhook
  3784. name: longhorn-admission-webhook
  3785. namespace: longhorn-system
  3786. spec:
  3787. type: ClusterIP
  3788. sessionAffinity: ClientIP
  3789. selector:
  3790. app: longhorn-admission-webhook
  3791. ports:
  3792. - name: admission-webhook
  3793. port: 9443
  3794. targetPort: admission-wh
  3795. ---
  3796. # Source: longhorn/templates/services.yaml
  3797. apiVersion: v1
  3798. kind: Service
  3799. metadata:
  3800. labels:
  3801. app.kubernetes.io/name: longhorn
  3802. app.kubernetes.io/instance: longhorn
  3803. app.kubernetes.io/version: v1.4.0
  3804. app: longhorn-recovery-backend
  3805. name: longhorn-recovery-backend
  3806. namespace: longhorn-system
  3807. spec:
  3808. type: ClusterIP
  3809. sessionAffinity: ClientIP
  3810. selector:
  3811. app: longhorn-recovery-backend
  3812. ports:
  3813. - name: recovery-backend
  3814. port: 9600
  3815. targetPort: recov-backend
  3816. ---
  3817. # Source: longhorn/templates/services.yaml
  3818. apiVersion: v1
  3819. kind: Service
  3820. metadata:
  3821. labels:
  3822. app.kubernetes.io/name: longhorn
  3823. app.kubernetes.io/instance: longhorn
  3824. app.kubernetes.io/version: v1.4.0
  3825. name: longhorn-engine-manager
  3826. namespace: longhorn-system
  3827. spec:
  3828. clusterIP: None
  3829. selector:
  3830. longhorn.io/component: instance-manager
  3831. longhorn.io/instance-manager-type: engine
  3832. ---
  3833. # Source: longhorn/templates/services.yaml
  3834. apiVersion: v1
  3835. kind: Service
  3836. metadata:
  3837. labels:
  3838. app.kubernetes.io/name: longhorn
  3839. app.kubernetes.io/instance: longhorn
  3840. app.kubernetes.io/version: v1.4.0
  3841. name: longhorn-replica-manager
  3842. namespace: longhorn-system
  3843. spec:
  3844. clusterIP: None
  3845. selector:
  3846. longhorn.io/component: instance-manager
  3847. longhorn.io/instance-manager-type: replica
  3848. ---
  3849. # Source: longhorn/templates/daemonset-sa.yaml
  3850. apiVersion: apps/v1
  3851. kind: DaemonSet
  3852. metadata:
  3853. labels:
  3854. app.kubernetes.io/name: longhorn
  3855. app.kubernetes.io/instance: longhorn
  3856. app.kubernetes.io/version: v1.4.0
  3857. app: longhorn-manager
  3858. name: longhorn-manager
  3859. namespace: longhorn-system
  3860. spec:
  3861. selector:
  3862. matchLabels:
  3863. app: longhorn-manager
  3864. template:
  3865. metadata:
  3866. labels:
  3867. app.kubernetes.io/name: longhorn
  3868. app.kubernetes.io/instance: longhorn
  3869. app.kubernetes.io/version: v1.4.0
  3870. app: longhorn-manager
  3871. spec:
  3872. initContainers:
  3873. - name: wait-longhorn-admission-webhook
  3874. image: longhornio/longhorn-manager:v1.4.0
  3875. command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" -k https://longhorn-admission-webhook:9443/v1/healthz) != "200" ]; do echo waiting; sleep 2; done']
  3876. containers:
  3877. - name: longhorn-manager
  3878. image: longhornio/longhorn-manager:v1.4.0
  3879. imagePullPolicy: IfNotPresent
  3880. securityContext:
  3881. privileged: true
  3882. command:
  3883. - longhorn-manager
  3884. - -d
  3885. - daemon
  3886. - --engine-image
  3887. - "longhornio/longhorn-engine:v1.4.0"
  3888. - --instance-manager-image
  3889. - "longhornio/longhorn-instance-manager:v1.4.0"
  3890. - --share-manager-image
  3891. - "longhornio/longhorn-share-manager:v1.4.0"
  3892. - --backing-image-manager-image
  3893. - "longhornio/backing-image-manager:v1.4.0"
  3894. - --support-bundle-manager-image
  3895. - "longhornio/support-bundle-kit:v0.0.17"
  3896. - --manager-image
  3897. - "longhornio/longhorn-manager:v1.4.0"
  3898. - --service-account
  3899. - longhorn-service-account
  3900. ports:
  3901. - containerPort: 9500
  3902. name: manager
  3903. readinessProbe:
  3904. tcpSocket:
  3905. port: 9500
  3906. volumeMounts:
  3907. - name: dev
  3908. mountPath: /host/dev/
  3909. - name: proc
  3910. mountPath: /host/proc/
  3911. - name: longhorn
  3912. mountPath: /var/lib/longhorn/
  3913. mountPropagation: Bidirectional
  3914. - name: longhorn-grpc-tls
  3915. mountPath: /tls-files/
  3916. env:
  3917. - name: POD_NAMESPACE
  3918. valueFrom:
  3919. fieldRef:
  3920. fieldPath: metadata.namespace
  3921. - name: POD_IP
  3922. valueFrom:
  3923. fieldRef:
  3924. fieldPath: status.podIP
  3925. - name: NODE_NAME
  3926. valueFrom:
  3927. fieldRef:
  3928. fieldPath: spec.nodeName
  3929. volumes:
  3930. - name: dev
  3931. hostPath:
  3932. path: /dev/
  3933. - name: proc
  3934. hostPath:
  3935. path: /proc/
  3936. - name: longhorn
  3937. hostPath:
  3938. path: /var/lib/longhorn/
  3939. - name: longhorn-grpc-tls
  3940. secret:
  3941. secretName: longhorn-grpc-tls
  3942. optional: true
  3943. serviceAccountName: longhorn-service-account
  3944. updateStrategy:
  3945. rollingUpdate:
  3946. maxUnavailable: "100%"
  3947. ---
  3948. # Source: longhorn/templates/deployment-driver.yaml
  3949. apiVersion: apps/v1
  3950. kind: Deployment
  3951. metadata:
  3952. name: longhorn-driver-deployer
  3953. namespace: longhorn-system
  3954. labels:
  3955. app.kubernetes.io/name: longhorn
  3956. app.kubernetes.io/instance: longhorn
  3957. app.kubernetes.io/version: v1.4.0
  3958. spec:
  3959. replicas: 1
  3960. selector:
  3961. matchLabels:
  3962. app: longhorn-driver-deployer
  3963. template:
  3964. metadata:
  3965. labels:
  3966. app.kubernetes.io/name: longhorn
  3967. app.kubernetes.io/instance: longhorn
  3968. app.kubernetes.io/version: v1.4.0
  3969. app: longhorn-driver-deployer
  3970. spec:
  3971. initContainers:
  3972. - name: wait-longhorn-manager
  3973. image: longhornio/longhorn-manager:v1.4.0
  3974. command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" http://longhorn-backend:9500/v1) != "200" ]; do echo waiting; sleep 2; done']
  3975. containers:
  3976. - name: longhorn-driver-deployer
  3977. image: longhornio/longhorn-manager:v1.4.0
  3978. imagePullPolicy: IfNotPresent
  3979. command:
  3980. - longhorn-manager
  3981. - -d
  3982. - deploy-driver
  3983. - --manager-image
  3984. - "longhornio/longhorn-manager:v1.4.0"
  3985. - --manager-url
  3986. - http://longhorn-backend:9500/v1
  3987. env:
  3988. - name: POD_NAMESPACE
  3989. valueFrom:
  3990. fieldRef:
  3991. fieldPath: metadata.namespace
  3992. - name: NODE_NAME
  3993. valueFrom:
  3994. fieldRef:
  3995. fieldPath: spec.nodeName
  3996. - name: SERVICE_ACCOUNT
  3997. valueFrom:
  3998. fieldRef:
  3999. fieldPath: spec.serviceAccountName
  4000. - name: CSI_ATTACHER_IMAGE
  4001. value: "longhornio/csi-attacher:v3.4.0"
  4002. - name: CSI_PROVISIONER_IMAGE
  4003. value: "longhornio/csi-provisioner:v2.1.2"
  4004. - name: CSI_NODE_DRIVER_REGISTRAR_IMAGE
  4005. value: "longhornio/csi-node-driver-registrar:v2.5.0"
  4006. - name: CSI_RESIZER_IMAGE
  4007. value: "longhornio/csi-resizer:v1.3.0"
  4008. - name: CSI_SNAPSHOTTER_IMAGE
  4009. value: "longhornio/csi-snapshotter:v5.0.1"
  4010. - name: CSI_LIVENESS_PROBE_IMAGE
  4011. value: "longhornio/livenessprobe:v2.8.0"
  4012. serviceAccountName: longhorn-service-account
  4013. securityContext:
  4014. runAsUser: 0
  4015. ---
  4016. # Source: longhorn/templates/deployment-recovery-backend.yaml
  4017. apiVersion: apps/v1
  4018. kind: Deployment
  4019. metadata:
  4020. labels:
  4021. app.kubernetes.io/name: longhorn
  4022. app.kubernetes.io/instance: longhorn
  4023. app.kubernetes.io/version: v1.4.0
  4024. app: longhorn-recovery-backend
  4025. name: longhorn-recovery-backend
  4026. namespace: longhorn-system
  4027. spec:
  4028. replicas: 2
  4029. selector:
  4030. matchLabels:
  4031. app: longhorn-recovery-backend
  4032. template:
  4033. metadata:
  4034. labels:
  4035. app.kubernetes.io/name: longhorn
  4036. app.kubernetes.io/instance: longhorn
  4037. app.kubernetes.io/version: v1.4.0
  4038. app: longhorn-recovery-backend
  4039. spec:
  4040. affinity:
  4041. podAntiAffinity:
  4042. preferredDuringSchedulingIgnoredDuringExecution:
  4043. - weight: 1
  4044. podAffinityTerm:
  4045. labelSelector:
  4046. matchExpressions:
  4047. - key: app
  4048. operator: In
  4049. values:
  4050. - longhorn-recovery-backend
  4051. topologyKey: kubernetes.io/hostname
  4052. containers:
  4053. - name: longhorn-recovery-backend
  4054. image: longhornio/longhorn-manager:v1.4.0
  4055. imagePullPolicy: IfNotPresent
  4056. securityContext:
  4057. runAsUser: 2000
  4058. command:
  4059. - longhorn-manager
  4060. - recovery-backend
  4061. - --service-account
  4062. - longhorn-service-account
  4063. ports:
  4064. - containerPort: 9600
  4065. name: recov-backend
  4066. readinessProbe:
  4067. tcpSocket:
  4068. port: 9600
  4069. initialDelaySeconds: 3
  4070. periodSeconds: 5
  4071. env:
  4072. - name: POD_NAMESPACE
  4073. valueFrom:
  4074. fieldRef:
  4075. fieldPath: metadata.namespace
  4076. - name: NODE_NAME
  4077. valueFrom:
  4078. fieldRef:
  4079. fieldPath: spec.nodeName
  4080. serviceAccountName: longhorn-service-account
  4081. ---
  4082. # Source: longhorn/templates/deployment-ui.yaml
  4083. apiVersion: apps/v1
  4084. kind: Deployment
  4085. metadata:
  4086. labels:
  4087. app.kubernetes.io/name: longhorn
  4088. app.kubernetes.io/instance: longhorn
  4089. app.kubernetes.io/version: v1.4.0
  4090. app: longhorn-ui
  4091. name: longhorn-ui
  4092. namespace: longhorn-system
  4093. spec:
  4094. replicas: 2
  4095. selector:
  4096. matchLabels:
  4097. app: longhorn-ui
  4098. template:
  4099. metadata:
  4100. labels:
  4101. app.kubernetes.io/name: longhorn
  4102. app.kubernetes.io/instance: longhorn
  4103. app.kubernetes.io/version: v1.4.0
  4104. app: longhorn-ui
  4105. spec:
  4106. affinity:
  4107. podAntiAffinity:
  4108. preferredDuringSchedulingIgnoredDuringExecution:
  4109. - weight: 1
  4110. podAffinityTerm:
  4111. labelSelector:
  4112. matchExpressions:
  4113. - key: app
  4114. operator: In
  4115. values:
  4116. - longhorn-ui
  4117. topologyKey: kubernetes.io/hostname
  4118. containers:
  4119. - name: longhorn-ui
  4120. image: longhornio/longhorn-ui:v1.4.0
  4121. imagePullPolicy: IfNotPresent
  4122. volumeMounts:
  4123. - name : nginx-cache
  4124. mountPath: /var/cache/nginx/
  4125. - name : nginx-config
  4126. mountPath: /var/config/nginx/
  4127. - name: var-run
  4128. mountPath: /var/run/
  4129. ports:
  4130. - containerPort: 8000
  4131. name: http
  4132. env:
  4133. - name: LONGHORN_MANAGER_IP
  4134. value: "http://longhorn-backend:9500"
  4135. - name: LONGHORN_UI_PORT
  4136. value: "8000"
  4137. volumes:
  4138. - emptyDir: {}
  4139. name: nginx-cache
  4140. - emptyDir: {}
  4141. name: nginx-config
  4142. - emptyDir: {}
  4143. name: var-run
  4144. ---
  4145. # Source: longhorn/templates/deployment-webhook.yaml
  4146. apiVersion: apps/v1
  4147. kind: Deployment
  4148. metadata:
  4149. labels:
  4150. app.kubernetes.io/name: longhorn
  4151. app.kubernetes.io/instance: longhorn
  4152. app.kubernetes.io/version: v1.4.0
  4153. app: longhorn-conversion-webhook
  4154. name: longhorn-conversion-webhook
  4155. namespace: longhorn-system
  4156. spec:
  4157. replicas: 2
  4158. selector:
  4159. matchLabels:
  4160. app: longhorn-conversion-webhook
  4161. template:
  4162. metadata:
  4163. labels:
  4164. app.kubernetes.io/name: longhorn
  4165. app.kubernetes.io/instance: longhorn
  4166. app.kubernetes.io/version: v1.4.0
  4167. app: longhorn-conversion-webhook
  4168. spec:
  4169. affinity:
  4170. podAntiAffinity:
  4171. preferredDuringSchedulingIgnoredDuringExecution:
  4172. - weight: 1
  4173. podAffinityTerm:
  4174. labelSelector:
  4175. matchExpressions:
  4176. - key: app
  4177. operator: In
  4178. values:
  4179. - longhorn-conversion-webhook
  4180. topologyKey: kubernetes.io/hostname
  4181. containers:
  4182. - name: longhorn-conversion-webhook
  4183. image: longhornio/longhorn-manager:v1.4.0
  4184. imagePullPolicy: IfNotPresent
  4185. securityContext:
  4186. runAsUser: 2000
  4187. command:
  4188. - longhorn-manager
  4189. - conversion-webhook
  4190. - --service-account
  4191. - longhorn-service-account
  4192. ports:
  4193. - containerPort: 9443
  4194. name: conversion-wh
  4195. readinessProbe:
  4196. tcpSocket:
  4197. port: 9443
  4198. env:
  4199. - name: POD_NAMESPACE
  4200. valueFrom:
  4201. fieldRef:
  4202. fieldPath: metadata.namespace
  4203. serviceAccountName: longhorn-service-account
  4204. ---
  4205. # Source: longhorn/templates/deployment-webhook.yaml
  4206. apiVersion: apps/v1
  4207. kind: Deployment
  4208. metadata:
  4209. labels:
  4210. app.kubernetes.io/name: longhorn
  4211. app.kubernetes.io/instance: longhorn
  4212. app.kubernetes.io/version: v1.4.0
  4213. app: longhorn-admission-webhook
  4214. name: longhorn-admission-webhook
  4215. namespace: longhorn-system
  4216. spec:
  4217. replicas: 2
  4218. selector:
  4219. matchLabels:
  4220. app: longhorn-admission-webhook
  4221. template:
  4222. metadata:
  4223. labels:
  4224. app.kubernetes.io/name: longhorn
  4225. app.kubernetes.io/instance: longhorn
  4226. app.kubernetes.io/version: v1.4.0
  4227. app: longhorn-admission-webhook
  4228. spec:
  4229. affinity:
  4230. podAntiAffinity:
  4231. preferredDuringSchedulingIgnoredDuringExecution:
  4232. - weight: 1
  4233. podAffinityTerm:
  4234. labelSelector:
  4235. matchExpressions:
  4236. - key: app
  4237. operator: In
  4238. values:
  4239. - longhorn-admission-webhook
  4240. topologyKey: kubernetes.io/hostname
  4241. initContainers:
  4242. - name: wait-longhorn-conversion-webhook
  4243. image: longhornio/longhorn-manager:v1.4.0
  4244. command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" -k https://longhorn-conversion-webhook:9443/v1/healthz) != "200" ]; do echo waiting; sleep 2; done']
  4245. imagePullPolicy: IfNotPresent
  4246. securityContext:
  4247. runAsUser: 2000
  4248. containers:
  4249. - name: longhorn-admission-webhook
  4250. image: longhornio/longhorn-manager:v1.4.0
  4251. imagePullPolicy: IfNotPresent
  4252. securityContext:
  4253. runAsUser: 2000
  4254. command:
  4255. - longhorn-manager
  4256. - admission-webhook
  4257. - --service-account
  4258. - longhorn-service-account
  4259. ports:
  4260. - containerPort: 9443
  4261. name: admission-wh
  4262. readinessProbe:
  4263. tcpSocket:
  4264. port: 9443
  4265. env:
  4266. - name: POD_NAMESPACE
  4267. valueFrom:
  4268. fieldRef:
  4269. fieldPath: metadata.namespace
  4270. - name: NODE_NAME
  4271. valueFrom:
  4272. fieldRef:
  4273. fieldPath: spec.nodeName
  4274. serviceAccountName: longhorn-service-account