From e563bb14c57a3c9c400175909b1dedca4edd8f05 Mon Sep 17 00:00:00 2001 From: actions Date: Wed, 23 Dec 2020 20:09:04 +0000 Subject: [PATCH] Generated changes --- assets/index.yaml | 57 ++- assets/longhorn/longhorn-1.1.000.tgz | Bin 0 -> 14783 bytes assets/longhorn/longhorn-crd-1.1.000.tgz | Bin 0 -> 1630 bytes charts/longhorn/Chart.yaml | 7 +- charts/longhorn/README.md | 39 +- charts/longhorn/charts-crd/Chart.yaml | 2 +- .../longhorn/charts-crd/templates/crds.yaml | 342 +++++++++++++++--- charts/longhorn/questions.yml | 258 ++++++++++--- charts/longhorn/templates/_helpers.tpl | 19 + charts/longhorn/templates/clusterrole.yaml | 15 +- .../templates/clusterrolebinding.yaml | 2 +- charts/longhorn/templates/daemonset-sa.yaml | 18 +- .../longhorn/templates/default-setting.yaml | 16 +- .../longhorn/templates/deployment-driver.yaml | 29 +- charts/longhorn/templates/deployment-ui.yaml | 10 +- charts/longhorn/templates/ingress.yaml | 1 + .../longhorn/templates/postupgrade-job.yaml | 10 +- charts/longhorn/templates/psp.yaml | 10 +- charts/longhorn/templates/registry-secret.yml | 7 +- charts/longhorn/templates/serviceaccount.yaml | 2 +- charts/longhorn/templates/storageclass.yaml | 36 +- charts/longhorn/templates/tls-secrets.yaml | 1 + charts/longhorn/templates/uninstall-job.yaml | 10 +- charts/longhorn/templates/userroles.yaml | 15 +- charts/longhorn/values.yaml | 44 ++- index.yaml | 57 ++- sha256sum/longhorn/longhorn.sum | 6 +- 27 files changed, 806 insertions(+), 207 deletions(-) create mode 100644 assets/longhorn/longhorn-1.1.000.tgz create mode 100644 assets/longhorn/longhorn-crd-1.1.000.tgz diff --git a/assets/index.yaml b/assets/index.yaml index f2a029d04..925ced894 100644 --- a/assets/index.yaml +++ b/assets/index.yaml @@ -641,6 +641,47 @@ entries: - assets/fleet-crd/fleet-crd-0.3.0-beta600.tgz version: 0.3.0-beta600 longhorn: + - annotations: + catalog.cattle.io/auto-install: longhorn-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Longhorn + catalog.cattle.io/namespace: longhorn-system + catalog.cattle.io/os: linux + catalog.cattle.io/provides-gvr: longhorn.io/v1beta1 + catalog.cattle.io/release-name: longhorn + catalog.cattle.io/ui-component: longhorn + apiVersion: v1 + appVersion: v1.1.0 + created: "2020-12-23T20:09:04.09651411Z" + description: Longhorn is a distributed block storage system for Kubernetes. + digest: 4d9c34af5cb6f983649c0da636853dcb363aa6aed1293bffb11ddfd04180d122 + home: https://github.com/longhorn/longhorn + icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/longhorn/icon/color/longhorn-icon-color.svg + keywords: + - longhorn + - storage + - distributed + - block + - device + - iscsi + kubeVersion: '>=v1.16.0-r0' + maintainers: + - email: maintainers@longhorn.io + name: Longhorn maintainers + - email: sheng@yasker.org + name: Sheng Yang + name: longhorn + sources: + - https://github.com/longhorn/longhorn + - https://github.com/longhorn/longhorn-engine + - https://github.com/longhorn/longhorn-instance-manager + - https://github.com/longhorn/longhorn-share-manager + - https://github.com/longhorn/longhorn-manager + - https://github.com/longhorn/longhorn-ui + - https://github.com/longhorn/longhorn-tests + urls: + - assets/longhorn/longhorn-1.1.000.tgz + version: 1.1.000 - annotations: catalog.cattle.io/auto-install: longhorn-crd=match catalog.cattle.io/certified: rancher @@ -761,6 +802,20 @@ entries: - assets/longhorn/longhorn-1.0.200.tgz version: 1.0.200 longhorn-crd: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: longhorn-system + catalog.cattle.io/release-name: longhorn-crd + apiVersion: v1 + created: "2020-12-23T20:09:04.097324624Z" + description: Installs the CRDs for longhorn. + digest: 2ca9ca1b7af582f9c0e89684e4624a4d4cfc1484ceee74f3cab9c22c7b4e823f + name: longhorn-crd + type: application + urls: + - assets/longhorn/longhorn-crd-1.1.000.tgz + version: 1.1.000 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/hidden: "true" @@ -2642,4 +2697,4 @@ entries: urls: - assets/rio/rio-0.8.000.tgz version: 0.8.000 -generated: "2020-12-23T18:26:24.779180385Z" +generated: "2020-12-23T20:09:04.094547777Z" diff --git a/assets/longhorn/longhorn-1.1.000.tgz b/assets/longhorn/longhorn-1.1.000.tgz new file mode 100644 index 0000000000000000000000000000000000000000..28283e776c0b13af626c3ab4c06bb4d5f78f214d GIT binary patch literal 14783 zcmV;wIY7oAiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PKD1b{jX6@cjMw6c~Eu*w(5kO7dlvbFya@NlCP0%RHiNpV@5I z0=q#HQ8&;5(2_Wb_gTJY`JU`MC|nwS;YAW7XR_*<6N}xr6bgm9p-@OUo6fjkJBKqY zRBw*6^bebU`u%?Y)r%MKZ@=HK|GT%}-}}Sv{_EHM*L%CKU-bXb-`(%;z4!y_Zyb`A zr;rMZKlJb2SAB5*BoAhcE37DIa?n92#tNr=+KaJLDd|zZgA2tY%A~?+IzWzGqF5wf zWmv_t)=DuEicTm=21sBQ&xmL(mQb0ecpfpFkpX&R+ioqYi^v?uB!EHAr6O5taV`fa zrL4GV{hAAYMH3>U>6Iwk(_gN3$3)@X)>?w31WRI}O_xDi&?x3v&KY4UD2j9Xfe1-C z8=$M*4$kx7XK%OH?<7RVg60a|IfNi85k?7>O3-nkNP@;Gk1vr_T;M4|1`lY$1^Qbt zCV~+~WUn*h8qS$gxg6~5OsSd`<6g|O9lz#1U^LeKxuODJ_e}9Z5)pHz2vblqX7OYP z3w6!K< zPGrWb-;ygD>(5lil6EeOG4U9D`fp!pB);nPBhi1_$uMOKQ$_@ILNZL#0Sey!dob@E zgsLlKR#n^H#BEe*?; z#U#ow!&4&GttV$#+`7^&ix+g=l8Q(rJ6CSLVZrqKoiEKn|G6KJ<|~{QME)uYz;gM& zySu-;TbKWPul640|3f@a&=Hy7B2~x`07wzf89PtV`HV^Z&EE(Kl5z3EiP`=a8Ro@30k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U?% z+#>TeQKjk<#2RC!daS6r^%dJL0`i{vZrpKIy9DaW8~AS6#y!QA#4GOJir6PYcU$PI z5}}Xayt8+1RYJSMpqU`o$5FMc->q*9tx}*eKzHe^Px?_E@1n5@5~rAEo?q6^YM6e` z2m}@TLT#=@WLrYHVP?;4B`)md>htbK24s0xz_}s~g6_erh_30lTbU_WV4W$hMf^7> zw;JbKiGvC!d)53ljt<-cIiV)$L+{Ik3_;lal8N`H;APLO*T!h=!I9e0>}3PK#TcrG zQ|hP*j@-9oyYT~bw*o9nf3qyJ&0>`N$j5J}Y~gfI&noChsa!$?{-WoxHW&n%6sZ;o zKNVb=i_|E~3)KT%VjF$`bC=4U4`XkkhhGJ9}u${7=6XhUy2q z+g(7c><-Y+U1#BS2i?7_`}y+^Pb)gqVw@vC_FK&8vcwFPymD+Rh;&q!tdpwg815j1 ztITXHH=YxLUZXc0C+KUOY8_0V$hF;;BFT+pM8p-1Z46sb-#RHBU9Q#RJxI@CVa8=G zM7w)K^B(2h7Ac#y4qG@J@za2|eWr8Txaxk)}_aIQad`23Rer@GUvGnbfn_ ztx@P#o+{U*p;nrxz`Tqy0z@-gr6okIj$_w4f*Y93`LAa-fREg0QA1Ta-$wC_Yr=+7 zW1_AJVQ9bK@Asqqz1Oc^KVRspfI{Y{mNZZrewKKvk;qpLreA)ke`!vayCKHU2=XH` zgQ*asnVI2exSmE<bo0cP2%j-akn9DoxaFtx~OWz6f Z_&h$3&;O3+{|5j7|Nl{8ewqL}0RXfg;6DHW literal 0 HcmV?d00001 diff --git a/assets/longhorn/longhorn-crd-1.1.000.tgz b/assets/longhorn/longhorn-crd-1.1.000.tgz new file mode 100644 index 0000000000000000000000000000000000000000..dcc014030f1dc9a82d07718f54f11c67bd2940b1 GIT binary patch literal 1630 zcmV-k2BG;MiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI^$Z`(K%&e^|$=zGY!2P<-#)(hXVNr4Tv4GO2orRaf{CKelt z6gZSqcd`F{K~mqcYO8i*1S?()QRFlo*kyK(FsPOD6qDp&f8uODw7T@>% zw-*=o*Z2MAuYYkdJ(;|oPW|cmWP0JB_>6s1Q<9 z&7{EDh>(D4%H`4vsMZ`jCeH#;nmsTGXGBpEM4&b{i&z+fn2}dnrSNKF6G3CZga$Ap z#j3+KYKS*BSHOWHj7_&nk3fYZny`CN$fTH&)npU`28t!xKHmt`lyf9H0&+FKM)Dw4 z(cK$u5U1A(%m_^q&H`(S(JGfd@g|<{`=et|(=RJE|JM*FoNBQUV<=PsBD!N zf-?|5GCk09S0$OZ?KpT=2Q-Vku24*uKQjT$^y@bPB~%W6*?^Sd3a5!>sxC5=-+`3_)d)_BFlp?Fa zA**c#ha9joIA9|<*Suv_NFBWFC|-7N=DOS= zuk7PKK2`{0qmdgROGeL-O@fy(=VS--TTuob=}zaUbDcyZ=VE{ z2x2bxAnC4yGMQ(VR`E5VTGJq6Vo9{zmWAE6Q{f>%9N`Ex&xWh#s5YzK|1h;ow3{cY z_D#pJssrzg9Kaf(qta`LA1@|;+_g_t39D=ZcZncQrf`yYhaPRTBcMddM@5qHWB4mN#f~N>{ z1j-VE&F&ZyRT1>#Ox8knX0ex?%cm^OF75=2#SOZ>4HOe2EzUpho4x0 z*gu!#gXti4x3bc=G%sqlZO7Y}VV~AXA9T~E3!MBv zOE;y;sqnWBde%AWK@KTeikJYG3SnYJpG&%dVxRYdD59#xuV^X{K&}npwfmyVtM;W) z6~B{HvB{~`ZUdpdTtc<;xRp)YhZKA9R}IwO@;?a($)Y=v1.14.0-r0" +version: 1.1.000 +appVersion: v1.1.0 +kubeVersion: ">=v1.16.0-r0" description: Longhorn is a distributed block storage system for Kubernetes. keywords: - longhorn @@ -16,6 +16,7 @@ sources: - https://github.com/longhorn/longhorn - https://github.com/longhorn/longhorn-engine - https://github.com/longhorn/longhorn-instance-manager +- https://github.com/longhorn/longhorn-share-manager - https://github.com/longhorn/longhorn-manager - https://github.com/longhorn/longhorn-ui - https://github.com/longhorn/longhorn-tests diff --git a/charts/longhorn/README.md b/charts/longhorn/README.md index 068bb5d66..eae11ef6d 100644 --- a/charts/longhorn/README.md +++ b/charts/longhorn/README.md @@ -1,49 +1,32 @@ -# Rancher Longhorn Chart +# Longhorn Chart -> **Important**: Please install Longhorn chart in `longhorn-system` namespace only. +> **Important**: Please install the Longhorn chart in the `longhorn-system` namespace only. > **Warning**: Longhorn doesn't support downgrading from a higher version to a lower version. -The following document pertains to running Longhorn from the Rancher 2.0 chart. - ## Source Code Longhorn is 100% open source software. Project source code is spread across a number of repos: 1. Longhorn Engine -- Core controller/replica logic https://github.com/longhorn/longhorn-engine 2. Longhorn Instance Manager -- Controller/replica instance lifecycle management https://github.com/longhorn/longhorn-instance-manager -3. Longhorn Manager -- Longhorn orchestration, includes CSI driver for Kubernetes https://github.com/longhorn/longhorn-manager -4. Longhorn UI -- Dashboard https://github.com/longhorn/longhorn-ui +3. Longhorn Share Manager -- NFS provisioner that exposes Longhorn volumes as ReadWriteMany volumes. https://github.com/longhorn/longhorn-share-manager +4. Longhorn Manager -- Longhorn orchestration, includes CSI driver for Kubernetes https://github.com/longhorn/longhorn-manager +5. Longhorn UI -- Dashboard https://github.com/longhorn/longhorn-ui ## Prerequisites -1. Rancher v2.1+ -2. Docker v1.13+ -3. Kubernetes v1.14+ -4. Make sure `curl`, `findmnt`, `grep`, `awk` and `blkid` has been installed in all nodes of the Kubernetes cluster. -5. Make sure `open-iscsi` has been installed in all nodes of the Kubernetes cluster. For GKE, recommended Ubuntu as guest OS image since it contains `open-iscsi` already. +1. Docker v1.13+ +2. Kubernetes v1.16+ +3. Make sure `curl`, `findmnt`, `grep`, `awk` and `blkid` has been installed in all nodes of the Kubernetes cluster. +4. Make sure `open-iscsi` has been installed in all nodes of the Kubernetes cluster. For GKE, recommended Ubuntu as guest OS image since it contains `open-iscsi` already. ## Uninstallation -1. To prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc). +To prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc). -2. From Rancher UI, navigate to `Catalog Apps` tab and delete Longhorn app. +From Rancher Cluster Explorer UI, navigate to Apps page, delete app `longhorn` then app `longhorn-crd` in Installed Apps tab. -## Troubleshooting - -### I deleted the Longhorn App from Rancher UI instead of following the uninstallation procedure - -Redeploy the (same version) Longhorn App. Follow the uninstallation procedure above. - -### Problems with CRDs - -If your CRD instances or the CRDs themselves can't be deleted for whatever reason, run the commands below to clean up. Caution: this will wipe all Longhorn state! - -``` -# Delete CRD instances and definitions -curl -s https://raw.githubusercontent.com/longhorn/longhorn/v0.8.1/scripts/cleanup.sh |bash -s v062 -curl -s https://raw.githubusercontent.com/longhorn/longhorn/v0.8.1/scripts/cleanup.sh |bash -s v070 -``` --- Please see [link](https://github.com/longhorn/longhorn) for more information. diff --git a/charts/longhorn/charts-crd/Chart.yaml b/charts/longhorn/charts-crd/Chart.yaml index c9045713c..794ebe54b 100644 --- a/charts/longhorn/charts-crd/Chart.yaml +++ b/charts/longhorn/charts-crd/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -version: 1.0.202 +version: 1.1.000 description: Installs the CRDs for longhorn. name: longhorn-crd type: application diff --git a/charts/longhorn/charts-crd/templates/crds.yaml b/charts/longhorn/charts-crd/templates/crds.yaml index e63cf8c72..836264585 100644 --- a/charts/longhorn/charts-crd/templates/crds.yaml +++ b/charts/longhorn/charts-crd/templates/crds.yaml @@ -1,12 +1,12 @@ -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: Engine name: engines.longhorn.io spec: @@ -16,22 +16,53 @@ spec: listKind: EngineList plural: engines shortNames: - - lhe + - lhe singular: engine scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: The current state of the engine + jsonPath: .status.currentState + - name: Node + type: string + description: The node that the engine is on + jsonPath: .spec.nodeID + - name: InstanceManager + type: string + description: The instance manager of the engine + jsonPath: .status.instanceManagerName + - name: Image + type: string + description: The current image of the engine + jsonPath: .status.currentImage + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: Replica name: replicas.longhorn.io spec: @@ -41,22 +72,57 @@ spec: listKind: ReplicaList plural: replicas shortNames: - - lhr + - lhr singular: replica scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: The current state of the replica + jsonPath: .status.currentState + - name: Node + type: string + description: The node that the replica is on + jsonPath: .spec.nodeID + - name: Disk + type: string + description: The disk that the replica is on + jsonPath: .spec.diskID + - name: InstanceManager + type: string + description: The instance manager of the replica + jsonPath: .status.instanceManagerName + - name: Image + type: string + description: The current image of the replica + jsonPath: .status.currentImage + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: Setting name: settings.longhorn.io spec: @@ -66,20 +132,34 @@ spec: listKind: SettingList plural: settings shortNames: - - lhs + - lhs singular: setting scope: Namespaced - version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + x-kubernetes-preserve-unknown-fields: true + additionalPrinterColumns: + - name: Value + type: string + description: The value of the setting + jsonPath: .value + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: Volume name: volumes.longhorn.io spec: @@ -89,22 +169,57 @@ spec: listKind: VolumeList plural: volumes shortNames: - - lhv + - lhv singular: volume scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: The state of the volume + jsonPath: .status.state + - name: Robustness + type: string + description: The robustness of the volume + jsonPath: .status.robustness + - name: Scheduled + type: string + description: The scheduled condition of the volume + jsonPath: .status.conditions['scheduled']['status'] + - name: Size + type: string + description: The size of the volume + jsonPath: .spec.size + - name: Node + type: string + description: The node that the volume is currently attaching to + jsonPath: .status.currentNodeID + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: EngineImage name: engineimages.longhorn.io spec: @@ -114,22 +229,53 @@ spec: listKind: EngineImageList plural: engineimages shortNames: - - lhei + - lhei singular: engineimage scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: State of the engine image + jsonPath: .status.state + - name: Image + type: string + description: The Longhorn engine image + jsonPath: .spec.image + - name: RefCount + type: integer + description: Number of volumes are using the engine image + jsonPath: .status.refCount + - name: BuildDate + type: date + description: The build date of the engine image + jsonPath: .status.buildDate + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: Node name: nodes.longhorn.io spec: @@ -139,22 +285,49 @@ spec: listKind: NodeList plural: nodes shortNames: - - lhn + - lhn singular: node scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: Ready + type: string + description: Indicate whether the node is ready + jsonPath: .status.conditions['Ready']['status'] + - name: AllowScheduling + type: boolean + description: Indicate whether the user disabled/enabled replica scheduling for the node + jsonPath: .spec.allowScheduling + - name: Schedulable + type: string + description: Indicate whether Longhorn can schedule replicas on the node + jsonPath: .status.conditions['Schedulable']['status'] + - name: Age + type: date + jsonPath: .metadata.creationTimestamp --- -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: longhorn - helm.sh/chart: longhorn-1.0.2 + helm.sh/chart: longhorn-1.1.0 app.kubernetes.io/managed-by: Helm app.kubernetes.io/instance: longhorn - app.kubernetes.io/version: v1.0.2 + app.kubernetes.io/version: v1.1.0 longhorn-manager: InstanceManager name: instancemanagers.longhorn.io spec: @@ -164,9 +337,84 @@ spec: listKind: InstanceManagerList plural: instancemanagers shortNames: - - lhim + - lhim singular: instancemanager scope: Namespaced - version: v1beta1 - subresources: - status: {} + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: The state of the instance manager + jsonPath: .status.currentState + - name: Type + type: string + description: The type of the instance manager (engine or replica) + jsonPath: .spec.type + - name: Node + type: string + description: The node that the instance manager is running on + jsonPath: .spec.nodeID + - name: Age + type: date + jsonPath: .metadata.creationTimestamp +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + labels: + app.kubernetes.io/name: longhorn + helm.sh/chart: longhorn-1.1.0 + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/instance: longhorn + app.kubernetes.io/version: v1.1.0 + longhorn-manager: ShareManager + name: sharemanagers.longhorn.io +spec: + group: longhorn.io + names: + kind: ShareManager + listKind: ShareManagerList + plural: sharemanagers + shortNames: + - lhsm + singular: sharemanager + scope: Namespaced + versions: + - name: v1beta1 + served: true + storage: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + x-kubernetes-preserve-unknown-fields: true + status: + x-kubernetes-preserve-unknown-fields: true + subresources: + status: {} + additionalPrinterColumns: + - name: State + type: string + description: The state of the share manager + jsonPath: .status.state + - name: Node + type: string + description: The node that the share manager is owned by + jsonPath: .status.ownerID + - name: Age + type: date + jsonPath: .metadata.creationTimestamp diff --git a/charts/longhorn/questions.yml b/charts/longhorn/questions.yml index 26566901f..f7ace54c7 100644 --- a/charts/longhorn/questions.yml +++ b/charts/longhorn/questions.yml @@ -11,104 +11,128 @@ questions: group: "Longhorn Images" subquestions: - variable: image.longhorn.manager.repository - default: longhornio/longhorn-manager + default: rancher/longhornio-longhorn-manager description: "Specify Longhorn Manager Image Repository" type: string label: Longhorn Manager Image Repository group: "Longhorn Images Settings" - variable: image.longhorn.manager.tag - default: v1.0.2 + default: v1.1.0 description: "Specify Longhorn Manager Image Tag" type: string label: Longhorn Manager Image Tag group: "Longhorn Images Settings" - variable: image.longhorn.engine.repository - default: longhornio/longhorn-engine + default: rancher/longhornio-longhorn-engine description: "Specify Longhorn Engine Image Repository" type: string label: Longhorn Engine Image Repository group: "Longhorn Images Settings" - variable: image.longhorn.engine.tag - default: v1.0.2 + default: v1.1.0 description: "Specify Longhorn Engine Image Tag" type: string label: Longhorn Engine Image Tag group: "Longhorn Images Settings" - variable: image.longhorn.ui.repository - default: longhornio/longhorn-ui + default: rancher/longhornio-longhorn-ui description: "Specify Longhorn UI Image Repository" type: string label: Longhorn UI Image Repository group: "Longhorn Images Settings" - variable: image.longhorn.ui.tag - default: v1.0.2 + default: v1.1.0 description: "Specify Longhorn UI Image Tag" type: string label: Longhorn UI Image Tag group: "Longhorn Images Settings" - variable: image.longhorn.instanceManager.repository - default: longhornio/longhorn-instance-manager + default: rancher/longhornio-longhorn-instance-manager description: "Specify Longhorn Instance Manager Image Repository" type: string label: Longhorn Instance Manager Image Repository group: "Longhorn Images Settings" - variable: image.longhorn.instanceManager.tag - default: v1_20200514 + default: v1_20201216 description: "Specify Longhorn Instance Manager Image Tag" type: string label: Longhorn Instance Manager Image Tag group: "Longhorn Images Settings" + - variable: image.longhorn.shareManager.repository + default: rancher/longhornio-longhorn-share-manager + description: "Specify Longhorn Share Manager Image Repository" + type: string + label: Longhorn Share Manager Image Repository + group: "Longhorn Images Settings" + - variable: image.longhorn.shareManager.tag + default: v1_20201204 + description: "Specify Longhorn Share Manager Image Tag" + type: string + label: Longhorn Share Manager Image Tag + group: "Longhorn Images Settings" - variable: image.csi.attacher.repository - default: longhornio/csi-attacher + default: rancher/longhornio-csi-attacher description: "Specify CSI attacher image repository. Leave blank to autodetect." type: string label: Longhorn CSI Attacher Image Repository group: "Longhorn CSI Driver Images" - variable: image.csi.attacher.tag - default: v2.0.0 + default: v2.2.1-lh1 description: "Specify CSI attacher image tag. Leave blank to autodetect." type: string label: Longhorn CSI Attacher Image Tag group: "Longhorn CSI Driver Images" - variable: image.csi.provisioner.repository - default: longhornio/csi-provisioner + default: rancher/longhornio-csi-provisioner description: "Specify CSI provisioner image repository. Leave blank to autodetect." type: string label: Longhorn CSI Provisioner Image Repository group: "Longhorn CSI Driver Images" - variable: image.csi.provisioner.tag - default: v1.4.0 + default: v1.6.0-lh1 description: "Specify CSI provisioner image tag. Leave blank to autodetect." type: string label: Longhorn CSI Provisioner Image Tag group: "Longhorn CSI Driver Images" - variable: image.csi.nodeDriverRegistrar.repository - default: longhornio/csi-node-driver-registrar + default: rancher/longhornio-csi-node-driver-registrar description: "Specify CSI Node Driver Registrar image repository. Leave blank to autodetect." type: string label: Longhorn CSI Node Driver Registrar Image Repository group: "Longhorn CSI Driver Images" - variable: image.csi.nodeDriverRegistrar.tag - default: v1.2.0 + default: v1.2.0-lh1 description: "Specify CSI Node Driver Registrar image tag. Leave blank to autodetect." type: string label: Longhorn CSI Node Driver Registrar Image Tag group: "Longhorn CSI Driver Images" - variable: image.csi.resizer.repository - default: longhornio/csi-resizer + default: rancher/longhornio-csi-resizer description: "Specify CSI Driver Resizer image repository. Leave blank to autodetect." type: string label: Longhorn CSI Driver Resizer Image Repository group: "Longhorn CSI Driver Images" - variable: image.csi.resizer.tag - default: v0.3.0 + default: v0.5.1-lh1 description: "Specify CSI Driver Resizer image tag. Leave blank to autodetect." type: string label: Longhorn CSI Driver Resizer Image Tag group: "Longhorn CSI Driver Images" + - variable: image.csi.snapshotter.repository + default: rancher/longhornio-csi-snapshotter + description: "Specify CSI Driver Snapshotter image repository. Leave blank to autodetect." + type: string + label: Longhorn CSI Driver Snapshotter Image Repository + group: "Longhorn CSI Driver Images" + - variable: image.csi.snapshotter.tag + default: v2.1.1-lh1 + description: "Specify CSI Driver Snapshotter image tag. Leave blank to autodetect." + type: string + label: Longhorn CSI Driver Snapshotter Image Tag + group: "Longhorn CSI Driver Images" - variable: privateRegistry.registryUrl label: Private registry URL - description: "URL of private registry" + description: "URL of private registry. Leave blank to apply system default registry." group: "Private Registry Settings" type: string default: "" @@ -124,6 +148,12 @@ questions: group: "Private Registry Settings" type: password default: "" +- variable: privateRegistry.registrySecret + label: Private registry secret name + description: "Longhorn will automatically generate a Kubernetes secret with this name and use it to pull images from your private registry." + group: "Private Registry Settings" + type: string + default: "" - variable: longhorn.default_setting default: "false" description: "Customize the default settings before installing Longhorn for the first time. This option will only work if the cluster hasn't installed Longhorn." @@ -132,12 +162,6 @@ questions: show_subquestion_if: true group: "Longhorn Default Settings" subquestions: - - variable: defaultSettings.registrySecret - label: Private registry secret - description: "The Kubernetes Secret name" - group: "Longhorn Default Settings" - type: string - default: "" - variable: csi.kubeletRootDir default: description: "Specify kubelet root-dir. Leave blank to autodetect." @@ -146,7 +170,7 @@ questions: group: "Longhorn CSI Driver Settings" - variable: csi.attacherReplicaCount type: int - default: + default: 3 min: 1 max: 10 description: "Specify replica count of CSI Attacher. By default 3." @@ -154,27 +178,28 @@ questions: group: "Longhorn CSI Driver Settings" - variable: csi.provisionerReplicaCount type: int - default: + default: 3 min: 1 max: 10 description: "Specify replica count of CSI Provisioner. By default 3." label: Longhorn CSI Provisioner replica count group: "Longhorn CSI Driver Settings" - - variable: persistence.defaultClass - default: "true" - description: "Set as default StorageClass" - group: "Longhorn CSI Driver Settings" - type: boolean - required: true - label: Default Storage Class - - variable: persistence.defaultClassReplicaCount - description: "Set replica count for default StorageClass" - group: "Longhorn CSI Driver Settings" + - variable: csi.resizerReplicaCount type: int default: 3 min: 1 max: 10 - label: Default Storage Class Replica Count + description: "Specify replica count of CSI Resizer. By default 3." + label: Longhorn CSI Resizer replica count + group: "Longhorn CSI Driver Settings" + - variable: csi.snapshotterReplicaCount + type: int + default: 3 + min: 1 + max: 10 + description: "Specify replica count of CSI Snapshotter. By default 3." + label: Longhorn CSI Snapshotter replica count + group: "Longhorn CSI Driver Settings" - variable: defaultSettings.backupTarget label: Backup Target description: "The endpoint used to access the backupstore. NFS and S3 are supported." @@ -187,6 +212,13 @@ questions: group: "Longhorn Default Settings" type: string default: + - variable: defaultSettings.allowRecurringJobWhileVolumeDetached + label: Allow Recurring Job While Volume Is Detached + description: 'If this setting is enabled, Longhorn will automatically attaches the volume and takes snapshot/backup when it is the time to do recurring snapshot/backup. +Note that the volume is not ready for workload during the period when the volume was automatically attached. Workload will have to wait until the recurring job finishes.' + group: "Longhorn Default Settings" + type: boolean + default: "false" - variable: defaultSettings.createDefaultDiskLabeledNodes label: Create Default Disk on Labeled Nodes description: 'Create default Disk automatically only on Nodes with the label "node.longhorn.io/create-default-disk=true" if no other disks exist. If disabled, the default disk will be created on all new nodes when each node is first added.' @@ -199,6 +231,19 @@ questions: group: "Longhorn Default Settings" type: string default: "/var/lib/longhorn/" + - variable: defaultSettings.defaultDataLocality + label: Default Data Locality + description: 'We say a Longhorn volume has data locality if there is a local replica of the volume on the same node as the pod which is using the volume. +This setting specifies the default data locality when a volume is created from the Longhorn UI. For Kubernetes configuration, update the `dataLocality` in the StorageClass +The available modes are: +- **disabled**. This is the default option. There may or may not be a replica on the same node as the attached volume (workload) +- **best-effort**. This option instructs Longhorn to try to keep a replica on the same node as the attached volume (workload). Longhorn will not stop the volume, even if it cannot keep a replica local to the attached volume (workload) due to environment limitation, e.g. not enough disk space, incompatible disk tags, etc.' + group: "Longhorn Default Settings" + type: enum + options: + - "disabled" + - "best-effort" + default: "disabled" - variable: defaultSettings.replicaSoftAntiAffinity label: Replica Node Level Soft Anti-Affinity description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default false.' @@ -236,10 +281,13 @@ questions: default: 3 - variable: defaultSettings.guaranteedEngineCPU label: Guaranteed Engine CPU - description: 'Allow Longhorn Instance Managers to have guaranteed CPU allocation. The value is how many CPUs should be reserved for each Engine/Replica Instance Manager Pod created by Longhorn. For example, 0.1 means one-tenth of a CPU. This will help maintain engine stability during high node workload. It only applies to the Engine/Replica Manager Pods created after the setting took effect. -WARNING: After this setting is changed, all the instance managers on all the nodes will be automatically restarted. -WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES. -By default 0.25.' + description: "Allow Longhorn Instance Managers to have guaranteed CPU allocation. By default 0.25. The value is how many CPUs should be reserved for each Engine/Replica Instance Manager Pod created by Longhorn. For example, 0.1 means one-tenth of a CPU. This will help maintain engine stability during high node workload. It only applies to the Engine/Replica Instance Manager Pods created after the setting took effect. +In order to prevent unexpected volume crash, you can use the following formula to calculate an appropriate value for this setting: +'Guaranteed Engine CPU = The estimated max Longhorn volume/replica count on a node * 0.1'. +The result of above calculation doesn't mean that's the maximum CPU resources the Longhorn workloads require. To fully exploit the Longhorn volume I/O performance, you can allocate/guarantee more CPU resources via this setting. +If it's hard to estimate the volume/replica count now, you can leave it with the default value, or allocate 1/8 of total CPU of a node. Then you can tune it when there is no running workload using Longhorn volumes. +WARNING: After this setting is changed, all the instance managers on all the nodes will be automatically restarted +WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES." group: "Longhorn Default Settings" type: float default: 0.25 @@ -258,8 +306,15 @@ By default 0.25.' default: 300 - variable: defaultSettings.taintToleration label: Kubernetes Taint Toleration - description: 'To dedicate nodes to store Longhorn replicas and reject other general workloads, set tolerations for Longhorn and add taints for the storage nodes. All Longhorn volumes should be detached before modifying toleration settings. We recommend setting tolerations during Longhorn deployment because the Longhorn system cannot be operated during the update. Multiple tolerations can be set here, and these tolerations are separated by semicolon. For example, `key1=value1:NoSchedule; key2:NoExecute`. Because `kubernetes.io` is used as the key of all Kubernetes default tolerations, it should not be used in the toleration settings. -WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES.' + description: "To dedicate nodes to store Longhorn replicas and reject other general workloads, set tolerations for Longhorn and add taints for the storage nodes. +All Longhorn volumes should be detached before modifying toleration settings. +We recommend setting tolerations during Longhorn deployment because the Longhorn system cannot be operated during the update. +Multiple tolerations can be set here, and these tolerations are separated by semicolon. For example: +* `key1=value1:NoSchedule; key2:NoExecute` +* `:` this toleration tolerates everything because an empty key with operator `Exists` matches all keys, values and effects +* `key1=value1:` this toleration has empty effect. It matches all effects with key `key1` +Because `kubernetes.io` is used as the key of all Kubernetes default tolerations, it should not be used in the toleration settings. +WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES!" group: "Longhorn Default Settings" type: string default: "" @@ -275,6 +330,14 @@ WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES.' group: "Longhorn Default Settings" type: boolean default: "true" + - variable: defaultSettings.autoDeletePodWhenVolumeDetachedUnexpectedly + label: Automatically Delete Workload Pod when The Volume Is Detached Unexpectedly + description: 'If enabled, Longhorn will automatically delete the workload pod that is managed by a controller (e.g. deployment, statefulset, daemonset, etc...) when Longhorn volume is detached unexpectedly (e.g. during Kubernetes upgrade, Docker reboot, or network disconnect). By deleting the pod, its controller restarts the pod and Kubernetes handles volume reattachment and remount. +If disabled, Longhorn will not delete the workload pod that is managed by a controller. You will have to manually restart the pod to reattach and remount the volume. +**Note:** This setting does not apply to the workload pods that do not have a controller. Longhorn never deletes them.' + group: "Longhorn Default Settings" + type: boolean + default: "true" - variable: defaultSettings.disableSchedulingOnCordonedNode label: Disable Scheduling On Cordoned Node description: "Disable Longhorn manager to schedule replica on Kubernetes cordoned node. By default true." @@ -293,15 +356,118 @@ WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES.' group: "Longhorn Default Settings" type: enum options: - - "wait" - - "never" - - "immediate" + - "wait" + - "never" + - "immediate" default: "wait" + - variable: defaultSettings.nodeDownPodDeletionPolicy + label: Pod Deletion Policy When Node is Down + description: "Defines the Longhorn action when a Volume is stuck with a StatefulSet/Deployment Pod on a node that is down. +- **do-nothing** is the default Kubernetes behavior of never force deleting StatefulSet/Deployment terminating pods. Since the pod on the node that is down isn't removed, Longhorn volumes are stuck on nodes that are down. +- **delete-statefulset-pod** Longhorn will force delete StatefulSet terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods. +- **delete-deployment-pod** Longhorn will force delete Deployment terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods. +- **delete-both-statefulset-and-deployment-pod** Longhorn will force delete StatefulSet/Deployment terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods." + group: "Longhorn Default Settings" + type: enum + options: + - "do-nothing" + - "delete-statefulset-pod" + - "delete-deployment-pod" + - "delete-both-statefulset-and-deployment-pod" + default: "do-nothing" + - variable: defaultSettings.allowNodeDrainWithLastHealthyReplica + label: Allow Node Drain with the Last Healthy Replica + description: "By default, Longhorn will block `kubectl drain` action on a node if the node contains the last healthy replica of a volume. +If this setting is enabled, Longhorn will **not** block `kubectl drain` action on a node even if the node contains the last healthy replica of a volume." + group: "Longhorn Default Settings" + type: boolean + default: "false" - variable: defaultSettings.mkfsExt4Parameters label: Custom mkfs.ext4 parameters description: "Allows setting additional filesystem creation parameters for ext4. For older host kernels it might be necessary to disable the optional ext4 metadata_csum feature by specifying `-O ^64bit,^metadata_csum`." group: "Longhorn Default Settings" type: string + - variable: defaultSettings.disableReplicaRebuild + label: Disable Replica Rebuild + description: "This setting disable replica rebuild cross the whole cluster, eviction and data locality feature won't work if this setting is true. But doesn't have any impact to any current replica rebuild and restore disaster recovery volume." + group: "Longhorn Default Settings" + type: boolean + default: "false" + - variable: defaultSettings.replicaReplenishmentWaitInterval + label: Replica Replenishment Wait Interval + description: "In seconds. The interval determines how long Longhorn will wait at least in order to reuse the existing data on a failed replica rather than directly creating a new replica for a degraded volume. +Warning: This option works only when there is a failed replica in the volume. And this option may block the rebuilding for a while in the case." + group: "Longhorn Default Settings" + type: int + min: 0 + default: 600 + - variable: defaultSettings.disableRevisionCounter + label: Disable Revision Counter + description: "This setting is only for volumes created by UI. By default, this is false meaning there will be a reivision counter file to track every write to the volume. During salvage recovering Longhorn will pick the repica with largest reivision counter as candidate to recover the whole volume. If revision counter is disabled, Longhorn will not track every write to the volume. During the salvage recovering, Longhorn will use the 'volume-head-xxx.img' file last modification time and file size to pick the replica candidate to recover the whole volume." + group: "Longhorn Default Settings" + type: boolean + default: "false" + - variable: defaultSettings.systemManagedPodsImagePullPolicy + label: System Managed Pod Image Pull Policy + description: "This setting defines the Image Pull Policy of Longhorn system managed pods, e.g. instance manager, engine image, CSI driver, etc. The new Image Pull Policy will only apply after the system managed pods restart." + group: "Longhorn Default Settings" + type: enum + options: + - "if-not-present" + - "always" + - "never" + default: "if-not-present" + - variable: defaultSettings.allowVolumeCreationWithDegradedAvailability + label: Allow Volume Creation with Degraded Availability + description: "This setting allows user to create and attach a volume that doesn't have all the replicas scheduled at the time of creation." + group: "Longhorn Default Settings" + type: boolean + default: "true" + - variable: defaultSettings.autoCleanupSystemGeneratedSnapshot + label: Automatically Cleanup System Generated Snapshot + description: "This setting enables Longhorn to automatically cleanup the system generated snapshot after replica rebuild is done." + group: "Longhorn Default Settings" + type: boolean + default: "true" +- variable: persistence.defaultClass + default: "true" + description: "Set as default StorageClass for Longhorn" + label: Default Storage Class + group: "Longhorn Storage Class Settings" + required: true + type: boolean +- variable: persistence.reclaimPolicy + label: Storage Class Retain Policy + description: "Define reclaim policy (Retain or Delete)" + group: "Longhorn Storage Class Settings" + required: true + type: enum + options: + - "Delete" + - "Retain" + default: "Delete" +- variable: persistence.defaultClassReplicaCount + description: "Set replica count for Longhorn StorageClass" + label: Default Storage Class Replica Count + group: "Longhorn Storage Class Settings" + type: int + min: 1 + max: 10 + default: 3 +- variable: persistence.recurringJobs.enable + description: "Enable recurring job for Longhorn StorageClass" + group: "Longhorn Storage Class Settings" + label: Enable Storage Class Recurring Job + type: boolean + default: false + show_subquestion_if: true + subquestions: + - variable: persistence.recurringJobs.jobList + description: 'Recurring job list for Longhorn StorageClass. Please be careful of quotes of input. e.g., [{"name":"backup", "task":"backup", "cron":"*/2 * * * *", "retain":1,"labels": {"interval":"2m"}}]' + label: Storage Class Recurring Job List + group: "Longhorn Storage Class Settings" + type: string + default: - variable: ingress.enabled default: "false" description: "Expose app using Layer 7 Load Balancer - ingress" @@ -343,4 +509,4 @@ WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES.' description: "Setup a pod security policy for Longhorn workloads." label: Pod Security Policy type: boolean - group: "Other Settings" \ No newline at end of file + group: "Other Settings" diff --git a/charts/longhorn/templates/_helpers.tpl b/charts/longhorn/templates/_helpers.tpl index 5cac51cfa..3fbc2ac02 100644 --- a/charts/longhorn/templates/_helpers.tpl +++ b/charts/longhorn/templates/_helpers.tpl @@ -45,3 +45,22 @@ app.kubernetes.io/version: {{ .Chart.AppVersion }} {{- "" -}} {{- end -}} {{- end -}} + +{{- define "registry_url" -}} +{{- if .Values.privateRegistry.registryUrl -}} +{{- printf "%s/" .Values.privateRegistry.registryUrl -}} +{{- else -}} +{{ include "system_default_registry" . }} +{{- end -}} +{{- end -}} + +{{- /* + define the longhorn release namespace +*/ -}} +{{- define "release_namespace" -}} +{{- if .Values.namespaceOverride -}} +{{- .Values.namespaceOverride -}} +{{- else -}} +{{- .Release.Namespace -}} +{{- end -}} +{{- end -}} diff --git a/charts/longhorn/templates/clusterrole.yaml b/charts/longhorn/templates/clusterrole.yaml index 491c3e6a5..c69761756 100644 --- a/charts/longhorn/templates/clusterrole.yaml +++ b/charts/longhorn/templates/clusterrole.yaml @@ -22,19 +22,26 @@ rules: - apiGroups: ["batch"] resources: ["jobs", "cronjobs"] verbs: ["*"] +- apiGroups: ["policy"] + resources: ["poddisruptionbudgets"] + verbs: ["*"] - apiGroups: ["scheduling.k8s.io"] resources: ["priorityclasses"] verbs: ["watch", "list"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses", "volumeattachments", "csinodes", "csidrivers"] verbs: ["*"] -- apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - verbs: ["get", "watch", "list", "delete", "update", "create"] +- apiGroups: ["snapshot.storage.k8s.io"] + resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"] + verbs: ["*"] - apiGroups: ["longhorn.io"] resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", - "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status"] + "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status", + "sharemanagers", "sharemanagers/status"] verbs: ["*"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"] verbs: ["*"] +- apiGroups: ["metrics.k8s.io"] + resources: ["pods", "nodes"] + verbs: ["get", "list"] diff --git a/charts/longhorn/templates/clusterrolebinding.yaml b/charts/longhorn/templates/clusterrolebinding.yaml index 30c7fa78c..66ac62f9b 100644 --- a/charts/longhorn/templates/clusterrolebinding.yaml +++ b/charts/longhorn/templates/clusterrolebinding.yaml @@ -10,4 +10,4 @@ roleRef: subjects: - kind: ServiceAccount name: longhorn-service-account - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} diff --git a/charts/longhorn/templates/daemonset-sa.yaml b/charts/longhorn/templates/daemonset-sa.yaml index 1717aa4d9..e40793591 100644 --- a/charts/longhorn/templates/daemonset-sa.yaml +++ b/charts/longhorn/templates/daemonset-sa.yaml @@ -4,7 +4,7 @@ metadata: labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn-manager name: longhorn-manager - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} spec: selector: matchLabels: @@ -16,7 +16,7 @@ spec: spec: containers: - name: longhorn-manager - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: IfNotPresent securityContext: privileged: true @@ -25,11 +25,13 @@ spec: - -d - daemon - --engine-image - - "{{ template "system_default_registry" . }}{{ .Values.image.longhorn.engine.repository }}:{{ .Values.image.longhorn.engine.tag }}" + - "{{ template "registry_url" . }}{{ .Values.image.longhorn.engine.repository }}:{{ .Values.image.longhorn.engine.tag }}" - --instance-manager-image - - "{{ template "system_default_registry" . }}{{ .Values.image.longhorn.instanceManager.repository }}:{{ .Values.image.longhorn.instanceManager.tag }}" + - "{{ template "registry_url" . }}{{ .Values.image.longhorn.instanceManager.repository }}:{{ .Values.image.longhorn.instanceManager.tag }}" + - --share-manager-image + - "{{ template "registry_url" . }}{{ .Values.image.longhorn.shareManager.repository }}:{{ .Values.image.longhorn.shareManager.tag }}" - --manager-image - - "{{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}" + - "{{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}" - --service-account - longhorn-service-account ports: @@ -82,9 +84,9 @@ spec: - name: longhorn-default-setting configMap: name: longhorn-default-setting - {{- if .Values.defaultSettings.registrySecret }} + {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - - name: {{ .Values.defaultSettings.registrySecret }} + - name: {{ .Values.privateRegistry.registrySecret }} {{- end }} serviceAccountName: longhorn-service-account updateStrategy: @@ -97,7 +99,7 @@ metadata: labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn-manager name: longhorn-backend - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} spec: type: {{ .Values.service.manager.type }} sessionAffinity: ClientIP diff --git a/charts/longhorn/templates/default-setting.yaml b/charts/longhorn/templates/default-setting.yaml index 2eb10b4dc..14c264e27 100644 --- a/charts/longhorn/templates/default-setting.yaml +++ b/charts/longhorn/templates/default-setting.yaml @@ -2,12 +2,13 @@ apiVersion: v1 kind: ConfigMap metadata: name: longhorn-default-setting - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} data: default-setting.yaml: |- backup-target: {{ .Values.defaultSettings.backupTarget }} backup-target-credential-secret: {{ .Values.defaultSettings.backupTargetCredentialSecret }} + allow-recurring-job-while-volume-detached: {{ .Values.defaultSettings.allowRecurringJobWhileVolumeDetached }} create-default-disk-labeled-nodes: {{ .Values.defaultSettings.createDefaultDiskLabeledNodes }} default-data-path: {{ .Values.defaultSettings.defaultDataPath }} replica-soft-anti-affinity: {{ .Values.defaultSettings.replicaSoftAntiAffinity }} @@ -15,14 +16,23 @@ data: storage-minimal-available-percentage: {{ .Values.defaultSettings.storageMinimalAvailablePercentage }} upgrade-checker: {{ .Values.defaultSettings.upgradeChecker }} default-replica-count: {{ .Values.defaultSettings.defaultReplicaCount }} + default-data-locality: {{ .Values.defaultSettings.defaultDataLocality }} guaranteed-engine-cpu: {{ .Values.defaultSettings.guaranteedEngineCPU }} default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }} backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }} taint-toleration: {{ .Values.defaultSettings.taintToleration }} priority-class: {{ .Values.defaultSettings.priorityClass }} - registry-secret: {{ .Values.defaultSettings.registrySecret }} auto-salvage: {{ .Values.defaultSettings.autoSalvage }} + auto-delete-pod-when-volume-detached-unexpectedly: {{ .Values.defaultSettings.autoDeletePodWhenVolumeDetachedUnexpectedly }} disable-scheduling-on-cordoned-node: {{ .Values.defaultSettings.disableSchedulingOnCordonedNode }} replica-zone-soft-anti-affinity: {{ .Values.defaultSettings.replicaZoneSoftAntiAffinity }} volume-attachment-recovery-policy: {{ .Values.defaultSettings.volumeAttachmentRecoveryPolicy }} - mkfs-ext4-parameters: {{ .Values.defaultSettings.mkfsExt4Parameters }} + node-down-pod-deletion-policy: {{ .Values.defaultSettings.nodeDownPodDeletionPolicy }} + allow-node-drain-with-last-healthy-replica: {{ .Values.defaultSettings.allowNodeDrainWithLastHealthyReplica }} + mkfs-ext4-parameters: {{ .Values.defaultSettings.mkfsExt4Parameters }} + disable-replica-rebuild: {{ .Values.defaultSettings.disableReplicaRebuild }} + replica-replenishment-wait-interval: {{ .Values.defaultSettings.replicaReplenishmentWaitInterval }} + disable-revision-counter: {{ .Values.defaultSettings.disableRevisionCounter }} + system-managed-pods-image-pull-policy: {{ .Values.defaultSettings.systemManagedPodsImagePullPolicy }} + allow-volume-creation-with-degraded-availability: {{ .Values.defaultSettings.allowVolumeCreationWithDegradedAvailability }} + auto-cleanup-system-generated-snapshot: {{ .Values.defaultSettings.autoCleanupSystemGeneratedSnapshot }} diff --git a/charts/longhorn/templates/deployment-driver.yaml b/charts/longhorn/templates/deployment-driver.yaml index bee055d8e..c4b6e3587 100644 --- a/charts/longhorn/templates/deployment-driver.yaml +++ b/charts/longhorn/templates/deployment-driver.yaml @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: longhorn-driver-deployer - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} spec: replicas: 1 @@ -16,18 +16,18 @@ spec: spec: initContainers: - name: wait-longhorn-manager - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} 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'] containers: - name: longhorn-driver-deployer - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: IfNotPresent command: - longhorn-manager - -d - deploy-driver - --manager-image - - "{{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}" + - "{{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}" - --manager-url - http://longhorn-backend:9500/v1 env: @@ -49,19 +49,23 @@ spec: {{- end }} {{- if and .Values.image.csi.attacher.repository .Values.image.csi.attacher.tag }} - name: CSI_ATTACHER_IMAGE - value: "{{ template "system_default_registry" . }}{{ .Values.image.csi.attacher.repository }}:{{ .Values.image.csi.attacher.tag }}" + value: "{{ template "registry_url" . }}{{ .Values.image.csi.attacher.repository }}:{{ .Values.image.csi.attacher.tag }}" {{- end }} {{- if and .Values.image.csi.provisioner.repository .Values.image.csi.provisioner.tag }} - name: CSI_PROVISIONER_IMAGE - value: "{{ template "system_default_registry" . }}{{ .Values.image.csi.provisioner.repository }}:{{ .Values.image.csi.provisioner.tag }}" + value: "{{ template "registry_url" . }}{{ .Values.image.csi.provisioner.repository }}:{{ .Values.image.csi.provisioner.tag }}" {{- end }} {{- if and .Values.image.csi.nodeDriverRegistrar.repository .Values.image.csi.nodeDriverRegistrar.tag }} - name: CSI_NODE_DRIVER_REGISTRAR_IMAGE - value: "{{ template "system_default_registry" . }}{{ .Values.image.csi.nodeDriverRegistrar.repository }}:{{ .Values.image.csi.nodeDriverRegistrar.tag }}" + value: "{{ template "registry_url" . }}{{ .Values.image.csi.nodeDriverRegistrar.repository }}:{{ .Values.image.csi.nodeDriverRegistrar.tag }}" {{- end }} {{- if and .Values.image.csi.resizer.repository .Values.image.csi.resizer.tag }} - name: CSI_RESIZER_IMAGE - value: "{{ template "system_default_registry" . }}{{ .Values.image.csi.resizer.repository }}:{{ .Values.image.csi.resizer.tag }}" + value: "{{ template "registry_url" . }}{{ .Values.image.csi.resizer.repository }}:{{ .Values.image.csi.resizer.tag }}" + {{- end }} + {{- if and .Values.image.csi.snapshotter.repository .Values.image.csi.snapshotter.tag }} + - name: CSI_SNAPSHOTTER_IMAGE + value: "{{ template "registry_url" . }}{{ .Values.image.csi.snapshotter.repository }}:{{ .Values.image.csi.snapshotter.tag }}" {{- end }} {{- if .Values.csi.attacherReplicaCount }} - name: CSI_ATTACHER_REPLICA_COUNT @@ -75,9 +79,14 @@ spec: - name: CSI_RESIZER_REPLICA_COUNT value: {{ .Values.csi.resizerReplicaCount | quote }} {{- end }} - {{- if .Values.defaultSettings.registrySecret }} + {{- if .Values.csi.snapshotterReplicaCount }} + - name: CSI_SNAPSHOTTER_REPLICA_COUNT + value: {{ .Values.csi.snapshotterReplicaCount | quote }} + {{- end }} + + {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - - name: {{ .Values.defaultSettings.registrySecret }} + - name: {{ .Values.privateRegistry.registrySecret }} {{- end }} serviceAccountName: longhorn-service-account securityContext: diff --git a/charts/longhorn/templates/deployment-ui.yaml b/charts/longhorn/templates/deployment-ui.yaml index 0de0c9b3b..da7c0ea5b 100644 --- a/charts/longhorn/templates/deployment-ui.yaml +++ b/charts/longhorn/templates/deployment-ui.yaml @@ -4,7 +4,7 @@ metadata: labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn-ui name: longhorn-ui - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} spec: replicas: 1 selector: @@ -17,7 +17,7 @@ spec: spec: containers: - name: longhorn-ui - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }} + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }} imagePullPolicy: IfNotPresent securityContext: runAsUser: 0 @@ -27,9 +27,9 @@ spec: env: - name: LONGHORN_MANAGER_IP value: "http://longhorn-backend:9500" - {{- if .Values.defaultSettings.registrySecret }} + {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - - name: {{ .Values.defaultSettings.registrySecret }} + - name: {{ .Values.privateRegistry.registrySecret }} {{- end }} --- kind: Service @@ -41,7 +41,7 @@ metadata: kubernetes.io/cluster-service: "true" {{- end }} name: longhorn-frontend - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} spec: {{- if eq .Values.service.ui.type "Rancher-Proxy" }} type: ClusterIP diff --git a/charts/longhorn/templates/ingress.yaml b/charts/longhorn/templates/ingress.yaml index e3e9e3eea..5b3a40588 100644 --- a/charts/longhorn/templates/ingress.yaml +++ b/charts/longhorn/templates/ingress.yaml @@ -3,6 +3,7 @@ apiVersion: extensions/v1beta1 kind: Ingress metadata: name: longhorn-ingress + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn-ingress annotations: diff --git a/charts/longhorn/templates/postupgrade-job.yaml b/charts/longhorn/templates/postupgrade-job.yaml index 1860be5fe..6b6a38591 100644 --- a/charts/longhorn/templates/postupgrade-job.yaml +++ b/charts/longhorn/templates/postupgrade-job.yaml @@ -5,7 +5,7 @@ metadata: "helm.sh/hook": post-upgrade "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation name: longhorn-post-upgrade - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} spec: activeDeadlineSeconds: 900 @@ -17,8 +17,8 @@ spec: spec: containers: - name: longhorn-post-upgrade - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: Always + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} + imagePullPolicy: IfNotPresent command: - longhorn-manager - post-upgrade @@ -28,8 +28,8 @@ spec: fieldRef: fieldPath: metadata.namespace restartPolicy: OnFailure - {{- if .Values.defaultSettings.registrySecret }} + {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - - name: {{ .Values.defaultSettings.registrySecret }} + - name: {{ .Values.privateRegistry.registrySecret }} {{- end }} serviceAccountName: longhorn-service-account diff --git a/charts/longhorn/templates/psp.yaml b/charts/longhorn/templates/psp.yaml index 66479b4fa..a2dfc05be 100644 --- a/charts/longhorn/templates/psp.yaml +++ b/charts/longhorn/templates/psp.yaml @@ -35,7 +35,7 @@ kind: Role metadata: name: longhorn-psp-role labels: {{- include "longhorn.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} rules: - apiGroups: - policy @@ -51,7 +51,7 @@ kind: RoleBinding metadata: name: longhorn-psp-binding labels: {{- include "longhorn.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role @@ -59,8 +59,8 @@ roleRef: subjects: - kind: ServiceAccount name: longhorn-service-account - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} - kind: ServiceAccount name: default - namespace: {{ .Release.Namespace }} -{{- end }} \ No newline at end of file + namespace: {{ include "release_namespace" . }} +{{- end }} diff --git a/charts/longhorn/templates/registry-secret.yml b/charts/longhorn/templates/registry-secret.yml index eeb9a8f4a..1c7565fea 100644 --- a/charts/longhorn/templates/registry-secret.yml +++ b/charts/longhorn/templates/registry-secret.yml @@ -1,10 +1,11 @@ -{{- if .Values.defaultSettings.registrySecret }} +{{- if .Values.privateRegistry.registrySecret }} apiVersion: v1 kind: Secret metadata: - name: {{ .Values.defaultSettings.registrySecret }} + name: {{ .Values.privateRegistry.registrySecret }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ template "secret" . }} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/longhorn/templates/serviceaccount.yaml b/charts/longhorn/templates/serviceaccount.yaml index a2280b44f..ad576c353 100644 --- a/charts/longhorn/templates/serviceaccount.yaml +++ b/charts/longhorn/templates/serviceaccount.yaml @@ -2,5 +2,5 @@ apiVersion: v1 kind: ServiceAccount metadata: name: longhorn-service-account - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} diff --git a/charts/longhorn/templates/storageclass.yaml b/charts/longhorn/templates/storageclass.yaml index 3fee340f4..dea6aafd4 100644 --- a/charts/longhorn/templates/storageclass.yaml +++ b/charts/longhorn/templates/storageclass.yaml @@ -1,14 +1,26 @@ -kind: StorageClass -apiVersion: storage.k8s.io/v1 +apiVersion: v1 +kind: ConfigMap metadata: - name: longhorn - annotations: - storageclass.kubernetes.io/is-default-class: {{ .Values.persistence.defaultClass | quote }} + name: longhorn-storageclass + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} -provisioner: driver.longhorn.io -allowVolumeExpansion: true -parameters: - numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}" - staleReplicaTimeout: "30" - fromBackup: "" - baseImage: "" +data: + storageclass.yaml: | + kind: StorageClass + apiVersion: storage.k8s.io/v1 + metadata: + name: longhorn + annotations: + storageclass.kubernetes.io/is-default-class: {{ .Values.persistence.defaultClass | quote }} + provisioner: driver.longhorn.io + allowVolumeExpansion: true + reclaimPolicy: "{{ .Values.persistence.reclaimPolicy }}" + volumeBindingMode: Immediate + parameters: + numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}" + staleReplicaTimeout: "30" + fromBackup: "" + baseImage: "" + {{- if .Values.persistence.recurringJobs.enable }} + recurringJobs: '{{ .Values.persistence.recurringJobs.jobList }}' + {{- end }} diff --git a/charts/longhorn/templates/tls-secrets.yaml b/charts/longhorn/templates/tls-secrets.yaml index 7a75df09c..a7ebf13e0 100644 --- a/charts/longhorn/templates/tls-secrets.yaml +++ b/charts/longhorn/templates/tls-secrets.yaml @@ -4,6 +4,7 @@ apiVersion: v1 kind: Secret metadata: name: longhorn + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn type: kubernetes.io/tls diff --git a/charts/longhorn/templates/uninstall-job.yaml b/charts/longhorn/templates/uninstall-job.yaml index d32157145..e7e9f1457 100644 --- a/charts/longhorn/templates/uninstall-job.yaml +++ b/charts/longhorn/templates/uninstall-job.yaml @@ -5,7 +5,7 @@ metadata: "helm.sh/hook": pre-delete "helm.sh/hook-delete-policy": hook-succeeded name: longhorn-uninstall - namespace: {{ .Release.Namespace }} + namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} spec: activeDeadlineSeconds: 900 @@ -17,8 +17,8 @@ spec: spec: containers: - name: longhorn-uninstall - image: {{ template "system_default_registry" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: Always + image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} + imagePullPolicy: IfNotPresent command: - longhorn-manager - uninstall @@ -29,8 +29,8 @@ spec: fieldRef: fieldPath: metadata.namespace restartPolicy: OnFailure - {{- if .Values.defaultSettings.registrySecret }} + {{- if .Values.privateRegistry.registrySecret }} imagePullSecrets: - - name: {{ .Values.defaultSettings.registrySecret }} + - name: {{ .Values.privateRegistry.registrySecret }} {{- end }} serviceAccountName: longhorn-service-account diff --git a/charts/longhorn/templates/userroles.yaml b/charts/longhorn/templates/userroles.yaml index ba6d40643..37e8e3ddb 100644 --- a/charts/longhorn/templates/userroles.yaml +++ b/charts/longhorn/templates/userroles.yaml @@ -6,8 +6,9 @@ metadata: rbac.authorization.k8s.io/aggregate-to-admin: "true" rules: - apiGroups: [ "longhorn.io" ] - resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", - "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] + resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", + "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status", + "sharemanagers", "sharemanagers/status"] verbs: [ "*" ] --- apiVersion: rbac.authorization.k8s.io/v1 @@ -18,8 +19,9 @@ metadata: rbac.authorization.k8s.io/aggregate-to-edit: "true" rules: - apiGroups: [ "longhorn.io" ] - resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", - "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] + resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", + "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status", + "sharemanagers", "sharemanagers/status"] verbs: [ "*" ] --- apiVersion: rbac.authorization.k8s.io/v1 @@ -30,6 +32,7 @@ metadata: rbac.authorization.k8s.io/aggregate-to-view: "true" rules: - apiGroups: [ "longhorn.io" ] - resources: [ "volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", - "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status" ] + resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", + "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status", + "sharemanagers", "sharemanagers/status"] verbs: [ "get", "list", "watch" ] diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index a29b9497d..c1e38eed9 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -9,29 +9,35 @@ image: longhorn: engine: repository: rancher/longhornio-longhorn-engine - tag: v1.0.2 + tag: v1.1.0 manager: repository: rancher/longhornio-longhorn-manager - tag: v1.0.2 + tag: v1.1.0 ui: repository: rancher/longhornio-longhorn-ui - tag: v1.0.2 + tag: v1.1.0 instanceManager: repository: rancher/longhornio-longhorn-instance-manager - tag: v1_20200514 + tag: v1_20201216 + shareManager: + repository: rancher/longhornio-longhorn-share-manager + tag: v1_20201204 csi: attacher: repository: rancher/longhornio-csi-attacher - tag: v2.0.0 + tag: v2.2.1-lh1 provisioner: repository: rancher/longhornio-csi-provisioner - tag: v1.4.0 + tag: v1.6.0-lh1 nodeDriverRegistrar: repository: rancher/longhornio-csi-node-driver-registrar - tag: v1.2.0 + tag: v1.2.0-lh1 resizer: repository: rancher/longhornio-csi-resizer - tag: v0.3.0 + tag: v0.5.1-lh1 + snapshotter: + repository: rancher/longhornio-csi-snapshotter + tag: v2.1.1-lh1 pullPolicy: IfNotPresent service: @@ -45,18 +51,25 @@ service: persistence: defaultClass: true defaultClassReplicaCount: 3 + reclaimPolicy: Delete + recurringJobs: + enable: false + jobList: [] csi: kubeletRootDir: ~ attacherReplicaCount: ~ provisionerReplicaCount: ~ resizerReplicaCount: ~ + snapshotterReplicaCount: ~ defaultSettings: backupTarget: ~ backupTargetCredentialSecret: ~ + allowRecurringJobWhileVolumeDetached: ~ createDefaultDiskLabeledNodes: ~ defaultDataPath: ~ + defaultDataLocality: ~ replicaSoftAntiAffinity: ~ storageOverProvisioningPercentage: ~ storageMinimalAvailablePercentage: ~ @@ -67,17 +80,26 @@ defaultSettings: backupstorePollInterval: ~ taintToleration: ~ priorityClass: ~ - registrySecret: ~ autoSalvage: ~ + autoDeletePodWhenVolumeDetachedUnexpectedly: ~ disableSchedulingOnCordonedNode: ~ replicaZoneSoftAntiAffinity: ~ volumeAttachmentRecoveryPolicy: ~ + nodeDownPodDeletionPolicy: ~ + allowNodeDrainWithLastHealthyReplica: ~ mkfsExt4Parameters: ~ + disableReplicaRebuild: ~ + replicaReplenishmentWaitInterval: ~ + disableRevisionCounter: ~ + systemManagedPodsImagePullPolicy: ~ + allowVolumeCreationWithDegradedAvailability: ~ + autoCleanupSystemGeneratedSnapshot: ~ privateRegistry: registryUrl: ~ registryUser: ~ registryPasswd: ~ + registrySecret: ~ resources: {} # We usually recommend not to specify default resources and to leave this as a conscious @@ -134,3 +156,7 @@ ingress: # Configure a pod security policy in the Longhorn namespace to allow privileged pods enablePSP: true + +## Specify override namespace, specifically this is useful for using longhorn as sub-chart +## and its release namespace is not the `longhorn-system` +namespaceOverride: "" diff --git a/index.yaml b/index.yaml index f2a029d04..925ced894 100644 --- a/index.yaml +++ b/index.yaml @@ -641,6 +641,47 @@ entries: - assets/fleet-crd/fleet-crd-0.3.0-beta600.tgz version: 0.3.0-beta600 longhorn: + - annotations: + catalog.cattle.io/auto-install: longhorn-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Longhorn + catalog.cattle.io/namespace: longhorn-system + catalog.cattle.io/os: linux + catalog.cattle.io/provides-gvr: longhorn.io/v1beta1 + catalog.cattle.io/release-name: longhorn + catalog.cattle.io/ui-component: longhorn + apiVersion: v1 + appVersion: v1.1.0 + created: "2020-12-23T20:09:04.09651411Z" + description: Longhorn is a distributed block storage system for Kubernetes. + digest: 4d9c34af5cb6f983649c0da636853dcb363aa6aed1293bffb11ddfd04180d122 + home: https://github.com/longhorn/longhorn + icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/longhorn/icon/color/longhorn-icon-color.svg + keywords: + - longhorn + - storage + - distributed + - block + - device + - iscsi + kubeVersion: '>=v1.16.0-r0' + maintainers: + - email: maintainers@longhorn.io + name: Longhorn maintainers + - email: sheng@yasker.org + name: Sheng Yang + name: longhorn + sources: + - https://github.com/longhorn/longhorn + - https://github.com/longhorn/longhorn-engine + - https://github.com/longhorn/longhorn-instance-manager + - https://github.com/longhorn/longhorn-share-manager + - https://github.com/longhorn/longhorn-manager + - https://github.com/longhorn/longhorn-ui + - https://github.com/longhorn/longhorn-tests + urls: + - assets/longhorn/longhorn-1.1.000.tgz + version: 1.1.000 - annotations: catalog.cattle.io/auto-install: longhorn-crd=match catalog.cattle.io/certified: rancher @@ -761,6 +802,20 @@ entries: - assets/longhorn/longhorn-1.0.200.tgz version: 1.0.200 longhorn-crd: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: longhorn-system + catalog.cattle.io/release-name: longhorn-crd + apiVersion: v1 + created: "2020-12-23T20:09:04.097324624Z" + description: Installs the CRDs for longhorn. + digest: 2ca9ca1b7af582f9c0e89684e4624a4d4cfc1484ceee74f3cab9c22c7b4e823f + name: longhorn-crd + type: application + urls: + - assets/longhorn/longhorn-crd-1.1.000.tgz + version: 1.1.000 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/hidden: "true" @@ -2642,4 +2697,4 @@ entries: urls: - assets/rio/rio-0.8.000.tgz version: 0.8.000 -generated: "2020-12-23T18:26:24.779180385Z" +generated: "2020-12-23T20:09:04.094547777Z" diff --git a/sha256sum/longhorn/longhorn.sum b/sha256sum/longhorn/longhorn.sum index 9a9ba41ec..d712ecb69 100644 --- a/sha256sum/longhorn/longhorn.sum +++ b/sha256sum/longhorn/longhorn.sum @@ -1,3 +1,3 @@ -cb870a74cd8c3041a1de9b38d2c2443bae476c69c4d4f1dfe95b8eef17fbbb11 packages/longhorn/longhorn.patch -da86de88f83918e2eb6fbd79d9f08a2a5e2d4c42f9931aa9c1f113e71438ea60 packages/longhorn/overlay/templates/userroles.yaml -16566f4ca1cf1c8f7dac8a7b245b916ab6fbcacfdc550e6783c0783c0915cef6 packages/longhorn/package.yaml +e59790fbbbfb0bf66784bab3e68c953b0847c2046c3fb95aee1d7a96cf946d80 packages/longhorn/longhorn.patch +84ea513b9f896199896791c1b0f25b5a297ce10541fef9e63dae3ed7c7f0b547 packages/longhorn/overlay/templates/userroles.yaml +3077b7bb0f951b30bc39cda4f58d0372b23113addd59fe5e39e14326676fa948 packages/longhorn/package.yaml