diff --git a/charts/incubator/static-web-server/.helmignore b/charts/incubator/static-web-server/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/static-web-server/.helmignore @@ -0,0 +1,30 @@ +# 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 +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/static-web-server/Chart.yaml b/charts/incubator/static-web-server/Chart.yaml new file mode 100644 index 00000000000..b73171a0d1d --- /dev/null +++ b/charts/incubator/static-web-server/Chart.yaml @@ -0,0 +1,31 @@ +apiVersion: v2 +appVersion: "2.20.2" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.1 +deprecated: false +description: A cross-platform, high-performance and asynchronous web server for static files-serving. +home: https://truecharts.org/charts/incubator/static-web-server +icon: https://truecharts.org/img/hotlink-ok/chart-icons/static-web-server.png +keywords: + - web-server + - apache + - rust +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: static-web-server +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/static-web-server + - https://github.com/static-web-server/static-web-server + - https://static-web-server.net +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - web-server + - networking + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/static-web-server/README.md b/charts/incubator/static-web-server/README.md new file mode 100644 index 00000000000..e0a9b8fa8d7 --- /dev/null +++ b/charts/incubator/static-web-server/README.md @@ -0,0 +1,27 @@ +# README + +## General Info + +TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE. +However only installations using the TrueNAS SCALE Apps system are supported. + +For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/stable/) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + + +## Support + +- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro). +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/charts/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can! + +*All Rights Reserved - The TrueCharts Project* diff --git a/charts/incubator/static-web-server/icon.png b/charts/incubator/static-web-server/icon.png new file mode 100644 index 00000000000..ce4e66a511f Binary files /dev/null and b/charts/incubator/static-web-server/icon.png differ diff --git a/charts/incubator/static-web-server/questions.yaml b/charts/incubator/static-web-server/questions.yaml new file mode 100644 index 00000000000..da229cfbc14 --- /dev/null +++ b/charts/incubator/static-web-server/questions.yaml @@ -0,0 +1,92 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + + +# Include{containerBasic} +# Include{containerAdvanced} + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 38080 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + + - 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 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/static-web-server/templates/NOTES.txt b/charts/incubator/static-web-server/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/static-web-server/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/static-web-server/templates/common.yaml b/charts/incubator/static-web-server/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/static-web-server/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/static-web-server/values.yaml b/charts/incubator/static-web-server/values.yaml new file mode 100644 index 00000000000..e4522011d9b --- /dev/null +++ b/charts/incubator/static-web-server/values.yaml @@ -0,0 +1,36 @@ +image: + repository: ghcr.io/static-web-server/static-web-server + pullPolicy: IfNotPresent + tag: 2.20.2@sha256:cf59f0f22a5d0120a5cfbcd9f8e943825b9e8622b25796647d9645d2802a3634 + +service: + main: + ports: + main: + protocol: http + port: 38080 + +workload: + main: + podSpec: + containers: + main: + env: + SERVER_PORT: "{{ .Values.service.main.ports.main.port }}" + SERVER_ROOT: "/public" + probes: + liveness: + type: tcp + readiness: + type: tcp + startup: + type: tcp + +persistence: + config: + enabled: true + mountPath: "/public" + +portal: + open: + enabled: true