diff --git a/charts/collabora/1.2.13/.helmignore b/charts/collabora/1.2.14/.helmignore similarity index 100% rename from charts/collabora/1.2.13/.helmignore rename to charts/collabora/1.2.14/.helmignore diff --git a/charts/collabora/1.2.13/Chart.lock b/charts/collabora/1.2.14/Chart.lock similarity index 100% rename from charts/collabora/1.2.13/Chart.lock rename to charts/collabora/1.2.14/Chart.lock diff --git a/charts/collabora/1.2.13/Chart.yaml b/charts/collabora/1.2.14/Chart.yaml similarity index 97% rename from charts/collabora/1.2.13/Chart.yaml rename to charts/collabora/1.2.14/Chart.yaml index 984505bbbd..51a8b3526d 100644 --- a/charts/collabora/1.2.13/Chart.yaml +++ b/charts/collabora/1.2.14/Chart.yaml @@ -5,7 +5,7 @@ description: | annotations: title: Collabora type: application -version: 1.2.13 +version: 1.2.14 apiVersion: v2 appVersion: '21.11.4.1.1' kubeVersion: '>=1.16.0-0' diff --git a/charts/collabora/1.2.13/README.md b/charts/collabora/1.2.14/README.md similarity index 100% rename from charts/collabora/1.2.13/README.md rename to charts/collabora/1.2.14/README.md diff --git a/charts/collabora/1.2.13/app-readme.md b/charts/collabora/1.2.14/app-readme.md similarity index 100% rename from charts/collabora/1.2.13/app-readme.md rename to charts/collabora/1.2.14/app-readme.md diff --git a/charts/collabora/1.2.13/charts/common-2304.0.1.tgz b/charts/collabora/1.2.14/charts/common-2304.0.1.tgz similarity index 100% rename from charts/collabora/1.2.13/charts/common-2304.0.1.tgz rename to charts/collabora/1.2.14/charts/common-2304.0.1.tgz diff --git a/charts/collabora/1.2.13/ci/test-values.yaml b/charts/collabora/1.2.14/ci/test-values.yaml similarity index 100% rename from charts/collabora/1.2.13/ci/test-values.yaml rename to charts/collabora/1.2.14/ci/test-values.yaml diff --git a/charts/collabora/1.2.13/ix_values.yaml b/charts/collabora/1.2.14/ix_values.yaml similarity index 100% rename from charts/collabora/1.2.13/ix_values.yaml rename to charts/collabora/1.2.14/ix_values.yaml diff --git a/charts/collabora/1.2.13/metadata.yaml b/charts/collabora/1.2.14/metadata.yaml similarity index 100% rename from charts/collabora/1.2.13/metadata.yaml rename to charts/collabora/1.2.14/metadata.yaml diff --git a/charts/collabora/1.2.13/questions.yaml b/charts/collabora/1.2.14/questions.yaml similarity index 95% rename from charts/collabora/1.2.13/questions.yaml rename to charts/collabora/1.2.14/questions.yaml index 7ee8a2f850..a69a0fa78e 100644 --- a/charts/collabora/1.2.13/questions.yaml +++ b/charts/collabora/1.2.14/questions.yaml @@ -46,7 +46,10 @@ questions: type: string private: true default: "changeme" - valid_chars: "[a-zA-Z0-9!@#$%^&*?]{8,}" + valid_chars: "[a-zA-Z0-9!@#%^&*?]{8,}" + valid_chars_error: | + Password must be at least 8 characters long
+ Can contain at numbers, letters, and the following characters: !@#%^&*? required: true - variable: dictionaries label: "Dictionaries to use, leave empty to use all" diff --git a/charts/collabora/1.2.13/templates/_helpers.tpl b/charts/collabora/1.2.14/templates/_helpers.tpl similarity index 100% rename from charts/collabora/1.2.13/templates/_helpers.tpl rename to charts/collabora/1.2.14/templates/_helpers.tpl diff --git a/charts/collabora/1.2.13/templates/deployment.yaml b/charts/collabora/1.2.14/templates/deployment.yaml similarity index 100% rename from charts/collabora/1.2.13/templates/deployment.yaml rename to charts/collabora/1.2.14/templates/deployment.yaml diff --git a/charts/collabora/1.2.13/templates/nginx-conf.yaml b/charts/collabora/1.2.14/templates/nginx-conf.yaml similarity index 100% rename from charts/collabora/1.2.13/templates/nginx-conf.yaml rename to charts/collabora/1.2.14/templates/nginx-conf.yaml diff --git a/charts/collabora/1.2.13/templates/nginx-service.yaml b/charts/collabora/1.2.14/templates/nginx-service.yaml similarity index 100% rename from charts/collabora/1.2.13/templates/nginx-service.yaml rename to charts/collabora/1.2.14/templates/nginx-service.yaml diff --git a/charts/collabora/1.2.13/templates/secrets.yaml b/charts/collabora/1.2.14/templates/secrets.yaml similarity index 100% rename from charts/collabora/1.2.13/templates/secrets.yaml rename to charts/collabora/1.2.14/templates/secrets.yaml diff --git a/charts/collabora/1.2.13/upgrade_strategy_disabled b/charts/collabora/1.2.14/upgrade_strategy_disabled similarity index 100% rename from charts/collabora/1.2.13/upgrade_strategy_disabled rename to charts/collabora/1.2.14/upgrade_strategy_disabled diff --git a/charts/netdata/1.0.26/.helmignore b/charts/netdata/1.0.27/.helmignore similarity index 100% rename from charts/netdata/1.0.26/.helmignore rename to charts/netdata/1.0.27/.helmignore diff --git a/charts/netdata/1.0.26/Chart.lock b/charts/netdata/1.0.27/Chart.lock similarity index 100% rename from charts/netdata/1.0.26/Chart.lock rename to charts/netdata/1.0.27/Chart.lock diff --git a/charts/netdata/1.0.26/Chart.yaml b/charts/netdata/1.0.27/Chart.yaml similarity index 94% rename from charts/netdata/1.0.26/Chart.yaml rename to charts/netdata/1.0.27/Chart.yaml index 1a38c6be8f..0d0f2cbf32 100644 --- a/charts/netdata/1.0.26/Chart.yaml +++ b/charts/netdata/1.0.27/Chart.yaml @@ -3,9 +3,9 @@ description: Real-time performance monitoring, done right! annotations: title: Netdata type: application -version: 1.0.26 +version: 1.0.27 apiVersion: v2 -appVersion: v1.40.0 +appVersion: v1.40.1 kubeVersion: '>=1.16.0-0' maintainers: - name: truenas diff --git a/charts/netdata/1.0.26/README.md b/charts/netdata/1.0.27/README.md similarity index 100% rename from charts/netdata/1.0.26/README.md rename to charts/netdata/1.0.27/README.md diff --git a/charts/netdata/1.0.26/app-readme.md b/charts/netdata/1.0.27/app-readme.md similarity index 100% rename from charts/netdata/1.0.26/app-readme.md rename to charts/netdata/1.0.27/app-readme.md diff --git a/charts/netdata/1.0.26/charts/common-2304.0.1.tgz b/charts/netdata/1.0.27/charts/common-2304.0.1.tgz similarity index 100% rename from charts/netdata/1.0.26/charts/common-2304.0.1.tgz rename to charts/netdata/1.0.27/charts/common-2304.0.1.tgz diff --git a/charts/netdata/1.0.26/ci/test-values.yaml b/charts/netdata/1.0.27/ci/test-values.yaml similarity index 100% rename from charts/netdata/1.0.26/ci/test-values.yaml rename to charts/netdata/1.0.27/ci/test-values.yaml diff --git a/charts/netdata/1.0.26/ix_values.yaml b/charts/netdata/1.0.27/ix_values.yaml similarity index 86% rename from charts/netdata/1.0.26/ix_values.yaml rename to charts/netdata/1.0.27/ix_values.yaml index 4a60440eb3..b58b4be87b 100644 --- a/charts/netdata/1.0.26/ix_values.yaml +++ b/charts/netdata/1.0.27/ix_values.yaml @@ -1,6 +1,6 @@ image: pullPolicy: IfNotPresent repository: netdata/netdata - tag: v1.40.0 + tag: v1.40.1 runAsGroup: 201 runAsUser: 201 diff --git a/charts/netdata/1.0.26/metadata.yaml b/charts/netdata/1.0.27/metadata.yaml similarity index 100% rename from charts/netdata/1.0.26/metadata.yaml rename to charts/netdata/1.0.27/metadata.yaml diff --git a/charts/netdata/1.0.26/questions.yaml b/charts/netdata/1.0.27/questions.yaml similarity index 100% rename from charts/netdata/1.0.26/questions.yaml rename to charts/netdata/1.0.27/questions.yaml diff --git a/charts/netdata/1.0.26/templates/_helpers.tpl b/charts/netdata/1.0.27/templates/_helpers.tpl similarity index 100% rename from charts/netdata/1.0.26/templates/_helpers.tpl rename to charts/netdata/1.0.27/templates/_helpers.tpl diff --git a/charts/netdata/1.0.26/templates/clusterrole.yaml b/charts/netdata/1.0.27/templates/clusterrole.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/clusterrole.yaml rename to charts/netdata/1.0.27/templates/clusterrole.yaml diff --git a/charts/netdata/1.0.26/templates/clusterrolebinding.yaml b/charts/netdata/1.0.27/templates/clusterrolebinding.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/clusterrolebinding.yaml rename to charts/netdata/1.0.27/templates/clusterrolebinding.yaml diff --git a/charts/netdata/1.0.26/templates/deployment.yaml b/charts/netdata/1.0.27/templates/deployment.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/deployment.yaml rename to charts/netdata/1.0.27/templates/deployment.yaml diff --git a/charts/netdata/1.0.26/templates/pre-install-job.yaml b/charts/netdata/1.0.27/templates/pre-install-job.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/pre-install-job.yaml rename to charts/netdata/1.0.27/templates/pre-install-job.yaml diff --git a/charts/netdata/1.0.26/templates/service.yaml b/charts/netdata/1.0.27/templates/service.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/service.yaml rename to charts/netdata/1.0.27/templates/service.yaml diff --git a/charts/netdata/1.0.26/templates/serviceaccount.yaml b/charts/netdata/1.0.27/templates/serviceaccount.yaml similarity index 100% rename from charts/netdata/1.0.26/templates/serviceaccount.yaml rename to charts/netdata/1.0.27/templates/serviceaccount.yaml diff --git a/charts/wg-easy/1.0.8/.helmignore b/charts/wg-easy/1.0.9/.helmignore similarity index 100% rename from charts/wg-easy/1.0.8/.helmignore rename to charts/wg-easy/1.0.9/.helmignore diff --git a/charts/wg-easy/1.0.8/Chart.lock b/charts/wg-easy/1.0.9/Chart.lock similarity index 100% rename from charts/wg-easy/1.0.8/Chart.lock rename to charts/wg-easy/1.0.9/Chart.lock diff --git a/charts/wg-easy/1.0.8/Chart.yaml b/charts/wg-easy/1.0.9/Chart.yaml similarity index 97% rename from charts/wg-easy/1.0.8/Chart.yaml rename to charts/wg-easy/1.0.9/Chart.yaml index d396f8f89d..2bc8cfb1d8 100644 --- a/charts/wg-easy/1.0.8/Chart.yaml +++ b/charts/wg-easy/1.0.9/Chart.yaml @@ -3,7 +3,7 @@ description: WG-Easy is the easiest way to install & manage WireGuard! annotations: title: WG Easy type: application -version: 1.0.8 +version: 1.0.9 apiVersion: v2 appVersion: "7" kubeVersion: ">=1.16.0-0" diff --git a/charts/wg-easy/1.0.8/README.md b/charts/wg-easy/1.0.9/README.md similarity index 100% rename from charts/wg-easy/1.0.8/README.md rename to charts/wg-easy/1.0.9/README.md diff --git a/charts/wg-easy/1.0.8/app-readme.md b/charts/wg-easy/1.0.9/app-readme.md similarity index 100% rename from charts/wg-easy/1.0.8/app-readme.md rename to charts/wg-easy/1.0.9/app-readme.md diff --git a/charts/wg-easy/1.0.8/charts/common-2304.0.1.tgz b/charts/wg-easy/1.0.9/charts/common-2304.0.1.tgz similarity index 100% rename from charts/wg-easy/1.0.8/charts/common-2304.0.1.tgz rename to charts/wg-easy/1.0.9/charts/common-2304.0.1.tgz diff --git a/charts/wg-easy/1.0.8/ci/test-values.yaml b/charts/wg-easy/1.0.9/ci/test-values.yaml similarity index 100% rename from charts/wg-easy/1.0.8/ci/test-values.yaml rename to charts/wg-easy/1.0.9/ci/test-values.yaml diff --git a/charts/wg-easy/1.0.8/ix_values.yaml b/charts/wg-easy/1.0.9/ix_values.yaml similarity index 100% rename from charts/wg-easy/1.0.8/ix_values.yaml rename to charts/wg-easy/1.0.9/ix_values.yaml diff --git a/charts/wg-easy/1.0.8/metadata.yaml b/charts/wg-easy/1.0.9/metadata.yaml similarity index 100% rename from charts/wg-easy/1.0.8/metadata.yaml rename to charts/wg-easy/1.0.9/metadata.yaml diff --git a/charts/wg-easy/1.0.8/questions.yaml b/charts/wg-easy/1.0.9/questions.yaml similarity index 99% rename from charts/wg-easy/1.0.8/questions.yaml rename to charts/wg-easy/1.0.9/questions.yaml index c0673bfddb..2dc6e6cb19 100644 --- a/charts/wg-easy/1.0.8/questions.yaml +++ b/charts/wg-easy/1.0.9/questions.yaml @@ -22,7 +22,7 @@ portals: questions: - variable: wgUDPPort - label: WireGuard UPD Node Port for WG-Easy + label: WireGuard UDP Node Port for WG-Easy group: Networking schema: type: int diff --git a/charts/wg-easy/1.0.8/templates/deployment.yaml b/charts/wg-easy/1.0.9/templates/deployment.yaml similarity index 100% rename from charts/wg-easy/1.0.8/templates/deployment.yaml rename to charts/wg-easy/1.0.9/templates/deployment.yaml diff --git a/charts/wg-easy/1.0.8/templates/service.yaml b/charts/wg-easy/1.0.9/templates/service.yaml similarity index 100% rename from charts/wg-easy/1.0.8/templates/service.yaml rename to charts/wg-easy/1.0.9/templates/service.yaml diff --git a/community/bazarr/1.0.0/Chart.lock b/community/bazarr/1.0.0/Chart.lock new file mode 100644 index 0000000000..2576f9aeb6 --- /dev/null +++ b/community/bazarr/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.9 +digest: sha256:c3eb00f142d5d1cdbff7843940c150a00bd916520363e6ee9f459ce61fa92b40 +generated: "2023-06-28T16:46:25.707621045+03:00" diff --git a/community/bazarr/1.0.0/Chart.yaml b/community/bazarr/1.0.0/Chart.yaml new file mode 100644 index 0000000000..dca7acbe2f --- /dev/null +++ b/community/bazarr/1.0.0/Chart.yaml @@ -0,0 +1,26 @@ +name: bazarr +description: Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. +annotations: + title: Bazarr +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '1.2.2' +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.0.9 +home: https://www.bazarr.media/ +icon: https://github.com/morpheus65535/bazarr/blob/master/frontend/public/images/logo128.png?raw=true +sources: + - https://github.com/onedr0p/containers/tree/main/apps/bazarr + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/bazarr + - https://github.com/morpheus65535/bazarr +keywords: + - media + - subtitles diff --git a/community/bazarr/1.0.0/README.md b/community/bazarr/1.0.0/README.md new file mode 100644 index 0000000000..ac519d3e9b --- /dev/null +++ b/community/bazarr/1.0.0/README.md @@ -0,0 +1,8 @@ +# Bazarr + +[Bazarr](https://www.bazarr.media/) is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Bazarr` directories. +> Afterward, the `Bazarr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/bazarr/1.0.0/app-readme.md b/community/bazarr/1.0.0/app-readme.md new file mode 100644 index 0000000000..ac519d3e9b --- /dev/null +++ b/community/bazarr/1.0.0/app-readme.md @@ -0,0 +1,8 @@ +# Bazarr + +[Bazarr](https://www.bazarr.media/) is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Bazarr` directories. +> Afterward, the `Bazarr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/bazarr/1.0.0/charts/common-1.0.9.tgz b/community/bazarr/1.0.0/charts/common-1.0.9.tgz new file mode 100644 index 0000000000..4ac9aaa990 Binary files /dev/null and b/community/bazarr/1.0.0/charts/common-1.0.9.tgz differ diff --git a/community/bazarr/1.0.0/ci/basic-values.yaml b/community/bazarr/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..dcac2e8a7c --- /dev/null +++ b/community/bazarr/1.0.0/ci/basic-values.yaml @@ -0,0 +1,11 @@ +bazarrNetwork: + webPort: 31000 + +bazarrRunAs: + user: 1000 + group: 1000 + +bazarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/bazarr/1.0.0/ci/extra-values.yaml b/community/bazarr/1.0.0/ci/extra-values.yaml new file mode 100644 index 0000000000..51d471a140 --- /dev/null +++ b/community/bazarr/1.0.0/ci/extra-values.yaml @@ -0,0 +1,14 @@ +bazarrNetwork: + webPort: 31000 + +bazarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config + additionalStorages: + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/series + mountPath: /series + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/movies + mountPath: /movies diff --git a/community/bazarr/1.0.0/ci/hostNet-values.yaml b/community/bazarr/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..1d5a12ff10 --- /dev/null +++ b/community/bazarr/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,8 @@ +bazarrNetwork: + webPort: 30000 + hostNetwork: true + +bazarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/bazarr/1.0.0/ix_values.yaml b/community/bazarr/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..4db9122ca2 --- /dev/null +++ b/community/bazarr/1.0.0/ix_values.yaml @@ -0,0 +1,26 @@ +image: + repository: ghcr.io/onedr0p/bazarr + pullPolicy: IfNotPresent + tag: '1.2.2' + +resources: + limits: + cpu: 4000m + memory: 8Gi + +bazarrConfig: + additionalEnvs: [] + +bazarrNetwork: + webPort: 30046 + hostNetwork: false + +bazarrRunAs: + user: 568 + group: 568 + +bazarrStorage: + config: + type: ixVolume + datasetName: config + additionalStorages: [] diff --git a/community/bazarr/1.0.0/metadata.yaml b/community/bazarr/1.0.0/metadata.yaml new file mode 100644 index 0000000000..bee0f8509b --- /dev/null +++ b/community/bazarr/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: bazarr + groupName: bazarr + gid: 568 + uid: 568 + description: Bazarr can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/bazarr/1.0.0/questions.yaml b/community/bazarr/1.0.0/questions.yaml new file mode 100644 index 0000000000..37a66620e2 --- /dev/null +++ b/community/bazarr/1.0.0/questions.yaml @@ -0,0 +1,218 @@ +groups: + - name: Bazarr Configuration + description: Configure Bazarr + - name: User and Group Configuration + description: Configure User and Group for Bazarr + - name: Network Configuration + description: Configure Network for Bazarr + - name: Storage Configuration + description: Configure Storage for Bazarr + - name: Resources Configuration + description: Configure Resources for Bazarr + +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: bazarrConfig + label: "" + group: Bazarr Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Bazarr. + 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: bazarrRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Bazarr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Bazarr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: bazarrNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Bazarr Web UI. + schema: + type: int + default: 30046 + 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: bazarrStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Bazarr Config Storage + description: The path to store Bazarr Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Bazarr. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Bazarr. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Bazarr. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/bazarr/1.0.0/templates/NOTES.txt b/community/bazarr/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/bazarr/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/bazarr/1.0.0/templates/_bazarr.tpl b/community/bazarr/1.0.0/templates/_bazarr.tpl new file mode 100644 index 0000000000..b38cf0b9bd --- /dev/null +++ b/community/bazarr/1.0.0/templates/_bazarr.tpl @@ -0,0 +1,51 @@ +{{- define "bazarr.workload" -}} +workload: + bazarr: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.bazarrNetwork.hostNetwork }} + containers: + bazarr: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.bazarrRunAs.user }} + runAsGroup: {{ .Values.bazarrRunAs.group }} + command: + - /entrypoint.sh + args: + - --port + - {{ .Values.bazarrNetwork.webPort | quote }} + {{ with .Values.bazarrConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: "{{ .Values.bazarrNetwork.webPort }}" + path: /ping + readiness: + enabled: true + type: http + port: "{{ .Values.bazarrNetwork.webPort }}" + path: /ping + startup: + enabled: true + type: http + port: "{{ .Values.bazarrNetwork.webPort }}" + path: /ping + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.bazarrRunAs.user + "GID" .Values.bazarrRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} +{{- end -}} diff --git a/community/bazarr/1.0.0/templates/_persistence.tpl b/community/bazarr/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..64845eef22 --- /dev/null +++ b/community/bazarr/1.0.0/templates/_persistence.tpl @@ -0,0 +1,34 @@ +{{- define "bazarr.persistence" -}} +persistence: + config: + enabled: true + type: {{ .Values.bazarrStorage.config.type }} + datasetName: {{ .Values.bazarrStorage.config.datasetName | default "" }} + hostPath: {{ .Values.bazarrStorage.config.hostPath | default "" }} + targetSelector: + bazarr: + bazarr: + mountPath: /config + 01-permissions: + mountPath: /mnt/directories/config + tmp: + enabled: true + type: emptyDir + targetSelector: + bazarr: + bazarr: + mountPath: /tmp + {{- range $idx, $storage := .Values.bazarrStorage.additionalStorages }} + {{ printf "bazarr-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + bazarr: + bazarr: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/bazarr/1.0.0/templates/_portal.tpl b/community/bazarr/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..39deb79846 --- /dev/null +++ b/community/bazarr/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "bazarr.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.bazarrNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/bazarr/1.0.0/templates/_service.tpl b/community/bazarr/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..e97f02ae2b --- /dev/null +++ b/community/bazarr/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "bazarr.service" -}} +service: + bazarr: + enabled: true + primary: true + type: NodePort + targetSelector: bazarr + ports: + webui: + enabled: true + primary: true + port: {{ .Values.bazarrNetwork.webPort }} + nodePort: {{ .Values.bazarrNetwork.webPort }} + targetSelector: bazarr +{{- end -}} diff --git a/community/bazarr/1.0.0/templates/common.yaml b/community/bazarr/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..4686ae96dd --- /dev/null +++ b/community/bazarr/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "bazarr.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "bazarr.service" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "bazarr.persistence" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "bazarr.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/bazarr/item.yaml b/community/bazarr/item.yaml new file mode 100644 index 0000000000..841ca21ade --- /dev/null +++ b/community/bazarr/item.yaml @@ -0,0 +1,8 @@ +icon_url: https://github.com/morpheus65535/bazarr/blob/master/frontend/public/images/logo128.png?raw=true +categories: + - media +screenshots: + - https://www.bazarr.media/assets/img/manual.png + - https://www.bazarr.media/assets/img/upgrade.png +tags: + - subtitles diff --git a/community/deluge/1.0.0/Chart.lock b/community/deluge/1.0.0/Chart.lock new file mode 100644 index 0000000000..2b3785e803 --- /dev/null +++ b/community/deluge/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.8 +digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad +generated: "2023-06-13T16:21:59.289590931+03:00" diff --git a/community/deluge/1.0.0/Chart.yaml b/community/deluge/1.0.0/Chart.yaml new file mode 100644 index 0000000000..0c56c8a085 --- /dev/null +++ b/community/deluge/1.0.0/Chart.yaml @@ -0,0 +1,26 @@ +name: deluge +description: Deluge is a lightweight, Free Software, cross-platform BitTorrent client. +annotations: + title: Deluge +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '9.5.3' +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.0.8 +home: https://deluge-torrent.org +icon: https://deluge-torrent.org/images/deluge_logo.png +sources: + - https://hub.docker.com/r/linuxserver/deluge + - https://github.com/truenas/charts/tree/master/community/deluge + - https://deluge-torrent.org/ +keywords: + - torrent + - download diff --git a/community/deluge/1.0.0/README.md b/community/deluge/1.0.0/README.md new file mode 100644 index 0000000000..5774997b15 --- /dev/null +++ b/community/deluge/1.0.0/README.md @@ -0,0 +1,3 @@ +# Deluge + +[Deluge](https://deluge-torrent.org/) is a lightweight, Free Software, cross-platform BitTorrent client. diff --git a/community/deluge/1.0.0/app-readme.md b/community/deluge/1.0.0/app-readme.md new file mode 100644 index 0000000000..5774997b15 --- /dev/null +++ b/community/deluge/1.0.0/app-readme.md @@ -0,0 +1,3 @@ +# Deluge + +[Deluge](https://deluge-torrent.org/) is a lightweight, Free Software, cross-platform BitTorrent client. diff --git a/community/deluge/1.0.0/charts/common-1.0.8.tgz b/community/deluge/1.0.0/charts/common-1.0.8.tgz new file mode 100644 index 0000000000..63acf6504f Binary files /dev/null and b/community/deluge/1.0.0/charts/common-1.0.8.tgz differ diff --git a/community/deluge/1.0.0/ci/basic-values.yaml b/community/deluge/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..43924ebd3b --- /dev/null +++ b/community/deluge/1.0.0/ci/basic-values.yaml @@ -0,0 +1,7 @@ +delugeStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/config + downloads: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/downloads diff --git a/community/deluge/1.0.0/ci/hostnet-values.yaml b/community/deluge/1.0.0/ci/hostnet-values.yaml new file mode 100644 index 0000000000..55823748a0 --- /dev/null +++ b/community/deluge/1.0.0/ci/hostnet-values.yaml @@ -0,0 +1,10 @@ +delugeStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/config + downloads: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/downloads + +delugeNetwork: + hostNetwork: true diff --git a/community/deluge/1.0.0/ix_values.yaml b/community/deluge/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..6835c6ea15 --- /dev/null +++ b/community/deluge/1.0.0/ix_values.yaml @@ -0,0 +1,36 @@ +image: + repository: linuxserver/deluge + pullPolicy: IfNotPresent + tag: '2.1.1' + +resources: + limits: + cpu: 4000m + memory: 8Gi + +delugeConfig: + additionalEnvs: [] + +delugeNetwork: + hostNetwork: false + webPort: 30038 + torrentPort: 30039 + +delugeID: + user: 568 + group: 568 + +delugeStorage: + config: + type: ixVolume + datasetName: config + downloads: + type: ixVolume + datasetName: downloads + additionalStorages: [] + +notes: + custom: | + Default credentials: + - Username: admin + - Password: deluge diff --git a/community/deluge/1.0.0/metadata.yaml b/community/deluge/1.0.0/metadata.yaml new file mode 100644 index 0000000000..d874017d61 --- /dev/null +++ b/community/deluge/1.0.0/metadata.yaml @@ -0,0 +1,18 @@ +runAsContext: + - userName: root + groupName: root + gid: 0 + uid: 0 + description: Deluge requires root privileges to start the Deluge process +capabilities: + - name: CHOWN + description: Deluge is able to chown files. + - name: DAC_OVERRIDE + description: Deluge is able to bypass permission checks. + - name: FOWNER + description: Deluge is able bypass permission checks for it's sub-processes. + - name: SETGID + description: Deluge is able to set group ID for it's sub-processes. + - name: SETUID + description: Deluge is able to set user ID for it's sub-processes. +hostMounts: [] diff --git a/community/deluge/1.0.0/questions.yaml b/community/deluge/1.0.0/questions.yaml new file mode 100644 index 0000000000..36dd5f2f61 --- /dev/null +++ b/community/deluge/1.0.0/questions.yaml @@ -0,0 +1,280 @@ +groups: + - name: Deluge Configuration + description: Configure Deluge + - name: User and Group Configuration + description: Configure User and Group for Deluge + - name: Network Configuration + description: Configure Network for Deluge + - name: Storage Configuration + description: Configure Storage for Deluge + - name: Resources Configuration + description: Configure Resources for Deluge + +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: Deluge Configuration + label: Timezone + schema: + type: string + default: Etc/UTC + required: true + $ref: + - definitions/timezone + + - variable: delugeConfig + label: "" + group: Deluge Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Deluge. + 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: delugeID + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: he user id that Deluge files will be owned by. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Deluge files will be owned by. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: delugeNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: hostNetwork + label: Host Network + description: | + Bind to the host network. It's recommended to keep this disabled.
+ schema: + type: boolean + default: false + - variable: webPort + label: Web Port + description: The port for the Deluge Web UI. + schema: + type: int + show_if: [["hostNetwork", "=", false]] + default: 30038 + min: 9000 + max: 65535 + required: true + - variable: torrentPort + label: Torrent Port + description: | + The port for the Deluge Torrent.
+ Applies to both TCP and UDP. + (Internal port is always 6881) + schema: + type: int + show_if: [["hostNetwork", "=", false]] + default: 30039 + min: 9000 + max: 65535 + required: true + + - variable: delugeStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Deluge Config Storage + description: The path to store Deluge Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: downloads + label: Deluge Downloads Storage + description: The path to store Deluge Downloads. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "downloads" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Deluge. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Deluge. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Deluge. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/deluge/1.0.0/templates/NOTES.txt b/community/deluge/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/deluge/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/deluge/1.0.0/templates/_deluge.tpl b/community/deluge/1.0.0/templates/_deluge.tpl new file mode 100644 index 0000000000..b0d310cfd1 --- /dev/null +++ b/community/deluge/1.0.0/templates/_deluge.tpl @@ -0,0 +1,118 @@ +{{- define "deluge.workload" -}} +workload: + deluge: + enabled: true + primary: true + type: Deployment + podSpec: + securityContext: + fsGroup: {{ .Values.delugeID.group }} + hostNetwork: {{ .Values.delugeNetwork.hostNetwork }} + containers: + deluge: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + readOnlyRootFilesystem: false + capabilities: + add: + - CHOWN + - DAC_OVERRIDE + - FOWNER + - SETGID + - SETUID + {{ with .Values.delugeConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: 8112 + path: / + readiness: + enabled: true + type: http + port: 8112 + path: / + startup: + enabled: true + type: http + port: 8112 + path: / + +{{/* Service */}} +service: + deluge: + enabled: true + primary: true + type: NodePort + targetSelector: deluge + ports: + webui: + enabled: true + primary: true + port: {{ .Values.delugeNetwork.webPort }} + nodePort: {{ .Values.delugeNetwork.webPort }} + targetPort: 8112 + targetSelector: deluge + torrent: + enabled: true + type: NodePort + targetSelector: deluge + ports: + tcp: + enabled: true + primary: true + port: {{ .Values.delugeNetwork.torrentPort }} + nodePort: {{ .Values.delugeNetwork.torrentPort }} + targetPort: 6881 + targetSelector: deluge + udp: + enabled: true + port: {{ .Values.delugeNetwork.torrentPort }} + nodePort: {{ .Values.delugeNetwork.torrentPort }} + targetPort: 6881 + protocol: udp + targetSelector: deluge + +{{/* Persistence */}} +persistence: + config: + enabled: true + type: {{ .Values.delugeStorage.config.type }} + datasetName: {{ .Values.delugeStorage.config.datasetName | default "" }} + hostPath: {{ .Values.delugeStorage.config.hostPath | default "" }} + targetSelector: + deluge: + deluge: + mountPath: /config + downloads: + enabled: true + type: {{ .Values.delugeStorage.downloads.type }} + datasetName: {{ .Values.delugeStorage.downloads.datasetName | default "" }} + hostPath: {{ .Values.delugeStorage.downloads.hostPath | default "" }} + targetSelector: + deluge: + deluge: + mountPath: /downloads + {{- range $idx, $storage := .Values.delugeStorage.additionalStorages }} + {{ printf "deluge-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + deluge: + deluge: + mountPath: {{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/deluge/1.0.0/templates/_portal.tpl b/community/deluge/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..a5ab633f3f --- /dev/null +++ b/community/deluge/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "deluge.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.delugeNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/deluge/1.0.0/templates/common.yaml b/community/deluge/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..0596641f18 --- /dev/null +++ b/community/deluge/1.0.0/templates/common.yaml @@ -0,0 +1,9 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "deluge.workload" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "deluge.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/deluge/item.yaml b/community/deluge/item.yaml new file mode 100644 index 0000000000..532e43d54c --- /dev/null +++ b/community/deluge/item.yaml @@ -0,0 +1,7 @@ +icon_url: https://deluge-torrent.org/images/deluge_logo.png +categories: + - media +screenshots: [] +tags: + - torrent + - download diff --git a/community/filebrowser/1.0.0/Chart.lock b/community/filebrowser/1.0.0/Chart.lock new file mode 100644 index 0000000000..06dd96e66c --- /dev/null +++ b/community/filebrowser/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.8 +digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad +generated: "2023-06-26T19:30:25.999950732+03:00" diff --git a/community/filebrowser/1.0.0/Chart.yaml b/community/filebrowser/1.0.0/Chart.yaml new file mode 100644 index 0000000000..b223b43485 --- /dev/null +++ b/community/filebrowser/1.0.0/Chart.yaml @@ -0,0 +1,26 @@ +name: filebrowser +description: File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. +annotations: + title: File Browser +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: 'v2.23.0' +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.0.8 +home: https://filebrowser.org +icon: https://raw.githubusercontent.com/filebrowser/logo/master/banner.png +sources: + - https://github.com/filebrowser/filebrowser + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/filebrowser + - https://hub.docker.com/r/filebrowser/filebrowser +keywords: + - files + - browser diff --git a/community/filebrowser/1.0.0/README.md b/community/filebrowser/1.0.0/README.md new file mode 100644 index 0000000000..f22b128b27 --- /dev/null +++ b/community/filebrowser/1.0.0/README.md @@ -0,0 +1,28 @@ +# Filebrowser + +[Filebrowser](https://filebrowser.org) provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Filebrowser` directories. +> Afterward, the `Filebrowser` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. + +You can configure further the settings by using Environment Variables. +See [Filebrowser Documentation](https://filebrowser.org/cli/filebrowser) for more information. +Use the format `FB_OPTION_NAME` where the option name is the name of the option you want to set. + +You can also edit the configuration file `/config/filebrowser.json`. + +Note that the following options are already set and will always take precedence +over the environment variables and the configuration file: + +- `FB_ROOT`/`--root` is set to `/data` (Any additional volume mounted will be under this directory) +- `FB_PORT`/`--port` is set to `30044` (Or the port you configured in the installation wizard) +- `FB_ADDRESS`/`--address` is set to `0.0.0.0` (It will listen on all interfaces **inside** the container) +- `FB_DATABASE`/`--database` is set to `/config/filebrowser.db` +- `FB_CONFIG`/`--config` is set to `/config/filebrowser.json` + +Also when a certificate is selected + +- `FB_CERT`/`--cert` is set to `/config/certs/tls.crt` +- `FB_KEY`/`--key` is set to `/config/certs/tls.key` diff --git a/community/filebrowser/1.0.0/app-readme.md b/community/filebrowser/1.0.0/app-readme.md new file mode 100644 index 0000000000..f22b128b27 --- /dev/null +++ b/community/filebrowser/1.0.0/app-readme.md @@ -0,0 +1,28 @@ +# Filebrowser + +[Filebrowser](https://filebrowser.org) provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Filebrowser` directories. +> Afterward, the `Filebrowser` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. + +You can configure further the settings by using Environment Variables. +See [Filebrowser Documentation](https://filebrowser.org/cli/filebrowser) for more information. +Use the format `FB_OPTION_NAME` where the option name is the name of the option you want to set. + +You can also edit the configuration file `/config/filebrowser.json`. + +Note that the following options are already set and will always take precedence +over the environment variables and the configuration file: + +- `FB_ROOT`/`--root` is set to `/data` (Any additional volume mounted will be under this directory) +- `FB_PORT`/`--port` is set to `30044` (Or the port you configured in the installation wizard) +- `FB_ADDRESS`/`--address` is set to `0.0.0.0` (It will listen on all interfaces **inside** the container) +- `FB_DATABASE`/`--database` is set to `/config/filebrowser.db` +- `FB_CONFIG`/`--config` is set to `/config/filebrowser.json` + +Also when a certificate is selected + +- `FB_CERT`/`--cert` is set to `/config/certs/tls.crt` +- `FB_KEY`/`--key` is set to `/config/certs/tls.key` diff --git a/community/filebrowser/1.0.0/charts/common-1.0.8.tgz b/community/filebrowser/1.0.0/charts/common-1.0.8.tgz new file mode 100644 index 0000000000..b8b068f4fb Binary files /dev/null and b/community/filebrowser/1.0.0/charts/common-1.0.8.tgz differ diff --git a/community/filebrowser/1.0.0/ci/basic-values.yaml b/community/filebrowser/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..b04b4a6581 --- /dev/null +++ b/community/filebrowser/1.0.0/ci/basic-values.yaml @@ -0,0 +1,11 @@ +filebrowserStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/config + additionalStorages: + - type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data1 + mountPath: /data1 + - type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data2 + mountPath: /data2 diff --git a/community/filebrowser/1.0.0/ci/https-values.yaml b/community/filebrowser/1.0.0/ci/https-values.yaml new file mode 100644 index 0000000000..234db8fc2f --- /dev/null +++ b/community/filebrowser/1.0.0/ci/https-values.yaml @@ -0,0 +1,104 @@ +filebrowserStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/config + additionalStorages: + - type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data1 + mountPath: /data1 + - type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data2 + mountPath: /data2 + +filebrowserNetwork: + certificateID: 1 + +filebrowserRunAs: + user: 2000 + group: 2000 + +ixCertificates: + "1": + certificate: | + -----BEGIN CERTIFICATE----- + MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz + ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD + VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w + HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL + MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTALBgNVBAcMBGFzZGYxDTALBgNV + BAoMBGFkc2YxDTALBgNVBAsMBGFzZGYxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w + ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7+1xOHRQyOnQTHFcrdasX + Zl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/AbkH7oVFWC1 + P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI4vQCdYgW + 2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2dNgsxKU0H + PGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB+Zie331t + AzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7A/FuDVg3 + AgMBAAGjggEdMIIBGTAnBgNVHREEIDAehwTAqAADhwTAqAAFhwTAqAC2hwTAqACB + hwTAqACSMB0GA1UdDgQWBBQ4G2ff4tgZl4vmo4xCfqmJhdqShzAMBgNVHRMBAf8E + AjAAMIGYBgNVHSMEgZAwgY2AFLlYf9L99nxJDcpCM/LT3V5hQ/a3oXCkbjBsMQww + CgYDVQQDDANhc2QxCzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQH + DAJhZjENMAsGA1UECgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkB + FgdhQGEuY29tggNgUxcwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwEwDgYDVR0PAQH/ + BAQDAgWgMA0GCSqGSIb3DQEBCwUAA4IBAQA6FpOInEHB5iVk3FP67GybJ29vHZTD + KQHbQgmg8s4L7qIsA1HQ+DMCbdylpA11x+t/eL/n48BvGw2FNXpN6uykhLHJjbKR + h8yITa2KeD3LjLYhScwIigXmTVYSP3km6s8jRL6UKT9zttnIHyXVpBDya6Q4WTMx + fmfC6O7t1PjQ5ZyVtzizIUP8ah9n4TKdXU4A3QIM6WsJXpHb+vqp1WDWJ7mKFtgj + x5TKv3wcPnktx0zMPfLb5BTSE9rc9djcBG0eIAsPT4FgiatCUChe7VhuMnqskxEz + MymJLoq8+mzucRwFkOkR2EIt1x+Irl2mJVMeBow63rVZfUQBD8h++LqB + -----END CERTIFICATE----- + -----BEGIN CERTIFICATE----- + MIIEhDCCA2ygAwIBAgIDYFMXMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz + ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD + VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w + HhcNMjEwODMwMjMyMDQ1WhcNMzEwODI4MjMyMDQ1WjBsMQwwCgYDVQQDDANhc2Qx + CzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQHDAJhZjENMAsGA1UE + CgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkBFgdhQGEuY29tMIIB + IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq//c0hEEr83CS1pMgsHX50jt + 2MqIbcf63UUNJTiYpUUvUQSFJFc7m/dr+RTZvu97eDCnD5K2qkHHvTPaPZwY+Djf + iy7N641Sz6u/y3Yo3xxs1Aermsfedh48vusJpjbkT2XS44VjbkrpKcWDNVpp3Evd + M7oJotXeUsZ+imiyVCfr4YhoY5gbGh/r+KN9Wf9YKoUyfLLZGwdZkhtX2zIbidsL + Thqi9YTaUHttGinjiBBum234u/CfvKXsfG3yP2gvBGnlvZnM9ktv+lVffYNqlf7H + VmB1bKKk84HtzuW5X76SGAgOG8eHX4x5ZLI1WQUuoQOVRl1I0UCjBtbz8XhwvQID + AQABo4IBLTCCASkwLQYDVR0RBCYwJIcEwKgABYcEwKgAA4cEwKgAkocEwKgAtYcE + wKgAgYcEwKgAtjAdBgNVHQ4EFgQUuVh/0v32fEkNykIz8tPdXmFD9rcwDwYDVR0T + AQH/BAUwAwEB/zCBmAYDVR0jBIGQMIGNgBS5WH/S/fZ8SQ3KQjPy091eYUP2t6Fw + pG4wbDEMMAoGA1UEAwwDYXNkMQswCQYDVQQGEwJVUzENMAsGA1UECAwEYXNkZjEL + MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG + SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF + BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr + zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql + PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX + TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d + 2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/ + +Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w + M7Y3vwxshpo= + -----END CERTIFICATE----- + privatekey: | + -----BEGIN PRIVATE KEY----- + MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT + HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk + H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI + 4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d + NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB + +Zie331tAzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7 + A/FuDVg3AgMBAAECggEAapt30rj9DitGTtxAt13pJMEhyYxvvD3WkvmJwguF/Bbu + eW0Ba1c668fMeRCA54FWi1sMqusPS4HUqqUvk+tmyAOsAF4qgD/A4MMSC7uJSVI5 + N/JWhJWyhCY94/FPakiO1nbPbVw41bcqtzU2qvparpME2CtxSCbDiqm7aaag3Kqe + EF0fGSUdZ+TYl9JM05+eIyiX+UY19Fg0OjTHMn8nGpxcNTfDBdQ68TKvdo/dtIKL + PLKzJUNNdM8odC4CvQtfGMqaslwZwXkiOl5VJcW21ncj/Y0ngEMKeD/i65ZoqGdR + 0FKCQYEAGtM2FvJcZQ92Wsw7yj2bK2MSegVUyLK32QKBgQDe8syVCepPzRsfjfxA + 6TZlWcGuTZLhwIx97Ktw3VcQ1f4rLoEYlv0xC2VWBORpzIsJo4I/OLmgp8a+Ga8z + FkVRnq90dV3t4NP9uJlHgcODHnOardC2UUka4olBSCG6zmK4Jxi34lOxhGRkshOo + L4IBeOIB5g+ZrEEXkzfYJHESRQKBgQDX2YhFhGIrT8BAnC5BbXbhm8h6Bhjz8DYL + d+qhVJjef7L/aJxViU0hX9Ba2O8CLK3FZeREFE3hJPiJ4TZSlN4evxs5p+bbNDcA + 0mhRI/o3X4ac6IxdRebyYnCOB/Cu94/MzppcZcotlCekKNike7eorCcX4Qavm7Pu + MUuQ+ifmSwKBgEnchoqZzlbBzMqXb4rRuIO7SL9GU/MWp3TQg7vQmJerTZlgvsQ2 + wYsOC3SECmhCq4117iCj2luvOdihCboTFsQDnn0mpQe6BIF6Ns3J38wAuqv0CcFd + DKsrge1uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7 + wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc + nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S + dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P + //L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY + qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc + 3G15AKCXo7jjOUtHY01DCQ== + -----END PRIVATE KEY----- diff --git a/community/filebrowser/1.0.0/ix_values.yaml b/community/filebrowser/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..21da06cfe5 --- /dev/null +++ b/community/filebrowser/1.0.0/ix_values.yaml @@ -0,0 +1,33 @@ +image: + repository: filebrowser/filebrowser + pullPolicy: IfNotPresent + tag: v2.23.0 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +filebrowserConfig: + additionalEnvs: [] + +filebrowserNetwork: + webPort: 30044 + certificateID: 0 + hostNetwork: false + +filebrowserRunAs: + user: 568 + group: 568 + +filebrowserStorage: + config: + type: ixVolume + datasetName: config + additionalStorages: [] + +notes: + custom: | + Default credentials: + - username: admin + - password: admin diff --git a/community/filebrowser/1.0.0/metadata.yaml b/community/filebrowser/1.0.0/metadata.yaml new file mode 100644 index 0000000000..16c60ff901 --- /dev/null +++ b/community/filebrowser/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: filebrowser + groupName: filebrowser + gid: 568 + uid: 568 + description: Filebrowser can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/filebrowser/1.0.0/questions.yaml b/community/filebrowser/1.0.0/questions.yaml new file mode 100644 index 0000000000..69f79876a1 --- /dev/null +++ b/community/filebrowser/1.0.0/questions.yaml @@ -0,0 +1,230 @@ +groups: + - name: Filebrowser Configuration + description: Configure Filebrowser + - name: User and Group Configuration + description: Configure User and Group for Filebrowser + - name: Network Configuration + description: Configure Network for Filebrowser + - name: Storage Configuration + description: Configure Storage for Filebrowser + - name: Resources Configuration + description: Configure Resources for Filebrowser + +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: filebrowserConfig + label: "" + group: Filebrowser Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Filebrowser. + 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: filebrowserRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Filebrowser will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Filebrowser will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: filebrowserNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Filebrowser Web UI. + schema: + type: int + default: 30044 + min: 9000 + max: 65535 + required: true + - variable: certificateID + label: Certificate + description: | + The certificate to use for Filebrowser. + schema: + type: int + "null": true + $ref: + - "definitions/certificate" + - variable: hostNetwork + label: Host Network + description: | + Bind to the host network. It's recommended to keep this disabled.
+ schema: + type: boolean + default: false + + - variable: filebrowserStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Filebrowser Config Storage + description: The path to store Filebrowser Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Filebrowser. + schema: + type: list + default: + - type: hostPath + mountPath: /my_data + hostPath: "" + items: + - variable: storageEntry + label: Storage Entry + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Filebrowser. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Filebrowser. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/filebrowser/1.0.0/templates/NOTES.txt b/community/filebrowser/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/filebrowser/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/filebrowser/1.0.0/templates/_filebrowser.tpl b/community/filebrowser/1.0.0/templates/_filebrowser.tpl new file mode 100644 index 0000000000..ecfb9c474c --- /dev/null +++ b/community/filebrowser/1.0.0/templates/_filebrowser.tpl @@ -0,0 +1,87 @@ +{{- define "filebrowser.workload" -}} +{{- $configBasePath := "/config" -}} +{{- $scheme := "http" }} +workload: + filebrowser: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.filebrowserNetwork.hostNetwork }} + containers: + filebrowser: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.filebrowserRunAs.user }} + runAsGroup: {{ .Values.filebrowserRunAs.group }} + args: + - --config + - {{ $configBasePath }}/filebrowser.json + - --database + - {{ $configBasePath }}/filebrowser.db + - --port + - "{{ .Values.filebrowserNetwork.webPort }}" + - --address + - "0.0.0.0" + - --root + - /data + {{- if .Values.filebrowserNetwork.certificateID }} + - --cert + - {{ $configBasePath }}/certs/tls.crt + - --key + - {{ $configBasePath }}/certs/tls.key + {{- $scheme = "https" -}} + {{- end -}} + {{ with .Values.filebrowserConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: {{ $scheme }} + port: "{{ .Values.filebrowserNetwork.webPort }}" + path: /health + readiness: + enabled: true + type: {{ $scheme }} + port: "{{ .Values.filebrowserNetwork.webPort }}" + path: /health + startup: + enabled: true + type: {{ $scheme }} + port: "{{ .Values.filebrowserNetwork.webPort }}" + path: /health + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.filebrowserRunAs.user + "GID" .Values.filebrowserRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} + 02-init-config: + enabled: true + type: init + imageSelector: image + securityContext: + runAsUser: {{ .Values.filebrowserRunAs.user }} + runAsGroup: {{ .Values.filebrowserRunAs.group }} + # Creating the config file if it doesn't exist + # This will make the container to log + # "Using config file: {{ $configBasePath }}/filebrowser.json" + # on startup, so users know where the config is, in case they need it. + # Arguments will take precedence over the config file always. + # (Like the port, paths, etc we set above.) + command: + - /bin/sh + - -c + - | + if [ ! -f {{ $configBasePath }}/filebrowser.json ]; then + echo "Creating an empty config file" + echo '{}' > {{ $configBasePath }}/filebrowser.json + fi +{{- end -}} diff --git a/community/filebrowser/1.0.0/templates/_persistence.tpl b/community/filebrowser/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..a4741bc86c --- /dev/null +++ b/community/filebrowser/1.0.0/templates/_persistence.tpl @@ -0,0 +1,60 @@ +{{- define "filebrowser.persistence" -}} +{{- $configBasePath := "/config" }} +persistence: + config: + enabled: true + type: {{ .Values.filebrowserStorage.config.type }} + datasetName: {{ .Values.filebrowserStorage.config.datasetName | default "" }} + hostPath: {{ .Values.filebrowserStorage.config.hostPath | default "" }} + targetSelector: + filebrowser: + filebrowser: + mountPath: {{ $configBasePath }} + 02-init-config: + mountPath: {{ $configBasePath }} + 01-permissions: + mountPath: /mnt/directories/config + {{- if not .Values.filebrowserStorage.additionalStorages -}} + {{- fail "Filebrowser - Expected at least 1 additional storage" -}} + {{- end -}} + {{- range $idx, $storage := .Values.filebrowserStorage.additionalStorages }} + {{- if not (hasPrefix "/" $storage.mountPath) -}} + {{- fail (printf "Filebrowser - Expected [Mount Path] to start with [/], but got [%v]" $storage.mountPath) -}} + {{- end }} + {{ printf "filebrowser-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + filebrowser: + filebrowser: + mountPath: /data{{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} + +{{/* Certificate */}} +{{- with .Values.filebrowserNetwork.certificateID }} + cert: + enabled: true + type: secret + objectName: filebrowser-cert + defaultMode: "0600" + items: + - key: tls.key + path: tls.key + - key: tls.crt + path: tls.crt + targetSelector: + filebrowser: + filebrowser: + mountPath: {{ $configBasePath }}/certs + readOnly: true + +scaleCertificate: + filebrowser-cert: + enabled: true + id: {{ . }} +{{- end -}} +{{- end -}} diff --git a/community/filebrowser/1.0.0/templates/_portal.tpl b/community/filebrowser/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..939464d1ec --- /dev/null +++ b/community/filebrowser/1.0.0/templates/_portal.tpl @@ -0,0 +1,16 @@ +{{- define "filebrowser.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + {{- $scheme := "http" -}} + {{- if .Values.filebrowserNetwork.certificateID -}} + {{- $scheme = "https" -}} + {{- end }} + path: "/" + port: {{ .Values.filebrowserNetwork.webPort | quote }} + protocol: {{ $scheme }} + host: $node_ip +{{- end -}} diff --git a/community/filebrowser/1.0.0/templates/_service.tpl b/community/filebrowser/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..9cfdbd1f04 --- /dev/null +++ b/community/filebrowser/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "filebrowser.service" -}} +service: + filebrowser: + enabled: true + primary: true + type: NodePort + targetSelector: filebrowser + ports: + webui: + enabled: true + primary: true + port: {{ .Values.filebrowserNetwork.webPort }} + nodePort: {{ .Values.filebrowserNetwork.webPort }} + targetSelector: filebrowser +{{- end -}} diff --git a/community/filebrowser/1.0.0/templates/common.yaml b/community/filebrowser/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..50a403b3c1 --- /dev/null +++ b/community/filebrowser/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "filebrowser.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "filebrowser.persistence" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "filebrowser.service" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "filebrowser.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/filebrowser/item.yaml b/community/filebrowser/item.yaml new file mode 100644 index 0000000000..73492b2a11 --- /dev/null +++ b/community/filebrowser/item.yaml @@ -0,0 +1,10 @@ +icon_url: https://raw.githubusercontent.com/filebrowser/logo/master/banner.png +categories: + - storage +screenshots: + - https://3149836655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8KDxOujDoPpJyJJ5_i%2Fuploads%2Fgit-blob-b6cab252432e211dec693fc77d036c15259a8087%2F1.PNG?alt=media + - https://3149836655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8KDxOujDoPpJyJJ5_i%2Fuploads%2Fgit-blob-9390768b0cbb83b1e7da55c0ae13ecd2d8fcb114%2F2.PNG?alt=media + - https://3149836655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8KDxOujDoPpJyJJ5_i%2Fuploads%2Fgit-blob-dfc8d803dcd6546622888f399d94af9c6bbdbe60%2F6.PNG?alt=media +tags: + - files + - browser diff --git a/community/jellyseerr/1.0.0/Chart.lock b/community/jellyseerr/1.0.0/Chart.lock new file mode 100644 index 0000000000..44d8198f07 --- /dev/null +++ b/community/jellyseerr/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.8 +digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad +generated: "2023-06-22T16:50:21.570951209+03:00" diff --git a/community/jellyseerr/1.0.0/Chart.yaml b/community/jellyseerr/1.0.0/Chart.yaml new file mode 100644 index 0000000000..3200cdd06e --- /dev/null +++ b/community/jellyseerr/1.0.0/Chart.yaml @@ -0,0 +1,25 @@ +name: jellyseerr +description: Jellyseerr is a free and open source software application for managing requests for your media library. +annotations: + title: Jellyseerr +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: 1.5.0 +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.0.8 +home: https://github.com/Fallenbagel/jellyseerr +icon: https://github.com/Fallenbagel/jellyseerr/raw/develop/public/logo_full.svg +sources: + - https://github.com/Fallenbagel/jellyseerr + - https://github.com/truenas/charts/tree/master/community/jellyseerr + - https://hub.docker.com/r/fallenbagel/jellyseerr +keywords: + - media diff --git a/community/jellyseerr/1.0.0/README.md b/community/jellyseerr/1.0.0/README.md new file mode 100644 index 0000000000..68e1f980c7 --- /dev/null +++ b/community/jellyseerr/1.0.0/README.md @@ -0,0 +1,8 @@ +# Jellyseerr + +[Jellyseerr](https://github.com/Fallenbagel/jellyseerr) is a free and open source software application for managing requests for your media library. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Jellyseerr` directories. +> Afterward, the `Jellyseerr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/jellyseerr/1.0.0/app-readme.md b/community/jellyseerr/1.0.0/app-readme.md new file mode 100644 index 0000000000..68e1f980c7 --- /dev/null +++ b/community/jellyseerr/1.0.0/app-readme.md @@ -0,0 +1,8 @@ +# Jellyseerr + +[Jellyseerr](https://github.com/Fallenbagel/jellyseerr) is a free and open source software application for managing requests for your media library. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Jellyseerr` directories. +> Afterward, the `Jellyseerr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/jellyseerr/1.0.0/charts/common-1.0.8.tgz b/community/jellyseerr/1.0.0/charts/common-1.0.8.tgz new file mode 100644 index 0000000000..ad7c8d5e89 Binary files /dev/null and b/community/jellyseerr/1.0.0/charts/common-1.0.8.tgz differ diff --git a/community/jellyseerr/1.0.0/ci/basic-values.yaml b/community/jellyseerr/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..b36db557e1 --- /dev/null +++ b/community/jellyseerr/1.0.0/ci/basic-values.yaml @@ -0,0 +1,11 @@ +jellyseerrNetwork: + webPort: 31000 + +jellyseerrRunAs: + user: 1000 + group: 1000 + +jellyseerrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/jellyseerr/1.0.0/ci/hostNet-values.yaml b/community/jellyseerr/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..beddfd4de4 --- /dev/null +++ b/community/jellyseerr/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,8 @@ +jellyseerrNetwork: + webPort: 30000 + hostNetwork: true + +jellyseerrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/jellyseerr/1.0.0/ix_values.yaml b/community/jellyseerr/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..398ec94c3d --- /dev/null +++ b/community/jellyseerr/1.0.0/ix_values.yaml @@ -0,0 +1,25 @@ +image: + repository: fallenbagel/jellyseerr + pullPolicy: IfNotPresent + tag: 1.5.0 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +jellyseerrConfig: + additionalEnvs: [] + +jellyseerrNetwork: + webPort: 30042 + hostNetwork: false + +jellyseerrRunAs: + user: 568 + group: 568 + +jellyseerrStorage: + config: + type: ixVolume + datasetName: config diff --git a/community/jellyseerr/1.0.0/metadata.yaml b/community/jellyseerr/1.0.0/metadata.yaml new file mode 100644 index 0000000000..84c7cfaf69 --- /dev/null +++ b/community/jellyseerr/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: jellyseerr + groupName: jellyseerr + gid: 568 + uid: 568 + description: Jellyseerr can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/jellyseerr/1.0.0/questions.yaml b/community/jellyseerr/1.0.0/questions.yaml new file mode 100644 index 0000000000..7fbc6fd3ed --- /dev/null +++ b/community/jellyseerr/1.0.0/questions.yaml @@ -0,0 +1,178 @@ +groups: + - name: Jellyseerr Configuration + description: Configure Jellyseerr + - name: User and Group Configuration + description: Configure User and Group for Jellyseerr + - name: Network Configuration + description: Configure Network for Jellyseerr + - name: Storage Configuration + description: Configure Storage for Jellyseerr + - name: Resources Configuration + description: Configure Resources for Jellyseerr + +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: Jellyseerr Configuration + label: Timezone + schema: + type: string + default: Etc/UTC + required: true + $ref: + - definitions/timezone + + - variable: jellyseerrConfig + label: "" + group: Jellyseerr Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Jellyseerr. + 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: jellyseerrRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Jellyseerr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Jellyseerr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: jellyseerrNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Jellyseerr Web UI. + schema: + type: int + default: 30042 + 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: jellyseerrStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Jellyseerr Config Storage + description: The path to store Jellyseerr Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + 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 Jellyseerr. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Jellyseerr. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/jellyseerr/1.0.0/templates/NOTES.txt b/community/jellyseerr/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/jellyseerr/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/jellyseerr/1.0.0/templates/_overseerr.tpl b/community/jellyseerr/1.0.0/templates/_overseerr.tpl new file mode 100644 index 0000000000..1c42753db7 --- /dev/null +++ b/community/jellyseerr/1.0.0/templates/_overseerr.tpl @@ -0,0 +1,84 @@ +{{- define "jellyseerr.workload" -}} +workload: + jellyseerr: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.jellyseerrNetwork.hostNetwork }} + containers: + jellyseerr: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.jellyseerrRunAs.user }} + runAsGroup: {{ .Values.jellyseerrRunAs.group }} + env: + PORT: {{ .Values.jellyseerrNetwork.webPort }} + {{ with .Values.jellyseerrConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: {{ .Values.jellyseerrNetwork.webPort }} + path: /api/v1/status + readiness: + enabled: true + type: http + port: {{ .Values.jellyseerrNetwork.webPort }} + path: /api/v1/status + startup: + enabled: true + type: http + port: {{ .Values.jellyseerrNetwork.webPort }} + path: /api/v1/status + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.jellyseerrRunAs.user + "GID" .Values.jellyseerrRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} + +{{/* Service */}} +service: + jellyseerr: + enabled: true + primary: true + type: NodePort + targetSelector: jellyseerr + ports: + webui: + enabled: true + primary: true + port: {{ .Values.jellyseerrNetwork.webPort }} + nodePort: {{ .Values.jellyseerrNetwork.webPort }} + targetSelector: jellyseerr + +{{/* Persistence */}} +persistence: + config: + enabled: true + type: {{ .Values.jellyseerrStorage.config.type }} + datasetName: {{ .Values.jellyseerrStorage.config.datasetName | default "" }} + hostPath: {{ .Values.jellyseerrStorage.config.hostPath | default "" }} + targetSelector: + jellyseerr: + jellyseerr: + mountPath: /app/config + 01-permissions: + mountPath: /mnt/directories/config + tmp: + enabled: true + type: emptyDir + targetSelector: + jellyseerr: + jellyseerr: + mountPath: /tmp +{{- end -}} diff --git a/community/jellyseerr/1.0.0/templates/_portal.tpl b/community/jellyseerr/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..c98797db8b --- /dev/null +++ b/community/jellyseerr/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "jellyseerr.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.jellyseerrNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/jellyseerr/1.0.0/templates/common.yaml b/community/jellyseerr/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..d135b481c7 --- /dev/null +++ b/community/jellyseerr/1.0.0/templates/common.yaml @@ -0,0 +1,9 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "jellyseerr.workload" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "jellyseerr.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/jellyseerr/item.yaml b/community/jellyseerr/item.yaml new file mode 100644 index 0000000000..d243bdb8ae --- /dev/null +++ b/community/jellyseerr/item.yaml @@ -0,0 +1,10 @@ +icon_url: https://github.com/Fallenbagel/jellyseerr/raw/develop/public/logo_full.svg +categories: + - media +screenshots: + - https://github.com/Fallenbagel/jellyseerr/raw/develop/public/preview.jpg +tags: + - tv + - movies + - requests + - series diff --git a/community/navidrome/1.0.0/Chart.lock b/community/navidrome/1.0.0/Chart.lock new file mode 100644 index 0000000000..5b29c2142e --- /dev/null +++ b/community/navidrome/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.8 +digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad +generated: "2023-06-23T20:43:05.276871905+03:00" diff --git a/community/navidrome/1.0.0/Chart.yaml b/community/navidrome/1.0.0/Chart.yaml new file mode 100644 index 0000000000..958a8a1262 --- /dev/null +++ b/community/navidrome/1.0.0/Chart.yaml @@ -0,0 +1,26 @@ +name: navidrome +description: Navidrome is a personal streaming service +annotations: + title: Navidrome +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '0.49.3' +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.0.8 +home: https://www.navidrome.org/ +icon: https://github.com/navidrome/navidrome/raw/master/resources/logo-192x192.png +sources: + - https://hub.docker.com/r/deluan/navidrome + - https://github.com/truenas/charts/tree/master/community/navidrome + - https://github.com/navidrome/navidrome/ +keywords: + - media + - music diff --git a/community/navidrome/1.0.0/README.md b/community/navidrome/1.0.0/README.md new file mode 100644 index 0000000000..00338e154d --- /dev/null +++ b/community/navidrome/1.0.0/README.md @@ -0,0 +1,11 @@ +# Navidrome + +[Navidrome](https://www.navidrome.org/) is a personal streaming service + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Navidrome` directories. +> Afterward, the `Navidrome` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. + +Additional configuration options can be defined via environment variables. +See more information on the [Navidrome Documentation](https://www.navidrome.org/docs/usage/configuration-options) diff --git a/community/navidrome/1.0.0/app-readme.md b/community/navidrome/1.0.0/app-readme.md new file mode 100644 index 0000000000..00338e154d --- /dev/null +++ b/community/navidrome/1.0.0/app-readme.md @@ -0,0 +1,11 @@ +# Navidrome + +[Navidrome](https://www.navidrome.org/) is a personal streaming service + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Navidrome` directories. +> Afterward, the `Navidrome` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. + +Additional configuration options can be defined via environment variables. +See more information on the [Navidrome Documentation](https://www.navidrome.org/docs/usage/configuration-options) diff --git a/community/navidrome/1.0.0/charts/common-1.0.8.tgz b/community/navidrome/1.0.0/charts/common-1.0.8.tgz new file mode 100644 index 0000000000..aa83a82783 Binary files /dev/null and b/community/navidrome/1.0.0/charts/common-1.0.8.tgz differ diff --git a/community/navidrome/1.0.0/ci/basic-values.yaml b/community/navidrome/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..af21d50315 --- /dev/null +++ b/community/navidrome/1.0.0/ci/basic-values.yaml @@ -0,0 +1,10 @@ +navidromeStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data + music: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/music + +navidromeConfig: + uiWelcomeMessage: 'Welcome to Navidrome!' diff --git a/community/navidrome/1.0.0/ci/other-user-values.yaml b/community/navidrome/1.0.0/ci/other-user-values.yaml new file mode 100644 index 0000000000..8b95c42cd7 --- /dev/null +++ b/community/navidrome/1.0.0/ci/other-user-values.yaml @@ -0,0 +1,11 @@ +navidromeStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data + music: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/music + +navidromeRunAs: + user: 1000 + group: 1000 diff --git a/community/navidrome/1.0.0/ix_values.yaml b/community/navidrome/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..ff520c8065 --- /dev/null +++ b/community/navidrome/1.0.0/ix_values.yaml @@ -0,0 +1,30 @@ +image: + repository: deluan/navidrome + pullPolicy: IfNotPresent + tag: '0.49.3' + +resources: + limits: + cpu: 4000m + memory: 8Gi + +navidromeConfig: + uiWelcomeMessage: '' + additionalEnvs: [] + +navidromeNetwork: + webPort: 30043 + hostNetwork: false + +navidromeRunAs: + user: 568 + group: 568 + +navidromeStorage: + data: + type: ixVolume + datasetName: data + music: + type: ixVolume + datasetName: music + additionalStorages: [] diff --git a/community/navidrome/1.0.0/metadata.yaml b/community/navidrome/1.0.0/metadata.yaml new file mode 100644 index 0000000000..51d3433303 --- /dev/null +++ b/community/navidrome/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: navidrome + groupName: navidrome + gid: 568 + uid: 568 + description: Navidrome can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/navidrome/1.0.0/questions.yaml b/community/navidrome/1.0.0/questions.yaml new file mode 100644 index 0000000000..0d97c51ca5 --- /dev/null +++ b/community/navidrome/1.0.0/questions.yaml @@ -0,0 +1,262 @@ +groups: + - name: Navidrome Configuration + description: Configure Navidrome + - name: User and Group Configuration + description: Configure User and Group for Navidrome + - name: Network Configuration + description: Configure Network for Navidrome + - name: Storage Configuration + description: Configure Storage for Navidrome + - name: Resources Configuration + description: Configure Resources for Navidrome + +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: navidromeConfig + label: "" + group: Navidrome Configuration + schema: + type: dict + attrs: + - variable: uiWelcomeMessage + label: Login Screen Welcome Message + description: The welcome message to display on the Navidrome Login Screen. + schema: + type: string + default: "" + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Navidrome. + 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: navidromeRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Navidrome will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Navidrome will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: navidromeNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Navidrome Web UI. + schema: + type: int + default: 30043 + 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: navidromeStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: Navidrome Data Storage + description: The path to store Navidrome Data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "data" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: music + label: Navidrome Music Storage + description: The path to store Navidrome Music. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "music" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Navidrome. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Navidrome. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Navidrome. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/navidrome/1.0.0/templates/NOTES.txt b/community/navidrome/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/navidrome/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/navidrome/1.0.0/templates/_navidrome.tpl b/community/navidrome/1.0.0/templates/_navidrome.tpl new file mode 100644 index 0000000000..18b3b836ea --- /dev/null +++ b/community/navidrome/1.0.0/templates/_navidrome.tpl @@ -0,0 +1,51 @@ +{{- define "navidrome.workload" -}} +workload: + navidrome: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.navidromeNetwork.hostNetwork }} + containers: + navidrome: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.navidromeRunAs.user }} + runAsGroup: {{ .Values.navidromeRunAs.group }} + env: + ND_MUSICFOLDER: /music + ND_DATAFOLDER: /data + ND_PORT: {{ .Values.navidromeNetwork.webPort | quote }} + ND_UIWELCOMEMESSAGE: {{ .Values.navidromeConfig.uiWelcomeMessage }} + {{ with .Values.navidromeConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: "{{ .Values.navidromeNetwork.webPort }}" + path: /ping + readiness: + enabled: true + type: http + port: "{{ .Values.navidromeNetwork.webPort }}" + path: /ping + startup: + enabled: true + type: http + port: "{{ .Values.navidromeNetwork.webPort }}" + path: /ping + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.navidromeRunAs.user + "GID" .Values.navidromeRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} +{{- end -}} diff --git a/community/navidrome/1.0.0/templates/_persistence.tpl b/community/navidrome/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..4f000a2e1b --- /dev/null +++ b/community/navidrome/1.0.0/templates/_persistence.tpl @@ -0,0 +1,38 @@ +{{- define "navidrome.persistence" -}} +persistence: + data: + enabled: true + type: {{ .Values.navidromeStorage.data.type }} + datasetName: {{ .Values.navidromeStorage.data.datasetName | default "" }} + hostPath: {{ .Values.navidromeStorage.data.hostPath | default "" }} + targetSelector: + navidrome: + navidrome: + mountPath: /data + 01-permissions: + mountPath: /mnt/directories/data + music: + enabled: true + type: {{ .Values.navidromeStorage.music.type }} + datasetName: {{ .Values.navidromeStorage.music.datasetName | default "" }} + hostPath: {{ .Values.navidromeStorage.music.hostPath | default "" }} + targetSelector: + navidrome: + navidrome: + mountPath: /music + 01-permissions: + mountPath: /mnt/directories/music + {{- range $idx, $storage := .Values.navidromeStorage.additionalStorages }} + {{ printf "navidrome-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + navidrome: + navidrome: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/navidrome/1.0.0/templates/_portal.tpl b/community/navidrome/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..1b3a317dfb --- /dev/null +++ b/community/navidrome/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "navidrome.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.navidromeNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/navidrome/1.0.0/templates/_service.tpl b/community/navidrome/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..06b239d97b --- /dev/null +++ b/community/navidrome/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "navidrome.service" -}} +service: + navidrome: + enabled: true + primary: true + type: NodePort + targetSelector: navidrome + ports: + webui: + enabled: true + primary: true + port: {{ .Values.navidromeNetwork.webPort }} + nodePort: {{ .Values.navidromeNetwork.webPort }} + targetSelector: navidrome +{{- end -}} diff --git a/community/navidrome/1.0.0/templates/common.yaml b/community/navidrome/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..f8b1cc2b79 --- /dev/null +++ b/community/navidrome/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "navidrome.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "navidrome.persistence" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "navidrome.service" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "navidrome.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/navidrome/item.yaml b/community/navidrome/item.yaml new file mode 100644 index 0000000000..d5b234bad6 --- /dev/null +++ b/community/navidrome/item.yaml @@ -0,0 +1,7 @@ +icon_url: https://github.com/navidrome/navidrome/raw/master/resources/logo-192x192.png +categories: + - media +screenshots: + - https://noted.lol/content/images/size/w1000/2022/05/navidrome-self-hosted-main-1.png +tags: + - music diff --git a/community/readarr/1.0.0/Chart.lock b/community/readarr/1.0.0/Chart.lock new file mode 100644 index 0000000000..2779615277 --- /dev/null +++ b/community/readarr/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.9 +digest: sha256:c3eb00f142d5d1cdbff7843940c150a00bd916520363e6ee9f459ce61fa92b40 +generated: "2023-06-28T15:39:05.334080122+03:00" diff --git a/community/readarr/1.0.0/Chart.yaml b/community/readarr/1.0.0/Chart.yaml new file mode 100644 index 0000000000..ec17455a07 --- /dev/null +++ b/community/readarr/1.0.0/Chart.yaml @@ -0,0 +1,27 @@ +name: readarr +description: Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. +annotations: + title: Readarr +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '0.1.9.1905' +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.0.9 +home: https://github.com/Readarr/Readarr +icon: https://raw.githubusercontent.com/Readarr/Readarr/develop/Logo/256.png +sources: + - https://github.com/onedr0p/containers/tree/main/apps/readarr + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/readarr + - https://github.com/Readarr/Readarr +keywords: + - media + - ebook + - audiobook diff --git a/community/readarr/1.0.0/README.md b/community/readarr/1.0.0/README.md new file mode 100644 index 0000000000..5cc2f44111 --- /dev/null +++ b/community/readarr/1.0.0/README.md @@ -0,0 +1,8 @@ +# Readarr + +[Readarr](https://github.com/Readarr/Readarr) is an ebook and audiobook collection manager for Usenet and BitTorrent users. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Readarr` directories. +> Afterward, the `Readarr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/readarr/1.0.0/app-readme.md b/community/readarr/1.0.0/app-readme.md new file mode 100644 index 0000000000..5cc2f44111 --- /dev/null +++ b/community/readarr/1.0.0/app-readme.md @@ -0,0 +1,8 @@ +# Readarr + +[Readarr](https://github.com/Readarr/Readarr) is an ebook and audiobook collection manager for Usenet and BitTorrent users. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Readarr` directories. +> Afterward, the `Readarr` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/readarr/1.0.0/charts/common-1.0.9.tgz b/community/readarr/1.0.0/charts/common-1.0.9.tgz new file mode 100644 index 0000000000..e8718311e9 Binary files /dev/null and b/community/readarr/1.0.0/charts/common-1.0.9.tgz differ diff --git a/community/readarr/1.0.0/ci/basic-values.yaml b/community/readarr/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..d7a56366e6 --- /dev/null +++ b/community/readarr/1.0.0/ci/basic-values.yaml @@ -0,0 +1,11 @@ +readarrNetwork: + webPort: 31000 + +readarrRunAs: + user: 1000 + group: 1000 + +readarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/readarr/1.0.0/ci/extra-values.yaml b/community/readarr/1.0.0/ci/extra-values.yaml new file mode 100644 index 0000000000..cd011c60cb --- /dev/null +++ b/community/readarr/1.0.0/ci/extra-values.yaml @@ -0,0 +1,21 @@ +readarrConfig: + additionalEnvs: + - name: READARR__API_KEY + value: some-long-api-key + - name: READARR__LOG_LEVEL + value: error + +readarrNetwork: + webPort: 31000 + +readarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config + additionalStorages: + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/pop_music + mountPath: /pop_music + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/country_music + mountPath: /country_music diff --git a/community/readarr/1.0.0/ci/hostNet-values.yaml b/community/readarr/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..d05f6099bc --- /dev/null +++ b/community/readarr/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,8 @@ +readarrNetwork: + webPort: 30000 + hostNetwork: true + +readarrStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/readarr/1.0.0/ix_values.yaml b/community/readarr/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..8b9241de85 --- /dev/null +++ b/community/readarr/1.0.0/ix_values.yaml @@ -0,0 +1,24 @@ +image: + repository: ghcr.io/onedr0p/readarr-develop + pullPolicy: IfNotPresent + tag: '0.1.9.1905' + +resources: + limits: + cpu: 4000m + memory: 8Gi + +readarrConfig: + instanceName: Readarr + additionalEnvs: [] +readarrNetwork: + webPort: 30045 + hostNetwork: false +readarrRunAs: + user: 568 + group: 568 +readarrStorage: + config: + type: ixVolume + datasetName: config + additionalStorages: [] diff --git a/community/readarr/1.0.0/metadata.yaml b/community/readarr/1.0.0/metadata.yaml new file mode 100644 index 0000000000..02724e1d52 --- /dev/null +++ b/community/readarr/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: readarr + groupName: readarr + gid: 568 + uid: 568 + description: Readarr can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/readarr/1.0.0/questions.yaml b/community/readarr/1.0.0/questions.yaml new file mode 100644 index 0000000000..49d8d354db --- /dev/null +++ b/community/readarr/1.0.0/questions.yaml @@ -0,0 +1,225 @@ +groups: + - name: Readarr Configuration + description: Configure Readarr + - name: User and Group Configuration + description: Configure User and Group for Readarr + - name: Network Configuration + description: Configure Network for Readarr + - name: Storage Configuration + description: Configure Storage for Readarr + - name: Resources Configuration + description: Configure Resources for Readarr + +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: readarrConfig + label: "" + group: Readarr Configuration + schema: + type: dict + attrs: + - variable: instanceName + label: Instance Name + description: The name of the Readarr instance. + schema: + type: string + default: "Readarr" + required: true + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Readarr. + 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: readarrRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Readarr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Readarr will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: readarrNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Readarr Web UI. + schema: + type: int + default: 30045 + 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: readarrStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Readarr Config Storage + description: The path to store Readarr Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Readarr. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Readarr. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Readarr. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/readarr/1.0.0/templates/NOTES.txt b/community/readarr/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/readarr/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/readarr/1.0.0/templates/_persistence.tpl b/community/readarr/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..23d197a77e --- /dev/null +++ b/community/readarr/1.0.0/templates/_persistence.tpl @@ -0,0 +1,34 @@ +{{- define "readarr.persistence" -}} +persistence: + config: + enabled: true + type: {{ .Values.readarrStorage.config.type }} + datasetName: {{ .Values.readarrStorage.config.datasetName | default "" }} + hostPath: {{ .Values.readarrStorage.config.hostPath | default "" }} + targetSelector: + readarr: + readarr: + mountPath: /config + 01-permissions: + mountPath: /mnt/directories/config + tmp: + enabled: true + type: emptyDir + targetSelector: + readarr: + readarr: + mountPath: /tmp + {{- range $idx, $storage := .Values.readarrStorage.additionalStorages }} + {{ printf "readarr-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + readarr: + readarr: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/readarr/1.0.0/templates/_portal.tpl b/community/readarr/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..f162546f6a --- /dev/null +++ b/community/readarr/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "readarr.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.readarrNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/readarr/1.0.0/templates/_readarr.tpl b/community/readarr/1.0.0/templates/_readarr.tpl new file mode 100644 index 0000000000..9088a03642 --- /dev/null +++ b/community/readarr/1.0.0/templates/_readarr.tpl @@ -0,0 +1,49 @@ +{{- define "readarr.workload" -}} +workload: + readarr: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.readarrNetwork.hostNetwork }} + containers: + readarr: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.readarrRunAs.user }} + runAsGroup: {{ .Values.readarrRunAs.group }} + env: + READARR__PORT: {{ .Values.readarrNetwork.webPort }} + READARR__INSTANCE_NAME: {{ .Values.readarrConfig.instanceName }} + {{ with .Values.readarrConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: "{{ .Values.readarrNetwork.webPort }}" + path: /ping + readiness: + enabled: true + type: http + port: "{{ .Values.readarrNetwork.webPort }}" + path: /ping + startup: + enabled: true + type: http + port: "{{ .Values.readarrNetwork.webPort }}" + path: /ping + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.readarrRunAs.user + "GID" .Values.readarrRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} +{{- end -}} diff --git a/community/readarr/1.0.0/templates/_service.tpl b/community/readarr/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..28f7a8661f --- /dev/null +++ b/community/readarr/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "readarr.service" -}} +service: + readarr: + enabled: true + primary: true + type: NodePort + targetSelector: readarr + ports: + webui: + enabled: true + primary: true + port: {{ .Values.readarrNetwork.webPort }} + nodePort: {{ .Values.readarrNetwork.webPort }} + targetSelector: readarr +{{- end -}} diff --git a/community/readarr/1.0.0/templates/common.yaml b/community/readarr/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..eb97b411dc --- /dev/null +++ b/community/readarr/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "readarr.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "readarr.service" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "readarr.persistence" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "readarr.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/readarr/item.yaml b/community/readarr/item.yaml new file mode 100644 index 0000000000..84aaf29d0c --- /dev/null +++ b/community/readarr/item.yaml @@ -0,0 +1,10 @@ +icon_url: https://raw.githubusercontent.com/Readarr/Readarr/develop/Logo/256.png +categories: + - media +screenshots: + - https://readarr.com/img/features/manualsearch.png + - https://readarr.com/img/features/calibre.png + - https://readarr.com/img/features/calendar.png +tags: + - ebook + - audiobook diff --git a/community/redis/1.0.0/Chart.lock b/community/redis/1.0.0/Chart.lock new file mode 100644 index 0000000000..2f3ddf5b76 --- /dev/null +++ b/community/redis/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.9 +digest: sha256:c3eb00f142d5d1cdbff7843940c150a00bd916520363e6ee9f459ce61fa92b40 +generated: "2023-06-29T16:01:12.464571053+03:00" diff --git a/community/redis/1.0.0/Chart.yaml b/community/redis/1.0.0/Chart.yaml new file mode 100644 index 0000000000..9bb7074109 --- /dev/null +++ b/community/redis/1.0.0/Chart.yaml @@ -0,0 +1,25 @@ +name: redis +description: Redis. The open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker. +annotations: + title: Redis +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: 7.0.11 +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.0.9 +home: https://redis.io/ +icon: https://avatars.githubusercontent.com/u/1529926?s=200&v=4 +sources: + - https://hub.docker.com/r/bitnami/redis + - https://github.com/bitnami/containers/tree/main/bitnami/redis + - https://redis.io/ +keywords: + - cache diff --git a/community/redis/1.0.0/README.md b/community/redis/1.0.0/README.md new file mode 100644 index 0000000000..8520dd896c --- /dev/null +++ b/community/redis/1.0.0/README.md @@ -0,0 +1,8 @@ +# Redis + +[Redis](https://redis.io/). The open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Redis` directories. +> Afterward, the `Redis` container will run as a **non**-root user (`1001`) and root group. +> All mounted storage(s) will be `chown`ed only if the parent directory does not match `1001` user. diff --git a/community/redis/1.0.0/app-readme.md b/community/redis/1.0.0/app-readme.md new file mode 100644 index 0000000000..8520dd896c --- /dev/null +++ b/community/redis/1.0.0/app-readme.md @@ -0,0 +1,8 @@ +# Redis + +[Redis](https://redis.io/). The open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Redis` directories. +> Afterward, the `Redis` container will run as a **non**-root user (`1001`) and root group. +> All mounted storage(s) will be `chown`ed only if the parent directory does not match `1001` user. diff --git a/community/redis/1.0.0/charts/common-1.0.9.tgz b/community/redis/1.0.0/charts/common-1.0.9.tgz new file mode 100644 index 0000000000..c10e7bc035 Binary files /dev/null and b/community/redis/1.0.0/charts/common-1.0.9.tgz differ diff --git a/community/redis/1.0.0/ci/basic-values.yaml b/community/redis/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..8be87344f9 --- /dev/null +++ b/community/redis/1.0.0/ci/basic-values.yaml @@ -0,0 +1,7 @@ +redisStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data + +redisConfig: + password: pass diff --git a/community/redis/1.0.0/ci/no-password-values.yaml b/community/redis/1.0.0/ci/no-password-values.yaml new file mode 100644 index 0000000000..7e6d30acf8 --- /dev/null +++ b/community/redis/1.0.0/ci/no-password-values.yaml @@ -0,0 +1,7 @@ +redisStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data + +redisConfig: + allowEmptyPassword: true diff --git a/community/redis/1.0.0/ix_values.yaml b/community/redis/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..13976a7c63 --- /dev/null +++ b/community/redis/1.0.0/ix_values.yaml @@ -0,0 +1,23 @@ +image: + repository: bitnami/redis + pullPolicy: IfNotPresent + tag: 7.0.11 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +redisConfig: + allowEmptyPassword: false + password: '' + additionalEnvs: [] + +redisNetwork: + hostNetwork: false + redisPort: 30036 + +redisStorage: + data: + type: ixVolume + datasetName: data diff --git a/community/redis/1.0.0/metadata.yaml b/community/redis/1.0.0/metadata.yaml new file mode 100644 index 0000000000..05c8762b70 --- /dev/null +++ b/community/redis/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: redis + groupName: root + gid: 1001 + uid: 0 + description: Redis runs as a non-root user and root group. +capabilities: [] +hostMounts: [] diff --git a/community/redis/1.0.0/questions.yaml b/community/redis/1.0.0/questions.yaml new file mode 100644 index 0000000000..feb8500865 --- /dev/null +++ b/community/redis/1.0.0/questions.yaml @@ -0,0 +1,131 @@ +groups: + - name: Redis Configuration + description: Configure Redis + - name: Network Configuration + description: Configure Network for Redis + - name: Storage Configuration + description: Configure Storage for Redis + - name: Resources Configuration + description: Configure Resources for Redis + +questions: + - variable: redisConfig + label: "" + group: Redis Configuration + schema: + type: dict + attrs: + - variable: allowEmptyPassword + label: Allow Empty Password + description: | + Allow empty password for Redis.
+ It's recommended to keep this disabled. + schema: + type: boolean + default: false + - variable: password + label: Password + description: Password for Redis. + schema: + type: string + required: true + private: true + # Character @ is not allowed in password + valid_chars: '^((?!@).)*$' + valid_chars_error: "Character @ is not allowed in password" + show_if: [[ "allowEmptyPassword", "=", false ]] + default: "" + + - variable: redisNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: hostNetwork + label: Host Network + description: | + Bind to the host network. It's recommended to keep this disabled.
+ schema: + type: boolean + default: false + - variable: redisPort + label: Redis Port + description: The port for Redis. + schema: + type: int + default: 30036 + min: 9000 + max: 65535 + required: true + + - variable: redisStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: Redis Data Storage + description: The path to store Redis Data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "data" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + 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 Redis. + schema: + type: string + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Redis. + schema: + type: string + default: "8Gi" + required: true diff --git a/community/redis/1.0.0/templates/NOTES.txt b/community/redis/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/redis/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/redis/1.0.0/templates/_configuration.tpl b/community/redis/1.0.0/templates/_configuration.tpl new file mode 100644 index 0000000000..042d191462 --- /dev/null +++ b/community/redis/1.0.0/templates/_configuration.tpl @@ -0,0 +1,11 @@ +{{- define "redis.configuration" -}} +configmap: + config: + enabled: true + data: + REDIS_PORT_NUMBER: {{ .Values.redisNetwork.redisPort | quote }} + ALLOW_EMPTY_PASSWORD: {{ ternary "yes" "no" .Values.redisConfig.allowEmptyPassword | quote }} + {{- if not .Values.redisConfig.allowEmptyPassword }} + REDIS_PASSWORD: {{ .Values.redisConfig.password | quote }} + {{- end }} +{{- end -}} diff --git a/community/redis/1.0.0/templates/_redis.tpl b/community/redis/1.0.0/templates/_redis.tpl new file mode 100644 index 0000000000..2b38ec68ae --- /dev/null +++ b/community/redis/1.0.0/templates/_redis.tpl @@ -0,0 +1,101 @@ +{{- define "redis.workload" -}} +workload: + redis: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.redisNetwork.hostNetwork }} + securityContext: + fsGroup: 1001 + containers: + redis: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: 1001 + runAsGroup: 0 + runAsNonRoot: false + readOnlyRootFilesystem: false + envFrom: + - configMapRef: + name: config + {{ with .Values.redisConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + {{ $args := printf "-p %v" .Values.redisNetwork.redisPort }} + {{ if not .Values.redisConfig.allowEmptyPassword }} + {{ $args = printf "%v -a %v" $args .Values.redisConfig.password }} + {{ end }} + liveness: + enabled: true + type: exec + command: + - /bin/sh + - -c + - | + redis-cli {{ $args }} ping | grep -q PONG + readiness: + enabled: true + type: exec + command: + - /bin/sh + - -c + - | + redis-cli {{ $args }} ping | grep -q PONG + startup: + enabled: true + type: exec + command: + - /bin/sh + - -c + - | + redis-cli {{ $args }} ping | grep -q PONG + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" 1001 + "GID" 1001 + "mode" "check" + "type" "init") | nindent 8 }} +{{/* Service */}} +service: + redis: + enabled: true + primary: true + type: NodePort + targetSelector: redis + ports: + redis: + enabled: true + primary: true + port: {{ .Values.redisNetwork.redisPort }} + nodePort: {{ .Values.redisNetwork.redisPort }} + targetSelector: redis + +{{/* Persistence */}} +persistence: + data: + enabled: true + type: {{ .Values.redisStorage.data.type }} + datasetName: {{ .Values.redisStorage.data.datasetName | default "" }} + hostPath: {{ .Values.redisStorage.data.hostPath | default "" }} + targetSelector: + redis: + redis: + mountPath: /bitnami/redis/data + 01-permissions: + mountPath: /mnt/directories/data + tmp: + enabled: true + type: emptyDir + targetSelector: + redis: + redis: + mountPath: /tmp +{{- end -}} diff --git a/community/redis/1.0.0/templates/_validation.tpl b/community/redis/1.0.0/templates/_validation.tpl new file mode 100644 index 0000000000..7ffd67e167 --- /dev/null +++ b/community/redis/1.0.0/templates/_validation.tpl @@ -0,0 +1,11 @@ +{{- define "redis.validation" -}} + {{- if not .Values.redisConfig.allowEmptyPassword -}} + {{- if not .Values.redisConfig.password -}} + {{- fail "Redis - Field [Password] is required when [Allow Empty Password] is false" -}} + {{- end -}} + {{- if contains "@" .Values.redisConfig.password -}} + {{- fail "Redis - Field [Password] cannot contain '@'" -}} + {{- end -}} + {{- end -}} + +{{- end -}} diff --git a/community/redis/1.0.0/templates/common.yaml b/community/redis/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..1cc8104b14 --- /dev/null +++ b/community/redis/1.0.0/templates/common.yaml @@ -0,0 +1,8 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- include "redis.validation" $ -}} +{{- $_ := mustMergeOverwrite .Values (include "redis.configuration" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "redis.workload" $ | fromYaml) -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/redis/item.yaml b/community/redis/item.yaml new file mode 100644 index 0000000000..a7a20f4d61 --- /dev/null +++ b/community/redis/item.yaml @@ -0,0 +1,6 @@ +icon_url: https://avatars.githubusercontent.com/u/1529926?s=200&v=4 +screenshots: [] +categories: + - database +tags: + - cache diff --git a/community/tautulli/1.0.0/Chart.lock b/community/tautulli/1.0.0/Chart.lock new file mode 100644 index 0000000000..ae581f4cec --- /dev/null +++ b/community/tautulli/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.9 +digest: sha256:c3eb00f142d5d1cdbff7843940c150a00bd916520363e6ee9f459ce61fa92b40 +generated: "2023-06-29T18:41:24.595112921+03:00" diff --git a/community/tautulli/1.0.0/Chart.yaml b/community/tautulli/1.0.0/Chart.yaml new file mode 100644 index 0000000000..0618ffdb32 --- /dev/null +++ b/community/tautulli/1.0.0/Chart.yaml @@ -0,0 +1,27 @@ +name: tautulli +description: Tautulli is a python based web application for monitoring, analytics and notifications for Plex Media Server. +annotations: + title: Tautulli +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '2.12.4' +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.0.9 +home: https://tautulli.com/ +icon: https://avatars.githubusercontent.com/u/34385001 +sources: + - https://github.com/onedr0p/containers/tree/main/apps/tautulli + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/tautulli + - https://github.com/Tautulli/Tautulli +keywords: + - media + - analytics + - notifications diff --git a/community/tautulli/1.0.0/README.md b/community/tautulli/1.0.0/README.md new file mode 100644 index 0000000000..68da1c4281 --- /dev/null +++ b/community/tautulli/1.0.0/README.md @@ -0,0 +1,8 @@ +# Tautulli + +[Tautulli](https://tautulli.com/) is a python based web application for monitoring, analytics and notifications for Plex Media Server. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Tautulli` directories. +> Afterward, the `Tautulli` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/tautulli/1.0.0/app-readme.md b/community/tautulli/1.0.0/app-readme.md new file mode 100644 index 0000000000..68da1c4281 --- /dev/null +++ b/community/tautulli/1.0.0/app-readme.md @@ -0,0 +1,8 @@ +# Tautulli + +[Tautulli](https://tautulli.com/) is a python based web application for monitoring, analytics and notifications for Plex Media Server. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `Tautulli` directories. +> Afterward, the `Tautulli` container will run as a **non**-root user (Default: `568`). +> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user. diff --git a/community/tautulli/1.0.0/charts/common-1.0.9.tgz b/community/tautulli/1.0.0/charts/common-1.0.9.tgz new file mode 100644 index 0000000000..4230299733 Binary files /dev/null and b/community/tautulli/1.0.0/charts/common-1.0.9.tgz differ diff --git a/community/tautulli/1.0.0/ci/basic-values.yaml b/community/tautulli/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..ff7435ed0c --- /dev/null +++ b/community/tautulli/1.0.0/ci/basic-values.yaml @@ -0,0 +1,11 @@ +tautulliNetwork: + webPort: 31000 + +tautulliRunAs: + user: 1000 + group: 1000 + +tautulliStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/tautulli/1.0.0/ci/hostNet-values.yaml b/community/tautulli/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..b81580d164 --- /dev/null +++ b/community/tautulli/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,8 @@ +tautulliNetwork: + webPort: 30000 + hostNetwork: true + +tautulliStorage: + config: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/config diff --git a/community/tautulli/1.0.0/ix_values.yaml b/community/tautulli/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..ae914895b4 --- /dev/null +++ b/community/tautulli/1.0.0/ix_values.yaml @@ -0,0 +1,26 @@ +image: + repository: ghcr.io/onedr0p/tautulli + pullPolicy: IfNotPresent + tag: '2.12.4' + +resources: + limits: + cpu: 4000m + memory: 8Gi + +tautulliConfig: + additionalEnvs: [] + +tautulliNetwork: + webPort: 30047 + hostNetwork: false + +tautulliRunAs: + user: 568 + group: 568 + +tautulliStorage: + config: + type: ixVolume + datasetName: config + additionalStorages: [] diff --git a/community/tautulli/1.0.0/metadata.yaml b/community/tautulli/1.0.0/metadata.yaml new file mode 100644 index 0000000000..9a7f2ec88a --- /dev/null +++ b/community/tautulli/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: tautulli + groupName: tautulli + gid: 568 + uid: 568 + description: Tautulli can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/community/tautulli/1.0.0/questions.yaml b/community/tautulli/1.0.0/questions.yaml new file mode 100644 index 0000000000..8292a56583 --- /dev/null +++ b/community/tautulli/1.0.0/questions.yaml @@ -0,0 +1,224 @@ +groups: + - name: Tautulli Configuration + description: Configure Tautulli + - name: User and Group Configuration + description: Configure User and Group for Tautulli + - name: Network Configuration + description: Configure Network for Tautulli + - name: Storage Configuration + description: Configure Storage for Tautulli + - name: Resources Configuration + description: Configure Resources for Tautulli + +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: tautulliConfig + label: "" + group: Tautulli Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Tautulli. + 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: tautulliRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Tautulli will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Tautulli will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: tautulliNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Tautulli Web UI. + schema: + type: int + default: 30047 + 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: tautulliStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: config + label: Tautulli Config Storage + description: The path to store Tautulli Configuration. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "config" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Tautulli. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - 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 Tautulli. + schema: + type: string + max_length: 6 + default: "4000m" + valid_chars: '^(0\\.[1-9]|[1-9][0-9]*)(\\.[0-9]|m?)$' + valid_chars_error: 'Valid CPU limit formats are (Plain Integer - eg. 1), (Float - eg. 0.5), (Milicpu - eg. 500m)' + required: true + - variable: memory + label: Memory + description: Memory limit for Tautulli. + 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 (Suffixed with E/P/T/G/M/K - eg. 1G), (Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi), (Plain Integer in bytes - eg. 1024), (Exponent - eg. 134e6)' + default: "8Gi" + required: true diff --git a/community/tautulli/1.0.0/templates/NOTES.txt b/community/tautulli/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/tautulli/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/tautulli/1.0.0/templates/_persistence.tpl b/community/tautulli/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..e301e414d4 --- /dev/null +++ b/community/tautulli/1.0.0/templates/_persistence.tpl @@ -0,0 +1,34 @@ +{{- define "tautulli.persistence" -}} +persistence: + config: + enabled: true + type: {{ .Values.tautulliStorage.config.type }} + datasetName: {{ .Values.tautulliStorage.config.datasetName | default "" }} + hostPath: {{ .Values.tautulliStorage.config.hostPath | default "" }} + targetSelector: + tautulli: + tautulli: + mountPath: /config + 01-permissions: + mountPath: /mnt/directories/config + tmp: + enabled: true + type: emptyDir + targetSelector: + tautulli: + tautulli: + mountPath: /tmp + {{- range $idx, $storage := .Values.tautulliStorage.additionalStorages }} + {{ printf "tautulli-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + tautulli: + tautulli: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/tautulli/1.0.0/templates/_portal.tpl b/community/tautulli/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..6868c71253 --- /dev/null +++ b/community/tautulli/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "tautulli.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.tautulliNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/tautulli/1.0.0/templates/_service.tpl b/community/tautulli/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..e8e4fe8340 --- /dev/null +++ b/community/tautulli/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "tautulli.service" -}} +service: + tautulli: + enabled: true + primary: true + type: NodePort + targetSelector: tautulli + ports: + webui: + enabled: true + primary: true + port: {{ .Values.tautulliNetwork.webPort }} + nodePort: {{ .Values.tautulliNetwork.webPort }} + targetSelector: tautulli +{{- end -}} diff --git a/community/tautulli/1.0.0/templates/_tautulli.tpl b/community/tautulli/1.0.0/templates/_tautulli.tpl new file mode 100644 index 0000000000..8e70105664 --- /dev/null +++ b/community/tautulli/1.0.0/templates/_tautulli.tpl @@ -0,0 +1,51 @@ +{{- define "tautulli.workload" -}} +workload: + tautulli: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.tautulliNetwork.hostNetwork }} + containers: + tautulli: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.tautulliRunAs.user }} + runAsGroup: {{ .Values.tautulliRunAs.group }} + command: + - /entrypoint.sh + args: + - --port + - {{ .Values.tautulliNetwork.webPort | quote }} + {{ with .Values.tautulliConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: "{{ .Values.tautulliNetwork.webPort }}" + path: /status + readiness: + enabled: true + type: http + port: "{{ .Values.tautulliNetwork.webPort }}" + path: /status + startup: + enabled: true + type: http + port: "{{ .Values.tautulliNetwork.webPort }}" + path: /status + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.tautulliRunAs.user + "GID" .Values.tautulliRunAs.group + "mode" "check" + "type" "init") | nindent 8 }} +{{- end -}} diff --git a/community/tautulli/1.0.0/templates/common.yaml b/community/tautulli/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..071bbb6772 --- /dev/null +++ b/community/tautulli/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "tautulli.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "tautulli.persistence" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "tautulli.service" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "tautulli.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/tautulli/item.yaml b/community/tautulli/item.yaml new file mode 100644 index 0000000000..3f619f676a --- /dev/null +++ b/community/tautulli/item.yaml @@ -0,0 +1,11 @@ +icon_url: https://avatars.githubusercontent.com/u/34385001 +categories: + - media +screenshots: + - https://tautulli.com/images/screenshots/activity.png + - https://tautulli.com/images/screenshots/library.png + - https://tautulli.com/images/screenshots/notifications.png + - https://tautulli.com/images/screenshots/users.png +tags: + - analytics + - notifications diff --git a/community/wordpress/1.0.0/Chart.lock b/community/wordpress/1.0.0/Chart.lock new file mode 100644 index 0000000000..f730d2f803 --- /dev/null +++ b/community/wordpress/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.9 +digest: sha256:c3eb00f142d5d1cdbff7843940c150a00bd916520363e6ee9f459ce61fa92b40 +generated: "2023-06-14T18:39:35.751013894+03:00" diff --git a/community/wordpress/1.0.0/Chart.yaml b/community/wordpress/1.0.0/Chart.yaml new file mode 100644 index 0000000000..f66039b925 --- /dev/null +++ b/community/wordpress/1.0.0/Chart.yaml @@ -0,0 +1,25 @@ +name: wordpress +description: Wordpress is a web content management system +annotations: + title: Wordpress +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: '1.19.0' +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.0.9 +home: https://wordpress.org +icon: https://github.com/WordPress/WordPress/blob/master/wp-admin/images/wordpress-logo.png?raw=true +sources: + - https://hub.docker.com/_/wordpress + - https://github.com/truenas/charts/tree/master/community/wordpress +keywords: + - cms + - blog diff --git a/community/wordpress/1.0.0/README.md b/community/wordpress/1.0.0/README.md new file mode 100644 index 0000000000..bde8537dee --- /dev/null +++ b/community/wordpress/1.0.0/README.md @@ -0,0 +1,12 @@ +# Wordpress + +[Wordpress](https://wordpress.org/) is a web content management system. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `wordpress` directories. +> Afterward, the `wordpress` container will run as a **non**-root user (`33`). +> Same applies to the `mariadb` container. This will run afterwards as a **non**-root user (`999`). +> On each upgrade, a container will be launched with **root** privileges in order to apply the correct +> permissions to the `mariadb` **backups** directory. Container that performs the backup will run as a **non**-root user (`999`) afterwards. +> Keep in mind the permissions on the backup directory will be changed to `999:999` on **every** update. +> But will only be changed once for the `wordpress` and `mariadb` data directories. diff --git a/community/wordpress/1.0.0/app-readme.md b/community/wordpress/1.0.0/app-readme.md new file mode 100644 index 0000000000..bde8537dee --- /dev/null +++ b/community/wordpress/1.0.0/app-readme.md @@ -0,0 +1,12 @@ +# Wordpress + +[Wordpress](https://wordpress.org/) is a web content management system. + +> When application is installed, a container will be launched with **root** privileges. +> This is required in order to apply the correct permissions to the `wordpress` directories. +> Afterward, the `wordpress` container will run as a **non**-root user (`33`). +> Same applies to the `mariadb` container. This will run afterwards as a **non**-root user (`999`). +> On each upgrade, a container will be launched with **root** privileges in order to apply the correct +> permissions to the `mariadb` **backups** directory. Container that performs the backup will run as a **non**-root user (`999`) afterwards. +> Keep in mind the permissions on the backup directory will be changed to `999:999` on **every** update. +> But will only be changed once for the `wordpress` and `mariadb` data directories. diff --git a/community/wordpress/1.0.0/charts/common-1.0.9.tgz b/community/wordpress/1.0.0/charts/common-1.0.9.tgz new file mode 100644 index 0000000000..528451cc57 Binary files /dev/null and b/community/wordpress/1.0.0/charts/common-1.0.9.tgz differ diff --git a/community/wordpress/1.0.0/ci/basic-values.yaml b/community/wordpress/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..25f5e4ec4c --- /dev/null +++ b/community/wordpress/1.0.0/ci/basic-values.yaml @@ -0,0 +1,10 @@ +wpStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/data + mariadbData: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/mariadbData + mariadbBackup: + type: hostPath + hostPath: /mnt/{{ .Release.Name }}/mariadbBackup diff --git a/community/wordpress/1.0.0/ix_values.yaml b/community/wordpress/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..09d5c5c920 --- /dev/null +++ b/community/wordpress/1.0.0/ix_values.yaml @@ -0,0 +1,27 @@ +image: + repository: wordpress + pullPolicy: IfNotPresent + tag: 6.2.2 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +wpConfig: + additionalEnvs: [] + +wpNetwork: + webPort: 30040 + +wpStorage: + data: + type: ixVolume + datasetName: data + mariadbData: + type: ixVolume + datasetName: mariadbData + mariadbBackup: + type: ixVolume + datasetName: mariadbBackup + additionalStorages: [] diff --git a/community/wordpress/1.0.0/metadata.yaml b/community/wordpress/1.0.0/metadata.yaml new file mode 100644 index 0000000000..b9e04e4581 --- /dev/null +++ b/community/wordpress/1.0.0/metadata.yaml @@ -0,0 +1,10 @@ +runAsContext: + - userName: www-data + groupName: www-data + gid: 33 + uid: 33 + description: Wordpress run as a non-root user (33) +capabilities: + - name: NET_BIND_SERVICE + description: Wordpress requires this ability to bind to port 80 within the container. +hostMounts: [] diff --git a/community/wordpress/1.0.0/questions.yaml b/community/wordpress/1.0.0/questions.yaml new file mode 100644 index 0000000000..64d239450c --- /dev/null +++ b/community/wordpress/1.0.0/questions.yaml @@ -0,0 +1,270 @@ +groups: + - name: Wordpress Configuration + description: Configure Wordpress + - name: Network Configuration + description: Configure Network for Wordpress + - name: Storage Configuration + description: Configure Storage for Wordpress + - name: Resources Configuration + description: Configure Resources for Wordpress + +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" + admin: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" + path: /wp-admin + +questions: + - variable: wpConfig + label: "" + group: Wordpress Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Wordpress. + 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: wpNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Wordpress WebUI. + schema: + type: int + default: 30040 + min: 9000 + max: 65535 + required: true + + - variable: wpStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: Wordpress Data Storage + description: The path to store Wordpress data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: data + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: mariadbData + label: Wordpress MariaDB Data Storage + description: The path to store Wordpress MariaDB Data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: mariadbData + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: mariadbBackup + label: Wordpress MariaDB Backup Storage + description: The path to store Wordpress MariaDB Backup. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: mariadbBackup + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Wordpress. + 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.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: 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: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - variable: resources + label: "" + group: Resources Configuration + schema: + type: dict + attrs: + - variable: limits + label: Limits + schema: + type: dict + attrs: + - variable: cpu + label: CPU + description: CPU limit for Wordpress. + schema: + type: string + default: 4000m + required: true + - variable: memory + label: Memory + description: Memory limit for Wordpress. + schema: + type: string + default: 8Gi + required: true diff --git a/community/wordpress/1.0.0/templates/NOTES.txt b/community/wordpress/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/wordpress/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/wordpress/1.0.0/templates/_configuration.tpl b/community/wordpress/1.0.0/templates/_configuration.tpl new file mode 100644 index 0000000000..9fa4e00672 --- /dev/null +++ b/community/wordpress/1.0.0/templates/_configuration.tpl @@ -0,0 +1,33 @@ +{{- define "wordpress.configuration" -}} + + {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}} + + {{- $dbHost := (printf "%s-mariadb" $fullname) -}} + {{- $dbUser := "wordpress" -}} + {{- $dbName := "wordpress" -}} + + {{- $dbPass := (randAlphaNum 32) -}} + {{- $dbRootPass := (randAlphaNum 32) -}} + {{- with (lookup "v1" "Secret" .Release.Namespace (printf "%s-mariadb-creds" $fullname)) -}} + {{- $dbPass = ((index .data "MARIADB_PASSWORD") | b64dec) -}} + {{- $dbRootPass = ((index .data "MARIADB_ROOT_PASSWORD") | b64dec) -}} + {{- end }} + +secret: + mariadb-creds: + enabled: true + data: + MARIADB_USER: {{ $dbUser }} + MARIADB_DATABASE: {{ $dbName }} + MARIADB_PASSWORD: {{ $dbPass }} + MARIADB_ROOT_PASSWORD: {{ $dbRootPass }} + MARIADB_HOST: {{ $dbHost }} + + wordpress-creds: + enabled: true + data: + WORDPRESS_DB_HOST: {{ $dbHost }} + WORDPRESS_DB_NAME: {{ $dbName }} + WORDPRESS_DB_USER: {{ $dbUser }} + WORDPRESS_DB_PASSWORD: {{ $dbPass }} +{{- end -}} diff --git a/community/wordpress/1.0.0/templates/_mariadb.tpl b/community/wordpress/1.0.0/templates/_mariadb.tpl new file mode 100644 index 0000000000..a5a91b2bb7 --- /dev/null +++ b/community/wordpress/1.0.0/templates/_mariadb.tpl @@ -0,0 +1,50 @@ +{{- define "wordpress.mariadb.workload" -}} +workload: +{{- include "ix.v1.common.app.mariadb" (dict "secretName" "mariadb-creds" + "resources" .Values.resources + "ixChartContext" .Values.ixChartContext) | nindent 2 }} +{{/* Service */}} +service: + mariadb: + enabled: true + type: ClusterIP + targetSelector: mariadb + ports: + mariadb: + enabled: true + primary: true + port: 3306 + targetPort: 3306 + targetSelector: mariadb + +{{/* Persistence */}} +persistence: + mariadbdata: + enabled: true + type: {{ .Values.wpStorage.mariadbData.type }} + datasetName: {{ .Values.wpStorage.mariadbData.datasetName | default "" }} + hostPath: {{ .Values.wpStorage.mariadbData.hostPath | default "" }} + targetSelector: + # MariaDB pod + mariadb: + # MariaDB container + mariadb: + mountPath: /var/lib/mysql + # MariaDB - Permissions container + permissions: + mountPath: /mnt/directories/mariadb_data + mariadbbackup: + enabled: true + type: {{ .Values.wpStorage.mariadbBackup.type }} + datasetName: {{ .Values.wpStorage.mariadbBackup.datasetName | default "" }} + hostPath: {{ .Values.wpStorage.mariadbBackup.hostPath | default "" }} + targetSelector: + # MariaDB backup pod + mariadbbackup: + # MariaDB backup container + mariadbbackup: + mountPath: /mariadb_backup + # MariaDB - Permissions container + permissions: + mountPath: /mnt/directories/mariadb_backup +{{- end -}} diff --git a/community/wordpress/1.0.0/templates/_portal.tpl b/community/wordpress/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..6249ccb850 --- /dev/null +++ b/community/wordpress/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "wordpress.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: / + port: {{ .Values.wpNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/wordpress/1.0.0/templates/_wordpress.tpl b/community/wordpress/1.0.0/templates/_wordpress.tpl new file mode 100644 index 0000000000..42b9d333ca --- /dev/null +++ b/community/wordpress/1.0.0/templates/_wordpress.tpl @@ -0,0 +1,106 @@ +{{- define "wordpress.workload" -}} +workload: + wordpress: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: false + containers: + wordpress: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: 33 + runAsGroup: 33 + capabilities: + add: + - NET_BIND_SERVICE + envFrom: + - secretRef: + name: wordpress-creds + {{ with .Values.wpConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: tcp + port: 80 + readiness: + enabled: true + type: tcp + port: 80 + startup: + enabled: true + type: tcp + port: 80 + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" 33 + "GID" 33 + "type" "install") | nindent 8 }} + {{- include "ix.v1.common.app.mariadbWait" (dict "name" "mariadb-wait" + "secretName" "mariadb-creds") | nindent 8 }} +{{/* Service */}} +service: + wordpress: + enabled: true + primary: true + type: NodePort + targetSelector: wordpress + ports: + webui: + enabled: true + primary: true + port: {{ .Values.wpNetwork.webPort }} + nodePort: {{ .Values.wpNetwork.webPort }} + targetPort: 80 + targetSelector: wordpress + +{{/* Persistence */}} +persistence: + data: + enabled: true + type: {{ .Values.wpStorage.data.type }} + datasetName: {{ .Values.wpStorage.data.datasetName | default "" }} + hostPath: {{ .Values.wpStorage.data.hostPath | default "" }} + targetSelector: + wordpress: + wordpress: + mountPath: /var/www/html + 01-permissions: + mountPath: /mnt/directories/data + {{- range $idx, $storage := .Values.wpStorage.additionalStorages }} + {{ printf "wp-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + wordpress: + wordpress: + mountPath: {{ $storage.mountPath }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} + tmp: + enabled: true + type: emptyDir + targetSelector: + wordpress: + wordpress: + mountPath: /tmp + varrun: + enabled: true + type: emptyDir + targetSelector: + wordpress: + wordpress: + mountPath: /var/run +{{- end -}} diff --git a/community/wordpress/1.0.0/templates/common.yaml b/community/wordpress/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..8dfa28ebdf --- /dev/null +++ b/community/wordpress/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "wordpress.configuration" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "wordpress.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "wordpress.mariadb.workload" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "wordpress.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/wordpress/item.yaml b/community/wordpress/item.yaml new file mode 100644 index 0000000000..57f7095f58 --- /dev/null +++ b/community/wordpress/item.yaml @@ -0,0 +1,11 @@ +icon_url: https://github.com/WordPress/WordPress/blob/master/wp-admin/images/wordpress-logo.png?raw=true +categories: + - productivity +screenshots: + - https://wordpress.org/documentation/files/2022/06/wordpress-6-0-dashboard-1024x583.png + - https://ps.w.org/wordpress-popular-posts/assets/screenshot-1.png?rev=2179381 + - https://ps.w.org/wordpress-popular-posts/assets/screenshot-4.png?rev=2179381 + - https://ps.w.org/client-portal/trunk/screenshot-1.png?rev=2868706 +tags: + - cms + - blog