github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/longhorn/longhorn.yaml (about) 1 --- 2 # Source: longhorn/templates/psp.yaml 3 apiVersion: policy/v1beta1 4 kind: PodSecurityPolicy 5 metadata: 6 name: longhorn-psp 7 labels: 8 app.kubernetes.io/name: longhorn 9 helm.sh/chart: longhorn-1.2.3 10 app.kubernetes.io/managed-by: Helm 11 app.kubernetes.io/instance: longhorn 12 app.kubernetes.io/version: v1.2.3 13 spec: 14 privileged: true 15 allowPrivilegeEscalation: true 16 requiredDropCapabilities: 17 - NET_RAW 18 allowedCapabilities: 19 - SYS_ADMIN 20 hostNetwork: false 21 hostIPC: false 22 hostPID: true 23 runAsUser: 24 rule: RunAsAny 25 seLinux: 26 rule: RunAsAny 27 fsGroup: 28 rule: RunAsAny 29 supplementalGroups: 30 rule: RunAsAny 31 volumes: 32 - configMap 33 - downwardAPI 34 - emptyDir 35 - secret 36 - projected 37 - hostPath 38 --- 39 # Source: longhorn/templates/serviceaccount.yaml 40 apiVersion: v1 41 kind: ServiceAccount 42 metadata: 43 name: longhorn-service-account 44 namespace: longhorn-system 45 labels: 46 app.kubernetes.io/name: longhorn 47 helm.sh/chart: longhorn-1.2.3 48 app.kubernetes.io/managed-by: Helm 49 app.kubernetes.io/instance: longhorn 50 app.kubernetes.io/version: v1.2.3 51 --- 52 # Source: longhorn/templates/default-setting.yaml 53 apiVersion: v1 54 kind: ConfigMap 55 metadata: 56 name: longhorn-default-setting 57 namespace: longhorn-system 58 labels: 59 app.kubernetes.io/name: longhorn 60 helm.sh/chart: longhorn-1.2.3 61 app.kubernetes.io/managed-by: Helm 62 app.kubernetes.io/instance: longhorn 63 app.kubernetes.io/version: v1.2.3 64 data: 65 default-setting.yaml: |- 66 backup-target: 67 backup-target-credential-secret: 68 allow-recurring-job-while-volume-detached: 69 create-default-disk-labeled-nodes: 70 default-data-path: 71 replica-soft-anti-affinity: 72 replica-auto-balance: 73 storage-over-provisioning-percentage: 74 storage-minimal-available-percentage: 75 upgrade-checker: 76 default-replica-count: 77 default-data-locality: 78 default-longhorn-static-storage-class: 79 backupstore-poll-interval: 80 taint-toleration: 81 system-managed-components-node-selector: 82 priority-class: 83 auto-salvage: 84 auto-delete-pod-when-volume-detached-unexpectedly: 85 disable-scheduling-on-cordoned-node: 86 replica-zone-soft-anti-affinity: 87 node-down-pod-deletion-policy: 88 allow-node-drain-with-last-healthy-replica: 89 mkfs-ext4-parameters: 90 disable-replica-rebuild: 91 replica-replenishment-wait-interval: 92 concurrent-replica-rebuild-per-node-limit: 93 disable-revision-counter: 94 system-managed-pods-image-pull-policy: 95 allow-volume-creation-with-degraded-availability: 96 auto-cleanup-system-generated-snapshot: 97 concurrent-automatic-engine-upgrade-per-node-limit: 98 backing-image-cleanup-wait-interval: 99 backing-image-recovery-wait-interval: 100 guaranteed-engine-manager-cpu: 101 guaranteed-replica-manager-cpu: 102 --- 103 # Source: longhorn/templates/storageclass.yaml 104 apiVersion: v1 105 kind: ConfigMap 106 metadata: 107 name: longhorn-storageclass 108 namespace: longhorn-system 109 labels: 110 app.kubernetes.io/name: longhorn 111 helm.sh/chart: longhorn-1.2.3 112 app.kubernetes.io/managed-by: Helm 113 app.kubernetes.io/instance: longhorn 114 app.kubernetes.io/version: v1.2.3 115 data: 116 storageclass.yaml: | 117 kind: StorageClass 118 apiVersion: storage.k8s.io/v1 119 metadata: 120 name: longhorn 121 annotations: 122 storageclass.kubernetes.io/is-default-class: "true" 123 provisioner: driver.longhorn.io 124 allowVolumeExpansion: true 125 reclaimPolicy: "Delete" 126 volumeBindingMode: Immediate 127 parameters: 128 numberOfReplicas: "3" 129 staleReplicaTimeout: "30" 130 fromBackup: "" 131 fsType: "ext4" 132 --- 133 # Source: longhorn/templates/crds.yaml 134 apiVersion: apiextensions.k8s.io/v1 135 kind: CustomResourceDefinition 136 metadata: 137 labels: 138 app.kubernetes.io/name: longhorn 139 helm.sh/chart: longhorn-1.2.3 140 app.kubernetes.io/managed-by: Helm 141 app.kubernetes.io/instance: longhorn 142 app.kubernetes.io/version: v1.2.3 143 longhorn-manager: Engine 144 name: engines.longhorn.io 145 spec: 146 group: longhorn.io 147 names: 148 kind: Engine 149 listKind: EngineList 150 plural: engines 151 shortNames: 152 - lhe 153 singular: engine 154 scope: Namespaced 155 versions: 156 - name: v1beta1 157 served: true 158 storage: true 159 schema: 160 openAPIV3Schema: 161 type: object 162 properties: 163 spec: 164 x-kubernetes-preserve-unknown-fields: true 165 status: 166 x-kubernetes-preserve-unknown-fields: true 167 subresources: 168 status: {} 169 additionalPrinterColumns: 170 - name: State 171 type: string 172 description: The current state of the engine 173 jsonPath: .status.currentState 174 - name: Node 175 type: string 176 description: The node that the engine is on 177 jsonPath: .spec.nodeID 178 - name: InstanceManager 179 type: string 180 description: The instance manager of the engine 181 jsonPath: .status.instanceManagerName 182 - name: Image 183 type: string 184 description: The current image of the engine 185 jsonPath: .status.currentImage 186 - name: Age 187 type: date 188 jsonPath: .metadata.creationTimestamp 189 --- 190 # Source: longhorn/templates/crds.yaml 191 apiVersion: apiextensions.k8s.io/v1 192 kind: CustomResourceDefinition 193 metadata: 194 labels: 195 app.kubernetes.io/name: longhorn 196 helm.sh/chart: longhorn-1.2.3 197 app.kubernetes.io/managed-by: Helm 198 app.kubernetes.io/instance: longhorn 199 app.kubernetes.io/version: v1.2.3 200 longhorn-manager: Replica 201 name: replicas.longhorn.io 202 spec: 203 group: longhorn.io 204 names: 205 kind: Replica 206 listKind: ReplicaList 207 plural: replicas 208 shortNames: 209 - lhr 210 singular: replica 211 scope: Namespaced 212 versions: 213 - name: v1beta1 214 served: true 215 storage: true 216 schema: 217 openAPIV3Schema: 218 type: object 219 properties: 220 spec: 221 x-kubernetes-preserve-unknown-fields: true 222 status: 223 x-kubernetes-preserve-unknown-fields: true 224 subresources: 225 status: {} 226 additionalPrinterColumns: 227 - name: State 228 type: string 229 description: The current state of the replica 230 jsonPath: .status.currentState 231 - name: Node 232 type: string 233 description: The node that the replica is on 234 jsonPath: .spec.nodeID 235 - name: Disk 236 type: string 237 description: The disk that the replica is on 238 jsonPath: .spec.diskID 239 - name: InstanceManager 240 type: string 241 description: The instance manager of the replica 242 jsonPath: .status.instanceManagerName 243 - name: Image 244 type: string 245 description: The current image of the replica 246 jsonPath: .status.currentImage 247 - name: Age 248 type: date 249 jsonPath: .metadata.creationTimestamp 250 --- 251 # Source: longhorn/templates/crds.yaml 252 apiVersion: apiextensions.k8s.io/v1 253 kind: CustomResourceDefinition 254 metadata: 255 labels: 256 app.kubernetes.io/name: longhorn 257 helm.sh/chart: longhorn-1.2.3 258 app.kubernetes.io/managed-by: Helm 259 app.kubernetes.io/instance: longhorn 260 app.kubernetes.io/version: v1.2.3 261 longhorn-manager: Setting 262 name: settings.longhorn.io 263 spec: 264 group: longhorn.io 265 names: 266 kind: Setting 267 listKind: SettingList 268 plural: settings 269 shortNames: 270 - lhs 271 singular: setting 272 scope: Namespaced 273 versions: 274 - name: v1beta1 275 served: true 276 storage: true 277 schema: 278 openAPIV3Schema: 279 x-kubernetes-preserve-unknown-fields: true 280 additionalPrinterColumns: 281 - name: Value 282 type: string 283 description: The value of the setting 284 jsonPath: .value 285 - name: Age 286 type: date 287 jsonPath: .metadata.creationTimestamp 288 --- 289 # Source: longhorn/templates/crds.yaml 290 apiVersion: apiextensions.k8s.io/v1 291 kind: CustomResourceDefinition 292 metadata: 293 labels: 294 app.kubernetes.io/name: longhorn 295 helm.sh/chart: longhorn-1.2.3 296 app.kubernetes.io/managed-by: Helm 297 app.kubernetes.io/instance: longhorn 298 app.kubernetes.io/version: v1.2.3 299 longhorn-manager: Volume 300 name: volumes.longhorn.io 301 spec: 302 group: longhorn.io 303 names: 304 kind: Volume 305 listKind: VolumeList 306 plural: volumes 307 shortNames: 308 - lhv 309 singular: volume 310 scope: Namespaced 311 versions: 312 - name: v1beta1 313 served: true 314 storage: true 315 schema: 316 openAPIV3Schema: 317 type: object 318 properties: 319 spec: 320 x-kubernetes-preserve-unknown-fields: true 321 status: 322 x-kubernetes-preserve-unknown-fields: true 323 subresources: 324 status: {} 325 additionalPrinterColumns: 326 - name: State 327 type: string 328 description: The state of the volume 329 jsonPath: .status.state 330 - name: Robustness 331 type: string 332 description: The robustness of the volume 333 jsonPath: .status.robustness 334 - name: Scheduled 335 type: string 336 description: The scheduled condition of the volume 337 jsonPath: .status.conditions['scheduled']['status'] 338 - name: Size 339 type: string 340 description: The size of the volume 341 jsonPath: .spec.size 342 - name: Node 343 type: string 344 description: The node that the volume is currently attaching to 345 jsonPath: .status.currentNodeID 346 - name: Age 347 type: date 348 jsonPath: .metadata.creationTimestamp 349 --- 350 # Source: longhorn/templates/crds.yaml 351 apiVersion: apiextensions.k8s.io/v1 352 kind: CustomResourceDefinition 353 metadata: 354 labels: 355 app.kubernetes.io/name: longhorn 356 helm.sh/chart: longhorn-1.2.3 357 app.kubernetes.io/managed-by: Helm 358 app.kubernetes.io/instance: longhorn 359 app.kubernetes.io/version: v1.2.3 360 longhorn-manager: EngineImage 361 name: engineimages.longhorn.io 362 spec: 363 group: longhorn.io 364 names: 365 kind: EngineImage 366 listKind: EngineImageList 367 plural: engineimages 368 shortNames: 369 - lhei 370 singular: engineimage 371 scope: Namespaced 372 versions: 373 - name: v1beta1 374 served: true 375 storage: true 376 schema: 377 openAPIV3Schema: 378 type: object 379 properties: 380 spec: 381 x-kubernetes-preserve-unknown-fields: true 382 status: 383 x-kubernetes-preserve-unknown-fields: true 384 subresources: 385 status: {} 386 additionalPrinterColumns: 387 - name: State 388 type: string 389 description: State of the engine image 390 jsonPath: .status.state 391 - name: Image 392 type: string 393 description: The Longhorn engine image 394 jsonPath: .spec.image 395 - name: RefCount 396 type: integer 397 description: Number of volumes are using the engine image 398 jsonPath: .status.refCount 399 - name: BuildDate 400 type: date 401 description: The build date of the engine image 402 jsonPath: .status.buildDate 403 - name: Age 404 type: date 405 jsonPath: .metadata.creationTimestamp 406 --- 407 # Source: longhorn/templates/crds.yaml 408 apiVersion: apiextensions.k8s.io/v1 409 kind: CustomResourceDefinition 410 metadata: 411 labels: 412 app.kubernetes.io/name: longhorn 413 helm.sh/chart: longhorn-1.2.3 414 app.kubernetes.io/managed-by: Helm 415 app.kubernetes.io/instance: longhorn 416 app.kubernetes.io/version: v1.2.3 417 longhorn-manager: Node 418 name: nodes.longhorn.io 419 spec: 420 group: longhorn.io 421 names: 422 kind: Node 423 listKind: NodeList 424 plural: nodes 425 shortNames: 426 - lhn 427 singular: node 428 scope: Namespaced 429 versions: 430 - name: v1beta1 431 served: true 432 storage: true 433 schema: 434 openAPIV3Schema: 435 type: object 436 properties: 437 spec: 438 x-kubernetes-preserve-unknown-fields: true 439 status: 440 x-kubernetes-preserve-unknown-fields: true 441 subresources: 442 status: {} 443 additionalPrinterColumns: 444 - name: Ready 445 type: string 446 description: Indicate whether the node is ready 447 jsonPath: .status.conditions['Ready']['status'] 448 - name: AllowScheduling 449 type: boolean 450 description: Indicate whether the user disabled/enabled replica scheduling for the node 451 jsonPath: .spec.allowScheduling 452 - name: Schedulable 453 type: string 454 description: Indicate whether Longhorn can schedule replicas on the node 455 jsonPath: .status.conditions['Schedulable']['status'] 456 - name: Age 457 type: date 458 jsonPath: .metadata.creationTimestamp 459 --- 460 # Source: longhorn/templates/crds.yaml 461 apiVersion: apiextensions.k8s.io/v1 462 kind: CustomResourceDefinition 463 metadata: 464 labels: 465 app.kubernetes.io/name: longhorn 466 helm.sh/chart: longhorn-1.2.3 467 app.kubernetes.io/managed-by: Helm 468 app.kubernetes.io/instance: longhorn 469 app.kubernetes.io/version: v1.2.3 470 longhorn-manager: InstanceManager 471 name: instancemanagers.longhorn.io 472 spec: 473 group: longhorn.io 474 names: 475 kind: InstanceManager 476 listKind: InstanceManagerList 477 plural: instancemanagers 478 shortNames: 479 - lhim 480 singular: instancemanager 481 scope: Namespaced 482 versions: 483 - name: v1beta1 484 served: true 485 storage: true 486 schema: 487 openAPIV3Schema: 488 type: object 489 properties: 490 spec: 491 x-kubernetes-preserve-unknown-fields: true 492 status: 493 x-kubernetes-preserve-unknown-fields: true 494 subresources: 495 status: {} 496 additionalPrinterColumns: 497 - name: State 498 type: string 499 description: The state of the instance manager 500 jsonPath: .status.currentState 501 - name: Type 502 type: string 503 description: The type of the instance manager (engine or replica) 504 jsonPath: .spec.type 505 - name: Node 506 type: string 507 description: The node that the instance manager is running on 508 jsonPath: .spec.nodeID 509 - name: Age 510 type: date 511 jsonPath: .metadata.creationTimestamp 512 --- 513 # Source: longhorn/templates/crds.yaml 514 apiVersion: apiextensions.k8s.io/v1 515 kind: CustomResourceDefinition 516 metadata: 517 labels: 518 app.kubernetes.io/name: longhorn 519 helm.sh/chart: longhorn-1.2.3 520 app.kubernetes.io/managed-by: Helm 521 app.kubernetes.io/instance: longhorn 522 app.kubernetes.io/version: v1.2.3 523 longhorn-manager: ShareManager 524 name: sharemanagers.longhorn.io 525 spec: 526 group: longhorn.io 527 names: 528 kind: ShareManager 529 listKind: ShareManagerList 530 plural: sharemanagers 531 shortNames: 532 - lhsm 533 singular: sharemanager 534 scope: Namespaced 535 versions: 536 - name: v1beta1 537 served: true 538 storage: true 539 schema: 540 openAPIV3Schema: 541 type: object 542 properties: 543 spec: 544 x-kubernetes-preserve-unknown-fields: true 545 status: 546 x-kubernetes-preserve-unknown-fields: true 547 subresources: 548 status: {} 549 additionalPrinterColumns: 550 - name: State 551 type: string 552 description: The state of the share manager 553 jsonPath: .status.state 554 - name: Node 555 type: string 556 description: The node that the share manager is owned by 557 jsonPath: .status.ownerID 558 - name: Age 559 type: date 560 jsonPath: .metadata.creationTimestamp 561 --- 562 # Source: longhorn/templates/crds.yaml 563 apiVersion: apiextensions.k8s.io/v1 564 kind: CustomResourceDefinition 565 metadata: 566 labels: 567 app.kubernetes.io/name: longhorn 568 helm.sh/chart: longhorn-1.2.3 569 app.kubernetes.io/managed-by: Helm 570 app.kubernetes.io/instance: longhorn 571 app.kubernetes.io/version: v1.2.3 572 longhorn-manager: BackingImage 573 name: backingimages.longhorn.io 574 spec: 575 group: longhorn.io 576 names: 577 kind: BackingImage 578 listKind: BackingImageList 579 plural: backingimages 580 shortNames: 581 - lhbi 582 singular: backingimage 583 scope: Namespaced 584 versions: 585 - name: v1beta1 586 served: true 587 storage: true 588 schema: 589 openAPIV3Schema: 590 type: object 591 properties: 592 spec: 593 x-kubernetes-preserve-unknown-fields: true 594 status: 595 x-kubernetes-preserve-unknown-fields: true 596 subresources: 597 status: {} 598 additionalPrinterColumns: 599 - name: Image 600 type: string 601 description: The backing image name 602 jsonPath: .spec.image 603 - name: Age 604 type: date 605 jsonPath: .metadata.creationTimestamp 606 --- 607 # Source: longhorn/templates/crds.yaml 608 apiVersion: apiextensions.k8s.io/v1 609 kind: CustomResourceDefinition 610 metadata: 611 labels: 612 app.kubernetes.io/name: longhorn 613 helm.sh/chart: longhorn-1.2.3 614 app.kubernetes.io/managed-by: Helm 615 app.kubernetes.io/instance: longhorn 616 app.kubernetes.io/version: v1.2.3 617 longhorn-manager: BackingImageManager 618 name: backingimagemanagers.longhorn.io 619 spec: 620 group: longhorn.io 621 names: 622 kind: BackingImageManager 623 listKind: BackingImageManagerList 624 plural: backingimagemanagers 625 shortNames: 626 - lhbim 627 singular: backingimagemanager 628 scope: Namespaced 629 versions: 630 - name: v1beta1 631 served: true 632 storage: true 633 schema: 634 openAPIV3Schema: 635 type: object 636 properties: 637 spec: 638 x-kubernetes-preserve-unknown-fields: true 639 status: 640 x-kubernetes-preserve-unknown-fields: true 641 subresources: 642 status: {} 643 additionalPrinterColumns: 644 - name: State 645 type: string 646 description: The current state of the manager 647 jsonPath: .status.currentState 648 - name: Image 649 type: string 650 description: The image the manager pod will use 651 jsonPath: .spec.image 652 - name: Node 653 type: string 654 description: The node the manager is on 655 jsonPath: .spec.nodeID 656 - name: DiskUUID 657 type: string 658 description: The disk the manager is responsible for 659 jsonPath: .spec.diskUUID 660 - name: DiskPath 661 type: string 662 description: The disk path the manager is using 663 jsonPath: .spec.diskPath 664 - name: Age 665 type: date 666 jsonPath: .metadata.creationTimestamp 667 --- 668 # Source: longhorn/templates/crds.yaml 669 apiVersion: apiextensions.k8s.io/v1 670 kind: CustomResourceDefinition 671 metadata: 672 labels: 673 app.kubernetes.io/name: longhorn 674 helm.sh/chart: longhorn-1.2.3 675 app.kubernetes.io/managed-by: Helm 676 app.kubernetes.io/instance: longhorn 677 app.kubernetes.io/version: v1.2.3 678 longhorn-manager: BackingImageDataSource 679 name: backingimagedatasources.longhorn.io 680 spec: 681 group: longhorn.io 682 names: 683 kind: BackingImageDataSource 684 listKind: BackingImageDataSourceList 685 plural: backingimagedatasources 686 shortNames: 687 - lhbids 688 singular: backingimagedatasource 689 scope: Namespaced 690 versions: 691 - name: v1beta1 692 served: true 693 storage: true 694 schema: 695 openAPIV3Schema: 696 type: object 697 properties: 698 spec: 699 x-kubernetes-preserve-unknown-fields: true 700 status: 701 x-kubernetes-preserve-unknown-fields: true 702 subresources: 703 status: {} 704 additionalPrinterColumns: 705 - name: State 706 type: string 707 description: The current state of the pod used to provisione the backing image file from source 708 jsonPath: .status.currentState 709 - name: SourceType 710 type: string 711 description: The data source type 712 jsonPath: .spec.sourceType 713 - name: Node 714 type: string 715 description: The node the backing image file will be prepared on 716 jsonPath: .spec.nodeID 717 - name: DiskUUID 718 type: string 719 description: The disk the backing image file will be prepared on 720 jsonPath: .spec.diskUUID 721 - name: Age 722 type: date 723 jsonPath: .metadata.creationTimestamp 724 --- 725 # Source: longhorn/templates/crds.yaml 726 apiVersion: apiextensions.k8s.io/v1 727 kind: CustomResourceDefinition 728 metadata: 729 labels: 730 app.kubernetes.io/name: longhorn 731 helm.sh/chart: longhorn-1.2.3 732 app.kubernetes.io/managed-by: Helm 733 app.kubernetes.io/instance: longhorn 734 app.kubernetes.io/version: v1.2.3 735 longhorn-manager: BackupTarget 736 name: backuptargets.longhorn.io 737 spec: 738 group: longhorn.io 739 names: 740 kind: BackupTarget 741 listKind: BackupTargetList 742 plural: backuptargets 743 shortNames: 744 - lhbt 745 singular: backuptarget 746 scope: Namespaced 747 versions: 748 - name: v1beta1 749 served: true 750 storage: true 751 schema: 752 openAPIV3Schema: 753 type: object 754 properties: 755 spec: 756 x-kubernetes-preserve-unknown-fields: true 757 status: 758 x-kubernetes-preserve-unknown-fields: true 759 subresources: 760 status: {} 761 additionalPrinterColumns: 762 - name: URL 763 type: string 764 description: The backup target URL 765 jsonPath: .spec.backupTargetURL 766 - name: Credential 767 type: string 768 description: The backup target credential secret 769 jsonPath: .spec.credentialSecret 770 - name: Interval 771 type: string 772 description: The backup target poll interval 773 jsonPath: .spec.pollInterval 774 - name: Available 775 type: boolean 776 description: Indicate whether the backup target is available or not 777 jsonPath: .status.available 778 - name: LastSyncedAt 779 type: string 780 description: The backup target last synced time 781 jsonPath: .status.lastSyncedAt 782 --- 783 # Source: longhorn/templates/crds.yaml 784 apiVersion: apiextensions.k8s.io/v1 785 kind: CustomResourceDefinition 786 metadata: 787 labels: 788 app.kubernetes.io/name: longhorn 789 helm.sh/chart: longhorn-1.2.3 790 app.kubernetes.io/managed-by: Helm 791 app.kubernetes.io/instance: longhorn 792 app.kubernetes.io/version: v1.2.3 793 longhorn-manager: BackupVolume 794 name: backupvolumes.longhorn.io 795 spec: 796 group: longhorn.io 797 names: 798 kind: BackupVolume 799 listKind: BackupVolumeList 800 plural: backupvolumes 801 shortNames: 802 - lhbv 803 singular: backupvolume 804 scope: Namespaced 805 versions: 806 - name: v1beta1 807 served: true 808 storage: true 809 schema: 810 openAPIV3Schema: 811 type: object 812 properties: 813 spec: 814 x-kubernetes-preserve-unknown-fields: true 815 status: 816 x-kubernetes-preserve-unknown-fields: true 817 subresources: 818 status: {} 819 additionalPrinterColumns: 820 - name: CreatedAt 821 type: string 822 description: The backup volume creation time 823 jsonPath: .status.createdAt 824 - name: LastBackupName 825 type: string 826 description: The backup volume last backup name 827 jsonPath: .status.lastBackupName 828 - name: LastBackupAt 829 type: string 830 description: The backup volume last backup time 831 jsonPath: .status.lastBackupAt 832 - name: LastSyncedAt 833 type: string 834 description: The backup volume last synced time 835 jsonPath: .status.lastSyncedAt 836 --- 837 # Source: longhorn/templates/crds.yaml 838 apiVersion: apiextensions.k8s.io/v1 839 kind: CustomResourceDefinition 840 metadata: 841 labels: 842 app.kubernetes.io/name: longhorn 843 helm.sh/chart: longhorn-1.2.3 844 app.kubernetes.io/managed-by: Helm 845 app.kubernetes.io/instance: longhorn 846 app.kubernetes.io/version: v1.2.3 847 longhorn-manager: Backup 848 name: backups.longhorn.io 849 spec: 850 group: longhorn.io 851 names: 852 kind: Backup 853 listKind: BackupList 854 plural: backups 855 shortNames: 856 - lhb 857 singular: backup 858 scope: Namespaced 859 versions: 860 - name: v1beta1 861 served: true 862 storage: true 863 schema: 864 openAPIV3Schema: 865 type: object 866 properties: 867 spec: 868 x-kubernetes-preserve-unknown-fields: true 869 status: 870 x-kubernetes-preserve-unknown-fields: true 871 subresources: 872 status: {} 873 additionalPrinterColumns: 874 - name: SnapshotName 875 type: string 876 description: The snapshot name 877 jsonPath: .status.snapshotName 878 - name: SnapshotSize 879 type: string 880 description: The snapshot size 881 jsonPath: .status.size 882 - name: SnapshotCreatedAt 883 type: string 884 description: The snapshot creation time 885 jsonPath: .status.snapshotCreatedAt 886 - name: State 887 type: string 888 description: The backup state 889 jsonPath: .status.state 890 - name: LastSyncedAt 891 type: string 892 description: The backup last synced time 893 jsonPath: .status.lastSyncedAt 894 --- 895 # Source: longhorn/templates/crds.yaml 896 apiVersion: apiextensions.k8s.io/v1 897 kind: CustomResourceDefinition 898 metadata: 899 labels: 900 app.kubernetes.io/name: longhorn 901 helm.sh/chart: longhorn-1.2.3 902 app.kubernetes.io/managed-by: Helm 903 app.kubernetes.io/instance: longhorn 904 app.kubernetes.io/version: v1.2.3 905 longhorn-manager: RecurringJob 906 name: recurringjobs.longhorn.io 907 spec: 908 group: longhorn.io 909 names: 910 kind: RecurringJob 911 listKind: RecurringJobList 912 plural: recurringjobs 913 shortNames: 914 - lhrj 915 singular: recurringjob 916 scope: Namespaced 917 versions: 918 - name: v1beta1 919 served: true 920 storage: true 921 schema: 922 openAPIV3Schema: 923 type: object 924 properties: 925 metadata: 926 type: object 927 properties: 928 name: 929 type: string 930 spec: 931 type: object 932 properties: 933 groups: 934 type: array 935 items: 936 type: string 937 task: 938 type: string 939 pattern: "^snapshot|backup$" 940 cron: 941 type: string 942 retain: 943 type: integer 944 concurrency: 945 type: integer 946 labels: 947 x-kubernetes-preserve-unknown-fields: true 948 status: 949 x-kubernetes-preserve-unknown-fields: true 950 subresources: 951 status: {} 952 additionalPrinterColumns: 953 - name: Groups 954 type: string 955 description: Sets groupings to the jobs. When set to "default" group will be added to the volume label when no other job label exist in volume. 956 jsonPath: .spec.groups 957 - name: Task 958 type: string 959 description: Should be one of "backup" or "snapshot". 960 jsonPath: .spec.task 961 - name: Cron 962 type: string 963 description: The cron expression represents recurring job scheduling. 964 jsonPath: .spec.cron 965 - name: Retain 966 type: integer 967 description: The number of snapshots/backups to keep for the volume. 968 jsonPath: .spec.retain 969 - name: Concurrency 970 type: integer 971 description: The concurrent job to run by each cron job. 972 jsonPath: .spec.concurrency 973 - name: Age 974 type: date 975 jsonPath: .metadata.creationTimestamp 976 - name: Labels 977 type: string 978 description: Specify the labels 979 jsonPath: .spec.labels 980 --- 981 # Source: longhorn/templates/clusterrole.yaml 982 apiVersion: rbac.authorization.k8s.io/v1 983 kind: ClusterRole 984 metadata: 985 name: longhorn-role 986 labels: 987 app.kubernetes.io/name: longhorn 988 helm.sh/chart: longhorn-1.2.3 989 app.kubernetes.io/managed-by: Helm 990 app.kubernetes.io/instance: longhorn 991 app.kubernetes.io/version: v1.2.3 992 rules: 993 - apiGroups: 994 - apiextensions.k8s.io 995 resources: 996 - customresourcedefinitions 997 verbs: 998 - "*" 999 - apiGroups: [""] 1000 resources: ["pods", "events", "persistentvolumes", "persistentvolumeclaims","persistentvolumeclaims/status", "nodes", "proxy/nodes", "pods/log", "secrets", "services", "endpoints", "configmaps"] 1001 verbs: ["*"] 1002 - apiGroups: [""] 1003 resources: ["namespaces"] 1004 verbs: ["get", "list"] 1005 - apiGroups: ["apps"] 1006 resources: ["daemonsets", "statefulsets", "deployments"] 1007 verbs: ["*"] 1008 - apiGroups: ["batch"] 1009 resources: ["jobs", "cronjobs"] 1010 verbs: ["*"] 1011 - apiGroups: ["policy"] 1012 resources: ["poddisruptionbudgets"] 1013 verbs: ["*"] 1014 - apiGroups: ["scheduling.k8s.io"] 1015 resources: ["priorityclasses"] 1016 verbs: ["watch", "list"] 1017 - apiGroups: ["storage.k8s.io"] 1018 resources: ["storageclasses", "volumeattachments", "volumeattachments/status", "csinodes", "csidrivers"] 1019 verbs: ["*"] 1020 - apiGroups: ["snapshot.storage.k8s.io"] 1021 resources: ["volumesnapshotclasses", "volumesnapshots", "volumesnapshotcontents", "volumesnapshotcontents/status"] 1022 verbs: ["*"] 1023 - apiGroups: ["longhorn.io"] 1024 resources: ["volumes", "volumes/status", "engines", "engines/status", "replicas", "replicas/status", "settings", 1025 "engineimages", "engineimages/status", "nodes", "nodes/status", "instancemanagers", "instancemanagers/status", 1026 "sharemanagers", "sharemanagers/status", "backingimages", "backingimages/status", 1027 "backingimagemanagers", "backingimagemanagers/status", "backingimagedatasources", "backingimagedatasources/status", 1028 "backuptargets", "backuptargets/status", "backupvolumes", "backupvolumes/status", "backups", "backups/status", 1029 "recurringjobs", "recurringjobs/status"] 1030 verbs: ["*"] 1031 - apiGroups: ["coordination.k8s.io"] 1032 resources: ["leases"] 1033 verbs: ["*"] 1034 - apiGroups: ["metrics.k8s.io"] 1035 resources: ["pods", "nodes"] 1036 verbs: ["get", "list"] 1037 --- 1038 # Source: longhorn/templates/clusterrolebinding.yaml 1039 apiVersion: rbac.authorization.k8s.io/v1 1040 kind: ClusterRoleBinding 1041 metadata: 1042 name: longhorn-bind 1043 labels: 1044 app.kubernetes.io/name: longhorn 1045 helm.sh/chart: longhorn-1.2.3 1046 app.kubernetes.io/managed-by: Helm 1047 app.kubernetes.io/instance: longhorn 1048 app.kubernetes.io/version: v1.2.3 1049 roleRef: 1050 apiGroup: rbac.authorization.k8s.io 1051 kind: ClusterRole 1052 name: longhorn-role 1053 subjects: 1054 - kind: ServiceAccount 1055 name: longhorn-service-account 1056 namespace: longhorn-system 1057 --- 1058 # Source: longhorn/templates/psp.yaml 1059 apiVersion: rbac.authorization.k8s.io/v1 1060 kind: Role 1061 metadata: 1062 name: longhorn-psp-role 1063 labels: 1064 app.kubernetes.io/name: longhorn 1065 helm.sh/chart: longhorn-1.2.3 1066 app.kubernetes.io/managed-by: Helm 1067 app.kubernetes.io/instance: longhorn 1068 app.kubernetes.io/version: v1.2.3 1069 namespace: longhorn-system 1070 rules: 1071 - apiGroups: 1072 - policy 1073 resources: 1074 - podsecuritypolicies 1075 verbs: 1076 - use 1077 resourceNames: 1078 - longhorn-psp 1079 --- 1080 # Source: longhorn/templates/psp.yaml 1081 apiVersion: rbac.authorization.k8s.io/v1 1082 kind: RoleBinding 1083 metadata: 1084 name: longhorn-psp-binding 1085 labels: 1086 app.kubernetes.io/name: longhorn 1087 helm.sh/chart: longhorn-1.2.3 1088 app.kubernetes.io/managed-by: Helm 1089 app.kubernetes.io/instance: longhorn 1090 app.kubernetes.io/version: v1.2.3 1091 namespace: longhorn-system 1092 roleRef: 1093 apiGroup: rbac.authorization.k8s.io 1094 kind: Role 1095 name: longhorn-psp-role 1096 subjects: 1097 - kind: ServiceAccount 1098 name: longhorn-service-account 1099 namespace: longhorn-system 1100 - kind: ServiceAccount 1101 name: default 1102 namespace: longhorn-system 1103 --- 1104 # Source: longhorn/templates/daemonset-sa.yaml 1105 apiVersion: v1 1106 kind: Service 1107 metadata: 1108 labels: 1109 app.kubernetes.io/name: longhorn 1110 helm.sh/chart: longhorn-1.2.3 1111 app.kubernetes.io/managed-by: Helm 1112 app.kubernetes.io/instance: longhorn 1113 app.kubernetes.io/version: v1.2.3 1114 app: longhorn-manager 1115 name: longhorn-backend 1116 namespace: longhorn-system 1117 spec: 1118 type: ClusterIP 1119 sessionAffinity: ClientIP 1120 selector: 1121 app: longhorn-manager 1122 ports: 1123 - name: manager 1124 port: 9500 1125 targetPort: manager 1126 --- 1127 # Source: longhorn/templates/deployment-ui.yaml 1128 kind: Service 1129 apiVersion: v1 1130 metadata: 1131 labels: 1132 app.kubernetes.io/name: longhorn 1133 helm.sh/chart: longhorn-1.2.3 1134 app.kubernetes.io/managed-by: Helm 1135 app.kubernetes.io/instance: longhorn 1136 app.kubernetes.io/version: v1.2.3 1137 app: longhorn-ui 1138 name: longhorn-frontend 1139 namespace: longhorn-system 1140 spec: 1141 type: ClusterIP 1142 selector: 1143 app: longhorn-ui 1144 ports: 1145 - name: http 1146 port: 80 1147 targetPort: http 1148 nodePort: null 1149 --- 1150 # Source: longhorn/templates/services.yaml 1151 apiVersion: v1 1152 kind: Service 1153 metadata: 1154 labels: 1155 app.kubernetes.io/name: longhorn 1156 helm.sh/chart: longhorn-1.2.3 1157 app.kubernetes.io/managed-by: Helm 1158 app.kubernetes.io/instance: longhorn 1159 app.kubernetes.io/version: v1.2.3 1160 name: longhorn-engine-manager 1161 namespace: longhorn-system 1162 spec: 1163 clusterIP: None 1164 selector: 1165 longhorn.io/component: instance-manager 1166 longhorn.io/instance-manager-type: engine 1167 --- 1168 # Source: longhorn/templates/services.yaml 1169 apiVersion: v1 1170 kind: Service 1171 metadata: 1172 labels: 1173 app.kubernetes.io/name: longhorn 1174 helm.sh/chart: longhorn-1.2.3 1175 app.kubernetes.io/managed-by: Helm 1176 app.kubernetes.io/instance: longhorn 1177 app.kubernetes.io/version: v1.2.3 1178 name: longhorn-replica-manager 1179 namespace: longhorn-system 1180 spec: 1181 clusterIP: None 1182 selector: 1183 longhorn.io/component: instance-manager 1184 longhorn.io/instance-manager-type: replica 1185 --- 1186 # Source: longhorn/templates/daemonset-sa.yaml 1187 apiVersion: apps/v1 1188 kind: DaemonSet 1189 metadata: 1190 labels: 1191 app.kubernetes.io/name: longhorn 1192 helm.sh/chart: longhorn-1.2.3 1193 app.kubernetes.io/managed-by: Helm 1194 app.kubernetes.io/instance: longhorn 1195 app.kubernetes.io/version: v1.2.3 1196 app: longhorn-manager 1197 name: longhorn-manager 1198 namespace: longhorn-system 1199 spec: 1200 selector: 1201 matchLabels: 1202 app: longhorn-manager 1203 template: 1204 metadata: 1205 labels: 1206 app.kubernetes.io/name: longhorn 1207 helm.sh/chart: longhorn-1.2.3 1208 app.kubernetes.io/managed-by: Helm 1209 app.kubernetes.io/instance: longhorn 1210 app.kubernetes.io/version: v1.2.3 1211 app: longhorn-manager 1212 spec: 1213 containers: 1214 - name: longhorn-manager 1215 image: longhornio/longhorn-manager:v1.2.3 1216 imagePullPolicy: IfNotPresent 1217 securityContext: 1218 privileged: true 1219 command: 1220 - longhorn-manager 1221 - -d 1222 - daemon 1223 - --engine-image 1224 - "longhornio/longhorn-engine:v1.2.3" 1225 - --instance-manager-image 1226 - "longhornio/longhorn-instance-manager:v1_20211210" 1227 - --share-manager-image 1228 - "longhornio/longhorn-share-manager:v1_20211020" 1229 - --backing-image-manager-image 1230 - "longhornio/backing-image-manager:v2_20210820" 1231 - --manager-image 1232 - "longhornio/longhorn-manager:v1.2.3" 1233 - --service-account 1234 - longhorn-service-account 1235 ports: 1236 - containerPort: 9500 1237 name: manager 1238 readinessProbe: 1239 tcpSocket: 1240 port: 9500 1241 volumeMounts: 1242 - name: dev 1243 mountPath: /host/dev/ 1244 - name: proc 1245 mountPath: /host/proc/ 1246 - name: longhorn 1247 mountPath: /var/lib/longhorn/ 1248 mountPropagation: Bidirectional 1249 - name: longhorn-default-setting 1250 mountPath: /var/lib/longhorn-setting/ 1251 env: 1252 - name: POD_NAMESPACE 1253 valueFrom: 1254 fieldRef: 1255 fieldPath: metadata.namespace 1256 - name: POD_IP 1257 valueFrom: 1258 fieldRef: 1259 fieldPath: status.podIP 1260 - name: NODE_NAME 1261 valueFrom: 1262 fieldRef: 1263 fieldPath: spec.nodeName 1264 - name: DEFAULT_SETTING_PATH 1265 value: /var/lib/longhorn-setting/default-setting.yaml 1266 volumes: 1267 - name: dev 1268 hostPath: 1269 path: /dev/ 1270 - name: proc 1271 hostPath: 1272 path: /proc/ 1273 - name: longhorn 1274 hostPath: 1275 path: /var/lib/longhorn/ 1276 - name: longhorn-default-setting 1277 configMap: 1278 name: longhorn-default-setting 1279 serviceAccountName: longhorn-service-account 1280 updateStrategy: 1281 rollingUpdate: 1282 maxUnavailable: "100%" 1283 --- 1284 # Source: longhorn/templates/deployment-driver.yaml 1285 apiVersion: apps/v1 1286 kind: Deployment 1287 metadata: 1288 name: longhorn-driver-deployer 1289 namespace: longhorn-system 1290 labels: 1291 app.kubernetes.io/name: longhorn 1292 helm.sh/chart: longhorn-1.2.3 1293 app.kubernetes.io/managed-by: Helm 1294 app.kubernetes.io/instance: longhorn 1295 app.kubernetes.io/version: v1.2.3 1296 spec: 1297 replicas: 1 1298 selector: 1299 matchLabels: 1300 app: longhorn-driver-deployer 1301 template: 1302 metadata: 1303 labels: 1304 app.kubernetes.io/name: longhorn 1305 helm.sh/chart: longhorn-1.2.3 1306 app.kubernetes.io/managed-by: Helm 1307 app.kubernetes.io/instance: longhorn 1308 app.kubernetes.io/version: v1.2.3 1309 app: longhorn-driver-deployer 1310 spec: 1311 initContainers: 1312 - name: wait-longhorn-manager 1313 image: longhornio/longhorn-manager:v1.2.3 1314 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'] 1315 containers: 1316 - name: longhorn-driver-deployer 1317 image: longhornio/longhorn-manager:v1.2.3 1318 imagePullPolicy: IfNotPresent 1319 command: 1320 - longhorn-manager 1321 - -d 1322 - deploy-driver 1323 - --manager-image 1324 - "longhornio/longhorn-manager:v1.2.3" 1325 - --manager-url 1326 - http://longhorn-backend:9500/v1 1327 env: 1328 - name: POD_NAMESPACE 1329 valueFrom: 1330 fieldRef: 1331 fieldPath: metadata.namespace 1332 - name: NODE_NAME 1333 valueFrom: 1334 fieldRef: 1335 fieldPath: spec.nodeName 1336 - name: SERVICE_ACCOUNT 1337 valueFrom: 1338 fieldRef: 1339 fieldPath: spec.serviceAccountName 1340 - name: CSI_ATTACHER_IMAGE 1341 value: "longhornio/csi-attacher:v3.2.1" 1342 - name: CSI_PROVISIONER_IMAGE 1343 value: "longhornio/csi-provisioner:v2.1.2" 1344 - name: CSI_NODE_DRIVER_REGISTRAR_IMAGE 1345 value: "longhornio/csi-node-driver-registrar:v2.3.0" 1346 - name: CSI_RESIZER_IMAGE 1347 value: "longhornio/csi-resizer:v1.2.0" 1348 - name: CSI_SNAPSHOTTER_IMAGE 1349 value: "longhornio/csi-snapshotter:v3.0.3" 1350 serviceAccountName: longhorn-service-account 1351 securityContext: 1352 runAsUser: 0 1353 --- 1354 # Source: longhorn/templates/deployment-ui.yaml 1355 apiVersion: apps/v1 1356 kind: Deployment 1357 metadata: 1358 labels: 1359 app.kubernetes.io/name: longhorn 1360 helm.sh/chart: longhorn-1.2.3 1361 app.kubernetes.io/managed-by: Helm 1362 app.kubernetes.io/instance: longhorn 1363 app.kubernetes.io/version: v1.2.3 1364 app: longhorn-ui 1365 name: longhorn-ui 1366 namespace: longhorn-system 1367 spec: 1368 replicas: 1 1369 selector: 1370 matchLabels: 1371 app: longhorn-ui 1372 template: 1373 metadata: 1374 labels: 1375 app.kubernetes.io/name: longhorn 1376 helm.sh/chart: longhorn-1.2.3 1377 app.kubernetes.io/managed-by: Helm 1378 app.kubernetes.io/instance: longhorn 1379 app.kubernetes.io/version: v1.2.3 1380 app: longhorn-ui 1381 spec: 1382 containers: 1383 - name: longhorn-ui 1384 image: longhornio/longhorn-ui:v1.2.3 1385 imagePullPolicy: IfNotPresent 1386 securityContext: 1387 runAsUser: 0 1388 ports: 1389 - containerPort: 8000 1390 name: http 1391 env: 1392 - name: LONGHORN_MANAGER_IP 1393 value: "http://longhorn-backend:9500" 1394