Переглянути джерело

Publish new changes in catalog

sonicaj 1 рік тому
батько
коміт
648bcf1706
37 змінених файлів з 1759 додано та 0 видалено
  1. 24 0
      charts/plex/2.0.0/.helmignore
  2. 6 0
      charts/plex/2.0.0/Chart.lock
  3. 25 0
      charts/plex/2.0.0/Chart.yaml
  4. 3 0
      charts/plex/2.0.0/README.md
  5. 3 0
      charts/plex/2.0.0/app-readme.md
  6. BIN
      charts/plex/2.0.0/charts/common-1.2.9.tgz
  7. 17 0
      charts/plex/2.0.0/ci/basic-values.yaml
  8. 18 0
      charts/plex/2.0.0/ci/extra-values.yaml
  9. 14 0
      charts/plex/2.0.0/ci/hostNet-values.yaml
  10. 43 0
      charts/plex/2.0.0/ix_values.yaml
  11. 20 0
      charts/plex/2.0.0/metadata.yaml
  12. 100 0
      charts/plex/2.0.0/migrations/migrate
  13. 632 0
      charts/plex/2.0.0/questions.yaml
  14. 1 0
      charts/plex/2.0.0/templates/NOTES.txt
  15. 35 0
      charts/plex/2.0.0/templates/_migration.tpl
  16. 54 0
      charts/plex/2.0.0/templates/_persistence.tpl
  17. 66 0
      charts/plex/2.0.0/templates/_plex.tpl
  18. 16 0
      charts/plex/2.0.0/templates/_portal.tpl
  19. 61 0
      charts/plex/2.0.0/templates/_service.tpl
  20. 13 0
      charts/plex/2.0.0/templates/common.yaml
  21. 4 0
      charts/plex/2.0.0/to_keep_versions.md
  22. 6 0
      community/netbootxyz/1.0.0/Chart.lock
  23. 30 0
      community/netbootxyz/1.0.0/Chart.yaml
  24. 3 0
      community/netbootxyz/1.0.0/README.md
  25. 3 0
      community/netbootxyz/1.0.0/app-readme.md
  26. BIN
      community/netbootxyz/1.0.0/charts/common-1.2.9.tgz
  27. 10 0
      community/netbootxyz/1.0.0/ci/basic-values.yaml
  28. 31 0
      community/netbootxyz/1.0.0/ix_values.yaml
  29. 22 0
      community/netbootxyz/1.0.0/metadata.yaml
  30. 321 0
      community/netbootxyz/1.0.0/questions.yaml
  31. 1 0
      community/netbootxyz/1.0.0/templates/NOTES.txt
  32. 63 0
      community/netbootxyz/1.0.0/templates/_netboot.tpl
  33. 47 0
      community/netbootxyz/1.0.0/templates/_persistence.tpl
  34. 12 0
      community/netbootxyz/1.0.0/templates/_portal.tpl
  35. 34 0
      community/netbootxyz/1.0.0/templates/_service.tpl
  36. 11 0
      community/netbootxyz/1.0.0/templates/common.yaml
  37. 10 0
      community/netbootxyz/item.yaml

+ 24 - 0
charts/plex/2.0.0/.helmignore

@@ -0,0 +1,24 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
+# OWNERS file for Kubernetes
+OWNERS

+ 6 - 0
charts/plex/2.0.0/Chart.lock

@@ -0,0 +1,6 @@
+dependencies:
+- name: common
+  repository: file://../../../common
+  version: 1.2.9
+digest: sha256:af1a9a1f87e3e48453c9f25f909f5ebcd7fa6e25162b7b425448ba752bcdbc5c
+generated: "2024-01-24T18:30:03.937048323+02:00"

+ 25 - 0
charts/plex/2.0.0/Chart.yaml

@@ -0,0 +1,25 @@
+name: plex
+description: Plex is a media server that allows you to stream your media to any Plex client.
+annotations:
+  title: Plex
+type: application
+version: 2.0.0
+apiVersion: v2
+appVersion: 1.32.8.7639
+kubeVersion: '>=1.16.0-0'
+maintainers:
+  - name: truenas
+    url: https://www.truenas.com/
+    email: dev@ixsystems.com
+dependencies:
+  - name: common
+    repository: file://../../../common
+    version: 1.2.9
+home: https://plex.tv/
+icon: https://media.sys.truenas.net/apps/plex/icons/icon.png
+sources:
+  - https://plex.tv/
+  - https://github.com/truenas/charts/tree/master/charts/plex
+  - https://hub.docker.com/r/plexinc/pms-docker/
+keywords:
+  - plex

+ 3 - 0
charts/plex/2.0.0/README.md

@@ -0,0 +1,3 @@
+# Plex
+
+[Plex](https://plex.tv) is a media server that allows you to stream your media to any Plex client.

+ 3 - 0
charts/plex/2.0.0/app-readme.md

@@ -0,0 +1,3 @@
+# Plex
+
+[Plex](https://plex.tv) is a media server that allows you to stream your media to any Plex client.

BIN
charts/plex/2.0.0/charts/common-1.2.9.tgz


+ 17 - 0
charts/plex/2.0.0/ci/basic-values.yaml

@@ -0,0 +1,17 @@
+plexNetwork:
+  webPort: 31000
+
+plexID:
+  user: 1000
+  group: 1000
+
+plexStorage:
+  data:
+    type: pvc
+  config:
+    type: pvc
+  transcode:
+    type: emptyDir
+    emptyDirConfig:
+      medium: ""
+      size: ""

+ 18 - 0
charts/plex/2.0.0/ci/extra-values.yaml

@@ -0,0 +1,18 @@
+plexNetwork:
+  webPort: 31000
+
+plexStorage:
+  data:
+    type: pvc
+  config:
+    type: pvc
+  transcode:
+    type: emptyDir
+    emptyDirConfig:
+      medium: ""
+      size: ""
+  additionalStorages:
+  - type: pvc
+    mountPath: /action_movies
+  - type: pvc
+    mountPath: /adventure_movies

+ 14 - 0
charts/plex/2.0.0/ci/hostNet-values.yaml

@@ -0,0 +1,14 @@
+plexNetwork:
+  webPort: 31000
+  hostNetwork: true
+
+plexStorage:
+  data:
+    type: pvc
+  config:
+    type: pvc
+  transcode:
+    type: emptyDir
+    emptyDirConfig:
+      medium: ""
+      size: ""

+ 43 - 0
charts/plex/2.0.0/ix_values.yaml

@@ -0,0 +1,43 @@
+image:
+  pullPolicy: IfNotPresent
+  repository: plexinc/pms-docker
+  tag: 1.32.8.7639-fb6452ebf
+plexPassImage:
+  pullPolicy: IfNotPresent
+  repository: plexinc/pms-docker
+  tag: plexpass
+
+resources:
+  limits:
+    cpu: 4000m
+    memory: 8Gi
+
+plexID:
+  user: 568
+  group: 568
+
+plexConfig:
+  imageSelector: image
+  claimToken: ''
+  additionalEnvs: []
+
+plexNetwork:
+  webPort: 30003
+  hostNetwork: false
+
+plexStorage:
+  data:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: data
+  config:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: config
+  transcode:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: transcode
+  additionalStorages: []
+
+plexGPU: {}

+ 20 - 0
charts/plex/2.0.0/metadata.yaml

@@ -0,0 +1,20 @@
+runAsContext:
+  - userName: root
+    groupName: root
+    gid: 0
+    uid: 0
+    description: Plex runs as root user.
+capabilities:
+  - name: CHOWN
+    description: Plex is able to chown files.
+  - name: FOWNER
+    description: Plex is able to bypass permission checks for it's sub-processes.
+  - name: DAC_OVERRIDE
+    description: Plex is able to bypass permission checks.
+  - name: SETGID
+    description: Plex is able to set group ID for it's sub-processes.
+  - name: SETUID
+    description: Plex is able to set user ID for it's sub-processes.
+  - name: KILL
+    description: Plex is able to kill processes.
+hostMounts: []

+ 100 - 0
charts/plex/2.0.0/migrations/migrate

@@ -0,0 +1,100 @@
+#!/usr/bin/python3
+import json
+import os
+import sys
+
+def migrate_volume(volume):
+    return {
+        'type': 'hostPath',
+        'hostPathConfig': {
+            'hostPath': volume['hostPath']
+        },
+    } if volume.get('hostPathEnabled', False) else {
+        'type': 'ixVolume',
+        'ixVolumeConfig': {
+            'datasetName': volume['datasetName'],
+        },
+    }
+
+def migrate_common_lib(values):
+    delete_keys = [
+        'hostNetwork', 'plexServiceTCP', 'updateStrategy', 'timezone', 'claimToken',
+        'environmentVariables', 'gpuConfiguration', 'enableResourceLimits', 'cpuLimit',
+        'memLimit', 'dnsConfig', 'extraAppVolumeMounts', 'appVolumeMounts', 'enablePlexPass'
+    ]
+
+    values.update({
+        # Migrate Network
+        'plexNetwork': {
+            'webPort': values['plexServiceTCP']['port'],
+            'hostNetwork': values['hostNetwork'],
+        },
+        # Migrate Resources
+        'resources': {
+            'limits': {
+                'cpu': values.get('cpuLimit', '4000m'),
+                'memory': values.get('memLimit', '8Gi'),
+            }
+        },
+        # Migrate DNS
+        'podOptions': {
+            'dnsConfig': {
+                'options': [
+                    {'name': opt['name'], 'value': opt['value']}
+                    for opt in values.get('dnsConfig', {}).get('options', [])
+                ]
+            }
+        },
+        # Migrate ID
+        'plexID': {
+            # We didn't have exposed this on UI the default
+            # set by the container is 1000, so we will use that
+            'user': 1000,
+            'group': 1000,
+        },
+        # Migrate Config
+        'TZ': values['timezone'],
+        'plexConfig': {
+            'imageSelector': 'plexPassImage' if values['enablePlexPass'] else 'image',
+            'claimToken': values['claimToken'],
+            'additionalEnvs': values.get('environmentVariables', []),
+        },
+        'plexGPU': values.get('gpuConfiguration', {}),
+        # Migrate Storage
+        'plexStorage': {
+            'config': migrate_volume(values['appVolumeMounts']['config']),
+            'data': migrate_volume(values['appVolumeMounts']['data']),
+            'transcode': migrate_volume(values['appVolumeMounts']['transcode']),
+            'additionalStorages': [
+                {
+                    'type': 'hostPath',
+                    'hostPathConfig': {'hostPath': e['hostPath']},
+                    'mountPath': e['mountPath'],
+                    'readOnly': e['readOnly'],
+                }
+                for e in values.get('extraAppVolumeMounts', [])
+            ],
+        },
+
+    })
+
+    for k in delete_keys:
+        values.pop(k, None)
+
+    return values
+
+def migrate(values):
+    # If this missing, we have already migrated
+    if not 'appVolumeMounts' in values.keys():
+        return values
+
+    return migrate_common_lib(values)
+
+
+if __name__ == '__main__':
+    if len(sys.argv) != 2:
+        exit(1)
+
+    if os.path.exists(sys.argv[1]):
+        with open(sys.argv[1], 'r') as f:
+            print(json.dumps(migrate(json.loads(f.read()))))

+ 632 - 0
charts/plex/2.0.0/questions.yaml

@@ -0,0 +1,632 @@
+groups:
+  - name: Plex Configuration
+    description: Configure Plex
+  - name: User and Group Configuration
+    description: Configure User and Group for Plex
+  - name: Advanced Pod Configuration
+    description: Configure Advanced Pod Options for Plex
+  - name: Network Configuration
+    description: Configure Network for Plex
+  - name: Storage Configuration
+    description: Configure Storage for Plex
+  - name: Resources Configuration
+    description: Configure Resources for Plex
+
+portals:
+  web_portal:
+    protocols:
+      - "$kubernetes-resource_configmap_portal_protocol"
+    host:
+      - "$kubernetes-resource_configmap_portal_host"
+    ports:
+      - "$kubernetes-resource_configmap_portal_port"
+    path: "$kubernetes-resource_configmap_portal_path"
+
+questions:
+  - variable: TZ
+    group: Plex Configuration
+    label: Timezone
+    schema:
+      type: string
+      default: Etc/UTC
+      required: true
+      $ref:
+        - definitions/timezone
+
+  - variable: plexConfig
+    label: ""
+    group: Plex Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: claimToken
+          label: Claim Token
+          description: |
+            The claim token for the server to obtain a real server token.
+            If not provided, server is will not be automatically logged in.
+            If server is already logged in, this parameter is ignored.
+            You can obtain a claim token to login your server to your plex account
+            by visiting https://www.plex.tv/claim.
+          schema:
+            type: string
+            default: ""
+            private: true
+        - variable: imageSelector
+          label: Image
+          description: |
+            The image to use for Plex.
+          schema:
+            type: string
+            default: "image"
+            required: true
+            enum:
+              - value: "image"
+                description: Plex Official Image
+              - value: "plexPassImage"
+                description: Plex Pass Image
+        - variable: additionalEnvs
+          label: Additional Environment Variables
+          description: Configure additional environment variables for Plex.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: env
+                label: Environment Variable
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: name
+                      label: Name
+                      schema:
+                        type: string
+                        required: true
+                    - variable: value
+                      label: Value
+                      schema:
+                        type: string
+                        required: true
+
+  - variable: plexID
+    label: ""
+    group: User and Group Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: user
+          label: User ID
+          description: The user id that Plex files will be owned by.
+          schema:
+            type: int
+            min: 568
+            default: 568
+            required: true
+        - variable: group
+          label: Group ID
+          description: The group id that Plex files will be owned by.
+          schema:
+            type: int
+            min: 568
+            default: 568
+            required: true
+
+  - variable: podOptions
+    label: ""
+    group: Advanced Pod Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: dnsConfig
+          label: Advanced DNS Configuration
+          schema:
+            type: dict
+            attrs:
+              - variable: options
+                label: DNS Options
+                schema:
+                  type: list
+                  items:
+                    - variable: optionsEntry
+                      label: DNS Option Entry
+                      schema:
+                        type: dict
+                        attrs:
+                          - variable: name
+                            label: Option Name
+                            schema:
+                              type: string
+                              required: true
+                          - variable: value
+                            label: Option Value
+                            schema:
+                              type: string
+                              required: true
+
+  - variable: plexNetwork
+    label: ""
+    group: Network Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: webPort
+          label: WebUI Port
+          description: The port for Plex WebUI
+          schema:
+            type: int
+            default: 32400
+            min: 9000
+            max: 65535
+            required: true
+        - variable: hostNetwork
+          label: Host Network
+          description: |
+            Bind to the host network. It's recommended to keep this disabled.
+          schema:
+            type: boolean
+            default: false
+
+  - variable: plexStorage
+    label: ""
+    group: Storage Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: data
+          label: Plex Data Storage
+          description: The path to store Plex Data.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "data"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+        - variable: config
+          label: Plex Configuration Storage
+          description: The path to store Plex Configuration.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "config"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+        - variable: transcode
+          label: Plex Transcode Storage
+          description: The path to store Plex Transcode.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.</br>
+                  emptyDir: Is a temporary directory that will be created on the disk or in memory.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+                    - value: "emptyDir"
+                      description: emptyDir (Temporary directory created on the disk or in memory)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "transcode"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: emptyDirConfig
+                label: emptyDir Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "emptyDir"]]
+                  attrs:
+                    - variable: medium
+                      label: emptyDir Medium
+                      description: |
+                        Disk: Creates a temporary directory on the disk.</br>
+                        Memory: Creates a temporary directory in memory.
+                      schema:
+                        type: string
+                        default: ""
+                        enum:
+                          - value: ""
+                            description: Disk (Temporary directory created on the disk)
+                          - value: "Memory"
+                            description: Memory (Temporary directory created in memory)
+                    - variable: size
+                      label: emptyDir Size Limit (in Gi)
+                      description: |
+                        The maximum size (in Gi) of the temporary directory.</br>
+                        For example: 2
+                      schema:
+                        type: int
+                        "null": true
+                        default: 2
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+
+        - variable: additionalStorages
+          label: Additional Storage
+          description: Additional storage for Plex.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: storageEntry
+                label: Storage Entry
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: type
+                      label: Type
+                      description: |
+                        ixVolume: Is dataset created automatically by the system.</br>
+                        Host Path: Is a path that already exists on the system.</br>
+                        SMB Share: Is a SMB share that is mounted to a persistent volume claim.
+                      schema:
+                        type: string
+                        required: true
+                        default: "ixVolume"
+                        immutable: true
+                        enum:
+                          - value: "hostPath"
+                            description: Host Path (Path that already exists on the system)
+                          - value: "ixVolume"
+                            description: ixVolume (Dataset created automatically by the system)
+                          - value: "smb-pv-pvc"
+                            description: SMB Share (Mounts a persistent volume claim to a SMB share)
+                    - variable: readOnly
+                      label: Read Only
+                      description: Mount the volume as read only.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: mountPath
+                      label: Mount Path
+                      description: The path inside the container to mount the storage.
+                      schema:
+                        type: path
+                        required: true
+                    - variable: hostPathConfig
+                      label: Host Path Configuration
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "hostPath"]]
+                        attrs:
+                          - variable: aclEnable
+                            label: Enable ACL
+                            description: Enable ACL for the dataset.
+                            schema:
+                              type: boolean
+                              default: false
+                          - variable: acl
+                            label: ACL Configuration
+                            schema:
+                              type: dict
+                              show_if: [["aclEnable", "=", true]]
+                              attrs: []
+                              $ref:
+                                - "normalize/acl"
+                          - variable: hostPath
+                            label: Host Path
+                            description: The host path to use for storage.
+                            schema:
+                              type: hostpath
+                              show_if: [["aclEnable", "=", false]]
+                              required: true
+                    - variable: ixVolumeConfig
+                      label: ixVolume Configuration
+                      description: The configuration for the ixVolume dataset.
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "ixVolume"]]
+                        $ref:
+                          - "normalize/ixVolume"
+                        attrs:
+                          - variable: aclEnable
+                            label: Enable ACL
+                            description: Enable ACL for the dataset.
+                            schema:
+                              type: boolean
+                              default: false
+                          - variable: datasetName
+                            label: Dataset Name
+                            description: The name of the dataset to use for storage.
+                            schema:
+                              type: string
+                              required: true
+                              immutable: true
+                              default: "storage_entry"
+                          - variable: aclEntries
+                            label: ACL Configuration
+                            schema:
+                              type: dict
+                              show_if: [["aclEnable", "=", true]]
+                              attrs: []
+                    - variable: smbConfig
+                      label: SMB Share Configuration
+                      description: The configuration for the SMB Share.
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "smb-pv-pvc"]]
+                        attrs:
+                          - variable: server
+                            label: Server
+                            description: The server for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: share
+                            label: Share
+                            description: The share name for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: domain
+                            label: Domain (Optional)
+                            description: The domain for the SMB share.
+                            schema:
+                              type: string
+                          - variable: username
+                            label: Username
+                            description: The username for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: password
+                            label: Password
+                            description: The password for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                              private: true
+                          - variable: size
+                            label: Size (in Gi)
+                            description: The size of the volume quota.
+                            schema:
+                              type: int
+                              required: true
+                              min: 1
+                              default: 1
+
+  - variable: resources
+    label: Resources Configuration
+    group: Resources Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: limits
+          label: Limits
+          schema:
+            type: dict
+            attrs:
+              - variable: cpu
+                label: CPU
+                description: CPU limit for Plex.
+                schema:
+                  type: string
+                  max_length: 6
+                  valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
+                  valid_chars_error: |
+                    Valid CPU limit formats are</br>
+                    - Plain Integer - eg. 1</br>
+                    - Float - eg. 0.5</br>
+                    - Milicpu - eg. 500m
+                  default: "4000m"
+                  required: true
+              - variable: memory
+                label: Memory
+                description: Memory limit for Plex.
+                schema:
+                  type: string
+                  max_length: 12
+                  valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
+                  valid_chars_error: |
+                    Valid Memory limit formats are</br>
+                    - Suffixed with E/P/T/G/M/K - eg. 1G</br>
+                    - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
+                    - Plain Integer in bytes - eg. 1024</br>
+                    - Exponent - eg. 134e6
+                  default: "8Gi"
+                  required: true
+
+  - variable: plexGPU
+    group: Resources Configuration
+    label: GPU Configuration
+    schema:
+      type: dict
+      $ref:
+        - "definitions/gpuConfiguration"
+      attrs: []

+ 1 - 0
charts/plex/2.0.0/templates/NOTES.txt

@@ -0,0 +1 @@
+{{ include "ix.v1.common.lib.chart.notes" $ }}

+ 35 - 0
charts/plex/2.0.0/templates/_migration.tpl

@@ -0,0 +1,35 @@
+{{- define "plex.get-versions" -}}
+  {{- $oldChartVersion := "" -}}
+  {{- $newChartVersion := "" -}}
+
+  {{/* Safely access the context, so it wont block CI */}}
+  {{- if hasKey .Values.global "ixChartContext" -}}
+    {{- if .Values.global.ixChartContext.upgradeMetadata -}}
+
+      {{- $oldChartVersion = .Values.global.ixChartContext.upgradeMetadata.oldChartVersion -}}
+      {{- $newChartVersion = .Values.global.ixChartContext.upgradeMetadata.newChartVersion -}}
+      {{- if and (not $oldChartVersion) (not $newChartVersion) -}}
+        {{- fail "Upgrade Metadata is missing. Cannot proceed" -}}
+      {{- end -}}
+    {{- end -}}
+  {{- end -}}
+
+  {{- toYaml (dict "old" $oldChartVersion "new" $newChartVersion) -}}
+{{- end -}}
+
+{{- define "plex.migration" -}}
+  {{- $versions := (fromYaml (include "plex.get-versions" $)) -}}
+  {{- if and $versions.old $versions.new -}}
+    {{- $oldV := semver $versions.old -}}
+    {{- $newV := semver $versions.new -}}
+
+    {{/* If new is v2.x.x */}}
+    {{- if eq ($newV.Major | int) 2 -}}
+      {{/* And old is v1.x.x, but lower than .7.60 */}}
+      {{- if and (eq $oldV.Major 1) (or (ne $oldV.Minor 7) (lt ($oldV.Patch | int) 60)) -}}
+        {{/* Block the upgrade */}}
+        {{- fail "Migration to 2.x.x is only allowed from 1.7.60 or higher" -}}
+      {{- end -}}
+    {{- end -}}
+  {{- end -}}
+{{- end -}}

+ 54 - 0
charts/plex/2.0.0/templates/_persistence.tpl

@@ -0,0 +1,54 @@
+{{- define "plex.persistence" -}}
+persistence:
+  data:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plexStorage.data) | nindent 4 }}
+    targetSelector:
+      plex:
+        plex:
+          mountPath: /data
+  config:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plexStorage.config) | nindent 4 }}
+    targetSelector:
+      plex:
+        plex:
+          mountPath: /config
+  transcode:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.plexStorage.transcode) | nindent 4 }}
+    targetSelector:
+      plex:
+        plex:
+          mountPath: /transcode
+  shared:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      plex:
+        plex:
+          mountPath: /shared
+  logs:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      plex:
+        plex:
+          mountPath: "/config/Library/Application Support/Plex Media Server/Logs"
+  tmp:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      plex:
+        plex:
+          mountPath: /tmp
+  {{- range $idx, $storage := .Values.plexStorage.additionalStorages }}
+  {{ printf "plex-%v:" (int $idx) }}
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
+    targetSelector:
+      plex:
+        plex:
+          mountPath: {{ $storage.mountPath }}
+  {{- end }}
+{{- end -}}

+ 66 - 0
charts/plex/2.0.0/templates/_plex.tpl

@@ -0,0 +1,66 @@
+{{- define "plex.workload" -}}
+workload:
+  plex:
+    enabled: true
+    primary: true
+    type: Deployment
+    podSpec:
+      hostNetwork: {{ .Values.plexNetwork.hostNetwork }}
+      securityContext:
+        fsGroup: {{ .Values.plexID.group }}
+      containers:
+        plex:
+          enabled: true
+          primary: true
+          imageSelector: {{ .Values.plexConfig.imageSelector }}
+          securityContext:
+            runAsUser: 0
+            runAsGroup: 0
+            runAsNonRoot: false
+            readOnlyRootFilesystem: false
+            capabilities:
+              add:
+                - CHOWN
+                - DAC_OVERRIDE
+                - FOWNER
+                - SETGID
+                - SETUID
+                - KILL
+          env:
+            PLEX_CLAIM: {{ .Values.plexConfig.claimToken }}
+            PLEX_UID: {{ .Values.plexID.user }}
+            PLEX_GID: {{ .Values.plexID.group }}
+          fixedEnv:
+            PUID: {{ .Values.plexID.user }}
+          {{ with .Values.plexConfig.additionalEnvs }}
+          envList:
+            {{ range $env := . }}
+            - name: {{ $env.name }}
+              value: {{ $env.value }}
+            {{ end }}
+          {{ end }}
+          probes:
+            liveness:
+              enabled: true
+              type: tcp
+              port: 32400
+            readiness:
+              enabled: true
+              type: tcp
+              port: 32400
+            startup:
+              enabled: true
+              type: tcp
+              port: 32400
+
+{{ with .Values.plexGPU }}
+scaleGPU:
+  {{ range $key, $value := . }}
+  - gpu:
+      {{ $key }}: {{ $value }}
+    targetSelector:
+      plex:
+        - plex
+  {{ end }}
+{{ end }}
+{{- end -}}

+ 16 - 0
charts/plex/2.0.0/templates/_portal.tpl

@@ -0,0 +1,16 @@
+{{- define "plex.portal" -}}
+{{- $port := .Values.plexNetwork.webPort -}}
+{{- if .Values.plexNetwork.hostNetwork -}}
+  {{- $port = 32400 -}}
+{{- end }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: portal
+data:
+  port: {{ $port | quote }}
+  path: "/"
+  protocol: "http"
+  host: $node_ip
+{{- end -}}

+ 61 - 0
charts/plex/2.0.0/templates/_service.tpl

@@ -0,0 +1,61 @@
+{{- define "plex.service" -}}
+service:
+  plex:
+    enabled: true
+    primary: true
+    type: NodePort
+    targetSelector: plex
+    ports:
+      webui:
+        enabled: true
+        primary: true
+        port: {{ .Values.plexNetwork.webPort }}
+        nodePort: {{ .Values.plexNetwork.webPort }}
+        targetPort: 32400
+        targetSelector: plex
+  discovery:
+    enabled: true
+    # This service is added only to provide
+    # a way for in-cluster apps to discovery plex
+    # For LAN discovery, host networking is required
+    type: ClusterIP
+    targetSelector: plex
+    ports:
+      dlna-tcp:
+        enabled: true
+        primary: true
+        port: 32469
+        targetPort: 32469
+        protocol: tcp
+        targetSelector: plex
+      dlna-udp:
+        enabled: true
+        port: 1900
+        targetPort: 1900
+        protocol: udp
+        targetSelector: plex
+      gdm1:
+        enabled: true
+        port: 32410
+        targetPort: 32410
+        protocol: udp
+        targetSelector: plex
+      gdm2:
+        enabled: true
+        port: 32412
+        targetPort: 32412
+        protocol: udp
+        targetSelector: plex
+      gdm3:
+        enabled: true
+        port: 32413
+        targetPort: 32413
+        protocol: udp
+        targetSelector: plex
+      gdm4:
+        enabled: true
+        port: 32414
+        targetPort: 32414
+        protocol: udp
+        targetSelector: plex
+{{- end -}}

+ 13 - 0
charts/plex/2.0.0/templates/common.yaml

@@ -0,0 +1,13 @@
+{{- include "ix.v1.common.loader.init" . -}}
+
+{{- include "plex.migration" $ -}}
+
+{{/* Merge the templates with Values */}}
+{{- $_ := mustMergeOverwrite .Values (include "plex.workload" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "plex.service" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "plex.persistence" $ | fromYaml) -}}
+
+{{/* Create the configmap for portal manually*/}}
+{{- include "plex.portal" $ -}}
+
+{{- include "ix.v1.common.loader.apply" . -}}

+ 4 - 0
charts/plex/2.0.0/to_keep_versions.md

@@ -0,0 +1,4 @@
+# 1.7.60
+
+This version is kept because it contains a fix that is needed for migration to v2.x.x
+It should be safe to remove few months after v2.x.x is released.

+ 6 - 0
community/netbootxyz/1.0.0/Chart.lock

@@ -0,0 +1,6 @@
+dependencies:
+- name: common
+  repository: file://../../../common
+  version: 1.2.9
+digest: sha256:af1a9a1f87e3e48453c9f25f909f5ebcd7fa6e25162b7b425448ba752bcdbc5c
+generated: "2024-01-23T17:10:13.3434522-05:00"

+ 30 - 0
community/netbootxyz/1.0.0/Chart.yaml

@@ -0,0 +1,30 @@
+name: netbootxyz
+description: netboot.xyz lets you PXE boot various operating system installers or utilities from a single tool over the network.
+annotations:
+  title: netbootxyz
+type: application
+version: 1.0.0
+apiVersion: v2
+appVersion: 2.0.76
+kubeVersion: '>=1.16.0-0'
+maintainers:
+  - name: truenas
+    url: https://www.truenas.com/
+    email: dev@ixsystems.com
+dependencies:
+  - name: common
+    repository: file://../../../common
+    version: 1.2.9
+home: https://github.com/truenas/charts/tree/master/community/netbootxyz
+icon: https://media.sys.truenas.net/apps/netbootxyz/icons/icon.svg
+sources:
+  - https://github.com/truenas/charts/tree/master/community/netbootxyz
+  - https://github.com/netbootxyz/docker-netbootxyz
+  - https://netboot.xyz
+keywords:
+  - tftp
+  - network
+  - pxe
+  - netboot
+  - netbootxyz
+  - netboot.xyz

+ 3 - 0
community/netbootxyz/1.0.0/README.md

@@ -0,0 +1,3 @@
+# netboot.xyz
+
+[netboot.xyz](https://netboot.xyz) lets you PXE boot various operating system installers or utilities from a single tool over the network.

+ 3 - 0
community/netbootxyz/1.0.0/app-readme.md

@@ -0,0 +1,3 @@
+# netboot.xyz
+
+[netboot.xyz](https://netboot.xyz) lets you PXE boot various operating system installers or utilities from a single tool over the network.

BIN
community/netbootxyz/1.0.0/charts/common-1.2.9.tgz


+ 10 - 0
community/netbootxyz/1.0.0/ci/basic-values.yaml

@@ -0,0 +1,10 @@
+netbootStorage:
+  config:
+    type: pvc
+  assets:
+    type: pvc
+netbootNetwork:
+  hostNetwork: true
+  tftpPort: 69
+  webHttpPort: 3000
+  webAssetsPort: 8080

+ 31 - 0
community/netbootxyz/1.0.0/ix_values.yaml

@@ -0,0 +1,31 @@
+image:
+  repository: netbootxyz/netbootxyz
+  pullPolicy: IfNotPresent
+  tag: 0.7.0-nbxyz2
+
+resources:
+  limits:
+    cpu: 4000m
+    memory: 8Gi
+
+netbootConfig:
+  tftpdOpts: []
+  additionalEnvs: []
+
+netbootNetwork:
+  # TFTP only works with hostNetwork: true
+  hostNetwork: true
+  tftpPort: 69
+  webHttpPort: 3000
+  webAssetsPort: 8080
+
+netbootStorage:
+  config:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: config
+  assets:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: assets
+  additionalStorages: []

+ 22 - 0
community/netbootxyz/1.0.0/metadata.yaml

@@ -0,0 +1,22 @@
+runAsContext:
+  - userName: root
+    groupName: root
+    gid: 0
+    uid: 0
+    description: The container starts as root, then NGINX and TFTP spawn under normal user accounts.
+capabilities:
+  - name: CHOWN
+    description: TFTP requires this ability to set permissions for sub-processes.
+  - name: DAC_OVERRIDE
+    description: TFTP requires this ability to set permissions for sub-processes.
+  - name: FOWNER
+    description: TFTP requires this ability to set permissions for sub-processes.
+  - name: SETUID
+    description: TFTP requires this ability to switch user for sub-processes.
+  - name: SETGID
+    description: TFTP requires this ability to switch group for sub-processes.
+  - name: NET_BIND_SERVICE
+    description: TFTP requires this ability to bind to port 69 for TFTP.
+  - name: KILL
+    description: TFTP requires this ability to kill sub-processes.
+hostMounts: []

+ 321 - 0
community/netbootxyz/1.0.0/questions.yaml

@@ -0,0 +1,321 @@
+groups:
+  - name: netboot.xyz Configuration
+    description: Configure netboot.xyz.
+  - name: Network Configuration
+    description: Configure Network for netboot.xyz.
+  - name: Storage Configuration
+    description: Configure Storage for netboot.xyz
+  - name: Resources Configuration
+    description: Configure Resources for netboot.xyz
+
+portals:
+  web_portal:
+    protocols:
+      - "$kubernetes-resource_configmap_portal_protocol"
+    host:
+      - "$kubernetes-resource_configmap_portal_host"
+    ports:
+      - "$kubernetes-resource_configmap_portal_port"
+    path: "$kubernetes-resource_configmap_portal_path"
+
+questions:
+  - variable: TZ
+    group: netboot.xyz Configuration
+    label: Timezone
+    schema:
+      type: string
+      default: Etc/UTC
+      required: true
+      $ref:
+        - definitions/timezone
+
+  - variable: netbootConfig
+    label: ""
+    group: netboot.xyz Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: tftpdOpts
+          label: TFTPD Options
+          description: |
+            Additional TFTPD options.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: option
+                label: Option
+                schema:
+                  type: string
+                  required: true
+        - variable: additionalEnvs
+          label: Additional Environment Variables
+          description: Configure additional environment variables for netboot.xyz.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: env
+                label: Environment Variable
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: name
+                      label: Name
+                      schema:
+                        type: string
+                        required: true
+                    - variable: value
+                      label: Value
+                      schema:
+                        type: string
+                        required: true
+
+  - variable: netbootNetwork
+    label: ""
+    group: Network Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: hostNetwork
+          label: Host Network
+          description: |
+            Bind to the host network. </br>
+            Required for TFTP.
+          schema:
+            type: boolean
+            default: true
+        - variable: tftpPort
+          label: TFTP Port
+          description: The TFTP port for netboot.xyz.
+          schema:
+            show_if: [["hostNetwork", "=", false]]
+            type: int
+            default: 31009
+            min: 9000
+            max: 65535
+            required: true
+        - variable: webHttpPort
+          label: Portal HTTP Port
+          description: The HTTP port for the netboot.xyz Portal.
+          schema:
+            show_if: [["hostNetwork", "=", false]]
+            type: int
+            default: 31010
+            min: 9000
+            max: 65535
+            required: true
+        - variable: webAssetsPort
+          label: Assets Port
+          description: The Assets port for the netboot.xyz, configures the NGINX_PORT variable on the container.
+          schema:
+            type: int
+            default: 31011
+            min: 9000
+            max: 65535
+            required: true
+
+  - variable: netbootStorage
+    label: ""
+    group: Storage Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: config
+          label: netboot.xyz Config Storage
+          description: The path to store netboot.xyz configuration.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "config"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+
+        - variable: assets
+          label: netboot.xyz Assets Storage
+          description: The path to store netboot.xyz assets.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "assets"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+
+  - variable: resources
+    group: Resources Configuration
+    label: ""
+    schema:
+      type: dict
+      attrs:
+        - variable: limits
+          label: Limits
+          schema:
+            type: dict
+            attrs:
+              - variable: cpu
+                label: CPU
+                description: CPU limit for netboot.xyz.
+                schema:
+                  type: string
+                  max_length: 6
+                  valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
+                  valid_chars_error: |
+                    Valid CPU limit formats are</br>
+                    - Plain Integer - eg. 1</br>
+                    - Float - eg. 0.5</br>
+                    - Milicpu - eg. 500m
+                  default: "4000m"
+                  required: true
+              - variable: memory
+                label: Memory
+                description: Memory limit for netboot.xyz.
+                schema:
+                  type: string
+                  max_length: 12
+                  valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
+                  valid_chars_error: |
+                    Valid Memory limit formats are</br>
+                    - Suffixed with E/P/T/G/M/K - eg. 1G</br>
+                    - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
+                    - Plain Integer in bytes - eg. 1024</br>
+                    - Exponent - eg. 134e6
+                  default: "8Gi"
+                  required: true

+ 1 - 0
community/netbootxyz/1.0.0/templates/NOTES.txt

@@ -0,0 +1 @@
+{{ include "ix.v1.common.lib.chart.notes" $ }}

+ 63 - 0
community/netbootxyz/1.0.0/templates/_netboot.tpl

@@ -0,0 +1,63 @@
+{{- define "netboot.workload" -}}
+workload:
+  netboot:
+    enabled: true
+    primary: true
+    type: Deployment
+    podSpec:
+      hostNetwork: {{ .Values.netbootNetwork.hostNetwork }}
+      containers:
+        netboot:
+          enabled: true
+          primary: true
+          imageSelector: image
+          securityContext:
+            runAsNonRoot: false
+            runAsUser: 0
+            runAsGroup: 0
+            readOnlyRootFilesystem: false
+            capabilities:
+              add:
+                - CHOWN
+                - DAC_OVERRIDE
+                - FOWNER
+                - SETGID
+                - SETUID
+                - NET_BIND_SERVICE
+                - KILL
+          env:
+            NGINX_PORT: {{ .Values.netbootNetwork.webAssetsPort }}
+            TFTPD_OPTS: {{ join " " .Values.netbootConfig.tftpdOpts }}
+          {{ with .Values.netbootConfig.additionalEnvs }}
+          envList:
+            {{ range $env := . }}
+            - name: {{ $env.name }}
+              value: {{ $env.value }}
+            {{ end }}
+          {{ end }}
+          probes:
+            liveness:
+              enabled: true
+              type: exec
+              command:
+                - /bin/sh
+                - -c
+                - |
+                  pgrep in.tftpd
+            readiness:
+              enabled: true
+              type: exec
+              command:
+                - /bin/sh
+                - -c
+                - |
+                  pgrep in.tftpd
+            startup:
+              enabled: true
+              type: exec
+              command:
+                - /bin/sh
+                - -c
+                - |
+                  pgrep in.tftpd
+{{- end -}}

+ 47 - 0
community/netbootxyz/1.0.0/templates/_persistence.tpl

@@ -0,0 +1,47 @@
+{{- define "netboot.persistence" -}}
+persistence:
+  config:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.netbootStorage.config) | nindent 4 }}
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: /config
+  assets:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.netbootStorage.assets) | nindent 4 }}
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: /assets
+  tmp:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: /tmp
+  varlognginx:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: /var/log/nginx
+  vartmpnginx:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: /var/tmp/nginx
+  {{- range $idx, $storage := .Values.netbootStorage.additionalStorages }}
+  {{ printf "netboot-%v" (int $idx) }}:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
+    targetSelector:
+      netboot:
+        netboot:
+          mountPath: {{ $storage.mountPath }}
+  {{- end -}}
+{{- end -}}

+ 12 - 0
community/netbootxyz/1.0.0/templates/_portal.tpl

@@ -0,0 +1,12 @@
+{{- define "netboot.portal" -}}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: portal
+data:
+  path: "/"
+  port: {{ .Values.netbootNetwork.webHttpPort | quote }}
+  protocol: http
+  host: $node_ip
+{{- end -}}

+ 34 - 0
community/netbootxyz/1.0.0/templates/_service.tpl

@@ -0,0 +1,34 @@
+{{- define "netboot.service" -}}
+service:
+  netboot:
+    enabled: true
+    primary: true
+    type: NodePort
+    targetSelector: netboot
+    ports:
+      tftp:
+        enabled: true
+        primary: true
+        port: {{ .Values.netbootNetwork.tftpPort }}
+        nodePort: {{ .Values.netbootNetwork.tftpPort }}
+        targetPort: 69
+        protocol: udp
+        targetSelector: netboot
+      assets:
+        enabled: true
+        port: {{ .Values.netbootNetwork.webAssetsPort }}
+        nodePort: {{ .Values.netbootNetwork.webAssetsPort }}
+        targetSelector: netboot
+  netboot-portal:
+    enabled: true
+    type: NodePort
+    targetSelector: netboot
+    ports:
+      portal-http:
+        enabled: true
+        primary: true
+        port: {{ .Values.netbootNetwork.webHttpPort }}
+        nodePort: {{ .Values.netbootNetwork.webHttpPort }}
+        targetPort: 3000
+        targetSelector: netboot
+{{- end -}}

+ 11 - 0
community/netbootxyz/1.0.0/templates/common.yaml

@@ -0,0 +1,11 @@
+{{- include "ix.v1.common.loader.init" . -}}
+
+{{/* Merge the templates with Values */}}
+{{- $_ := mustMergeOverwrite .Values (include "netboot.workload" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "netboot.service" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "netboot.persistence" $ | fromYaml) -}}
+
+{{/* Create the configmap for portal manually*/}}
+{{- include "netboot.portal" $ -}}
+
+{{- include "ix.v1.common.loader.apply" . -}}

+ 10 - 0
community/netbootxyz/item.yaml

@@ -0,0 +1,10 @@
+icon_url: https://media.sys.truenas.net/apps/netbootxyz/icons/icon.svg
+categories:
+  - network
+screenshots:
+  - https://media.sys.truenas.net/apps/netbootxyz/screenshots/screenshot1.jpg
+tags:
+  - tftp
+  - pxe
+  - netboot
+  - netboot.xyz