longhorn.yml 156 KB

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