diff --git a/charts/incubator/trilium-notes/.helmignore b/charts/incubator/trilium-notes/.helmignore new file mode 100644 index 00000000000..4379e2b3014 --- /dev/null +++ b/charts/incubator/trilium-notes/.helmignore @@ -0,0 +1,26 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl diff --git a/charts/incubator/trilium-notes/Chart.yaml b/charts/incubator/trilium-notes/Chart.yaml new file mode 100644 index 00000000000..5042ecd7862 --- /dev/null +++ b/charts/incubator/trilium-notes/Chart.yaml @@ -0,0 +1,31 @@ +apiVersion: v2 +appVersion: "0.49.4" +dependencies: +- name: common + repository: https://truecharts.org + version: 8.13.0 +deprecated: false +description: Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases. +home: https://github.com/truecharts/apps/tree/master/charts/incubator/trilium-notes +icon: https://truecharts.org/_static/img/appicons/trilium-notes-icon.png +keywords: +- trilium +- notes +- note +- information +kubeVersion: ">=1.16.0-0" +maintainers: +- email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: trilium-notes +sources: +- https://hub.docker.com/r/zadam/trilium +- https://github.com/zadam/trilium +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/trilium-notes/questions.yaml b/charts/incubator/trilium-notes/questions.yaml new file mode 100644 index 00000000000..3b7765f3cda --- /dev/null +++ b/charts/incubator/trilium-notes/questions.yaml @@ -0,0 +1,315 @@ +# Include{groups} +portals: + web_portal: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" +questions: + - variable: portal + group: "Container Image" + label: "Configure Portal Button" + schema: + type: dict + hidden: true + attrs: + - variable: enabled + label: "Enable" + description: "enable the portal button" + schema: + hidden: true + editable: false + type: boolean + default: true +# Include{global} + + - variable: controller + group: "Controller" + label: "" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced Controller Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: type + description: "Please specify type of workload to deploy" + label: "(Advanced) Controller Type" + schema: + type: string + default: "deployment" + required: true + enum: + - value: "deployment" + description: "Deployment" + - value: "statefulset" + description: "Statefulset" + - value: "daemonset" + description: "Daemonset" + - variable: replicas + description: "Number of desired pod replicas" + label: "Desired Replicas" + schema: + type: int + default: 1 + required: true + - variable: strategy + description: "Please specify type of workload to deploy" + label: "(Advanced) Update Strategy" + schema: + type: string + default: "Recreate" + required: true + enum: + - value: "Recreate" + description: "Recreate: Kill existing pods before creating new ones" + - value: "RollingUpdate" + description: "RollingUpdate: Create new pods and then kill old ones" + - value: "OnDelete" + description: "(Legacy) OnDelete: ignore .spec.template changes" +# Include{controllerExpert} + + - variable: env + group: "Container Configuration" + label: "Image Environment" + schema: + type: dict + attrs: +# Include{fixedEnv} + +# Include{containerConfig} + + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + type: dict + attrs: + - variable: main + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + type: dict + attrs: +# Include{serviceSelector} + - variable: main + label: "Main Service Port Configuration" + schema: + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10080 + required: true + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 8080 + + - variable: serviceexpert + group: "Networking and Services" + label: "Show Expert Config" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostNetwork + group: "Networking and Services" + label: "Host-Networking (Complicated)" + schema: + type: boolean + default: false + +# Include{serviceExpert} + +# Include{serviceList} + + - variable: persistence + label: "Integrated Persistent Storage" + description: "Integrated Persistent Storage" + group: "Storage and Persistence" + schema: + type: dict + attrs: + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + type: dict + attrs: + - variable: enabled + label: "Enable the storage" + schema: + type: boolean + default: true + hidden: true + - variable: type + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" + schema: + type: string + default: "simplePVC" + enum: + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" + - value: "emptyDir" + description: "emptyDir" + - value: "pvc" + description: "pvc" + - value: "hostPath" + description: "hostPath" +# Include{persistenceBasic} + - variable: hostPath + label: "hostPath" + description: "Path inside the container the storage is mounted" + schema: + show_if: [["type", "=", "hostPath"]] + type: hostpath + - variable: medium + label: "EmptyDir Medium" + schema: + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" +# Include{persistenceAdvanced} +# Include{persistenceList} + + - variable: ingress + label: "" + group: "Ingress" + schema: + type: dict + attrs: + - variable: main + label: "Main Ingress" + schema: + type: dict + attrs: +# Include{ingressDefault} + +# Include{ingressTLS} + +# Include{ingressTraefik} + +# Include{ingressExpert} + +# Include{ingressList} + + - variable: advancedSecurity + label: "Show Advanced Security Settings" + group: "Security and Permissions" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: securityContext + label: "Security Context" + schema: + type: dict + attrs: + - variable: privileged + label: "Privileged mode" + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: "ReadOnly Root Filesystem" + schema: + type: boolean + default: true + - variable: allowPrivilegeEscalation + label: "Allow Privilege Escalation" + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: "runAsNonRoot" + schema: + type: boolean + default: true +# Include{securityContextAdvanced} + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + type: dict + attrs: + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 568 + - variable: runAsGroup + label: "runAsGroup" + description: The groupID this App of the user running the application" + schema: + type: int + default: 568 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 +# Include{podSecurityContextAdvanced} + +# Include{resources} + +# Include{advanced} + +# Include{addons} diff --git a/charts/incubator/trilium-notes/templates/common.yaml b/charts/incubator/trilium-notes/templates/common.yaml new file mode 100644 index 00000000000..a6613c2ce21 --- /dev/null +++ b/charts/incubator/trilium-notes/templates/common.yaml @@ -0,0 +1 @@ +{{ include "common.all" . }} diff --git a/charts/incubator/trilium-notes/values.yaml b/charts/incubator/trilium-notes/values.yaml new file mode 100644 index 00000000000..513ecaa1d11 --- /dev/null +++ b/charts/incubator/trilium-notes/values.yaml @@ -0,0 +1,20 @@ +image: + repository: tccr.io/truecharts/trilium-notes + pullPolicy: IfNotPresent + tag: v0.49.4@sha256:af932e6cd1e60f3b0c84f94c28a036c17e062d68c0d80491fc51836edad3b453 + +service: + main: + ports: + main: + protocol: HTTP + targetPort: 8080 + port: 10080 + +env: + TRILIUM_DATA_DIR: "/trilium-data" + +persistence: + config: + enabled: true + mountPath: "/trilium-data" diff --git a/docs/_static/img/appicons/trilium-notes-icon.png b/docs/_static/img/appicons/trilium-notes-icon.png new file mode 100644 index 00000000000..591715a6f50 Binary files /dev/null and b/docs/_static/img/appicons/trilium-notes-icon.png differ diff --git a/docs/apps/app-requests.md b/docs/apps/app-requests.md index 63f27849ac3..0f7b71b5060 100644 --- a/docs/apps/app-requests.md +++ b/docs/apps/app-requests.md @@ -48,7 +48,6 @@ _This list is to track `App Requests` from one place._ - [ ] LANraragi #1159 - [ ] ArchiSteamFarm #1164 - [ ] Docker Registry #1165 -- [ ] Trilium Notes #1261 - [ ] Monero #1228 - [ ] AriaNG #1224 - [ ] FileBrowser #1278 @@ -514,3 +513,4 @@ _These Apps have specific requirements or need specific customisation and care_ - [x] Requestrr #237 - [x] DMS (Document Manage System) #810 - [x] scrutiny ( Needs customised solution for direct disk access ) +- [x] Trilium Notes #1261 diff --git a/docs/manual/default-ports.md b/docs/manual/default-ports.md index 870aa0cc8c3..ab19f3dc18a 100644 --- a/docs/manual/default-ports.md +++ b/docs/manual/default-ports.md @@ -227,6 +227,7 @@ These defaults can of course be changed, but as we guarantee "sane, working defa | static | main | main | 10077 | TCP | | | twtxt | main | main | 10078 | TCP | | | emby | main | main | 10079 | TCP | | +| trilium-notes | main | main | 10080 | HTTP | | | davos | main | main | 10081 | TCP | | | fireflyiii | main | main | 10082 | TCP | | | fossil | main | main | 10083 | TCP | | @@ -364,6 +365,6 @@ These defaults can of course be changed, but as we guarantee "sane, working defa | webui | 80 | HTTP | | | webui | 443 | HTTPS | | -##### Note: TCP and UPD ports that are the same in some Apps, are not by mistake. +##### Note: TCP and UDP ports that are the same in some Apps, are not by mistake. ##### If you notice a port conflict, please notify us so we can resolve it (when possible).