feat(wger): move to stable (#3658)

* feat(wger): move to stable

* feat(wger): move to stable

* add mountPath
This commit is contained in:
Stavros Kois
2022-09-02 01:05:45 +03:00
committed by GitHub
parent be36c327fc
commit bf1b5abd9c
12 changed files with 2 additions and 1 deletions
+30
View File
@@ -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
+496
View File
@@ -0,0 +1,496 @@
# Changelog
## [wger-1.0.0](https://github.com/truecharts/charts/compare/wger-0.0.54...wger-1.0.0) (2022-09-01)
### Chore
- update docker general non-major ([#3649](https://github.com/truecharts/charts/issues/3649))
### Feat
- BREAKING-CHANGE big cleanup - move to configmap ([#3652](https://github.com/truecharts/charts/issues/3652))
## [wger-0.0.54](https://github.com/truecharts/charts/compare/wger-0.0.52...wger-0.0.54) (2022-08-30)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#3639](https://github.com/truecharts/charts/issues/3639))
- update helm chart common to v10.5.5 ([#3626](https://github.com/truecharts/charts/issues/3626))
## [wger-0.0.53](https://github.com/truecharts/charts/compare/wger-0.0.52...wger-0.0.53) (2022-08-30)
### Chore
- update helm chart common to v10.5.5 ([#3626](https://github.com/truecharts/charts/issues/3626))
## [wger-0.0.52](https://github.com/truecharts/charts/compare/wger-0.0.51...wger-0.0.52) (2022-08-30)
### Chore
- update helm general non-major ([#3624](https://github.com/truecharts/charts/issues/3624))
## [wger-0.0.51](https://github.com/truecharts/charts/compare/wger-0.0.49...wger-0.0.51) (2022-08-29)
### Chore
- update helm general non-major ([#3621](https://github.com/truecharts/charts/issues/3621))
- update helm general non-major ([#3619](https://github.com/truecharts/charts/issues/3619))
## [wger-0.0.49](https://github.com/truecharts/charts/compare/wger-0.0.46...wger-0.0.49) (2022-08-27)
### Chore
- update docker general non-major ([#3587](https://github.com/truecharts/charts/issues/3587))
### Fix
- some cleanup ([#3586](https://github.com/truecharts/charts/issues/3586))
## [wger-0.0.46](https://github.com/truecharts/charts/compare/wger-0.0.45...wger-0.0.46) (2022-08-26)
### Chore
- update docker general non-major ([#3573](https://github.com/truecharts/charts/issues/3573))
## [wger-0.0.45](https://github.com/truecharts/charts/compare/wger-0.0.44...wger-0.0.45) (2022-08-25)
### Chore
- update docker general non-major ([#3561](https://github.com/truecharts/charts/issues/3561))
## [wger-0.0.44](https://github.com/truecharts/charts/compare/wger-0.0.43...wger-0.0.44) (2022-08-24)
### Chore
- update docker general non-major ([#3552](https://github.com/truecharts/charts/issues/3552))
## [wger-0.0.43](https://github.com/truecharts/charts/compare/wger-0.0.41...wger-0.0.43) (2022-08-23)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major helm releases ([#3545](https://github.com/truecharts/charts/issues/3545))
- update docker general non-major docker tags ([#3523](https://github.com/truecharts/charts/issues/3523))
## [wger-0.0.42](https://github.com/truecharts/charts/compare/wger-0.0.41...wger-0.0.42) (2022-08-21)
### Chore
- update docker general non-major docker tags ([#3523](https://github.com/truecharts/charts/issues/3523))
## [wger-0.0.41](https://github.com/truecharts/charts/compare/wger-0.0.40...wger-0.0.41) (2022-08-17)
### Chore
- update helm general non-major helm releases ([#3484](https://github.com/truecharts/charts/issues/3484))
- update docker general non-major ([#3478](https://github.com/truecharts/charts/issues/3478))
## [wger-0.0.40](https://github.com/truecharts/charts/compare/wger-0.0.39...wger-0.0.40) (2022-08-14)
### Chore
- update docker general non-major docker tags ([#3465](https://github.com/truecharts/charts/issues/3465))
## [wger-0.0.39](https://github.com/truecharts/charts/compare/wger-0.0.38...wger-0.0.39) (2022-08-12)
### Chore
- add documentation checkbox/section to all SCALE Apps
- update helm general non-major helm releases ([#3456](https://github.com/truecharts/charts/issues/3456))
### Fix
- move extraArgs from .Values.controller to .Values ([#3447](https://github.com/truecharts/charts/issues/3447))
## [wger-0.0.38](https://github.com/truecharts/charts/compare/wger-0.0.37...wger-0.0.38) (2022-08-09)
### Chore
- update helm general non-major helm releases to v10.4.9 ([#3413](https://github.com/truecharts/charts/issues/3413))
## [wger-0.0.37](https://github.com/truecharts/charts/compare/wger-0.0.36...wger-0.0.37) (2022-08-09)
### Chore
- update docker general non-major ([#3377](https://github.com/truecharts/charts/issues/3377))
## [wger-0.0.36](https://github.com/truecharts/charts/compare/wger-0.0.35...wger-0.0.36) (2022-08-08)
### Chore
- update helm general non-major helm releases ([#3376](https://github.com/truecharts/charts/issues/3376))
- replace questions parts with templates ([#3402](https://github.com/truecharts/charts/issues/3402))
## [wger-0.0.35](https://github.com/truecharts/apps/compare/wger-0.0.34...wger-0.0.35) (2022-07-30)
### Chore
- update docker general non-major
## [wger-0.0.34](https://github.com/truecharts/apps/compare/wger-0.0.33...wger-0.0.34) (2022-07-27)
### Chore
- update docker general non-major ([#3313](https://github.com/truecharts/apps/issues/3313))
## [wger-0.0.33](https://github.com/truecharts/apps/compare/wger-0.0.32...wger-0.0.33) (2022-07-26)
### Chore
- update home links ([#3291](https://github.com/truecharts/apps/issues/3291))
- update helm general non-major helm releases ([#3302](https://github.com/truecharts/apps/issues/3302))
## [wger-0.0.32](https://github.com/truecharts/apps/compare/wger-0.0.31...wger-0.0.32) (2022-07-25)
### Chore
- Auto-update chart README [skip ci]
- update docker general non-major ([#3295](https://github.com/truecharts/apps/issues/3295))
## [wger-0.0.32](https://github.com/truecharts/apps/compare/wger-0.0.31...wger-0.0.32) (2022-07-25)
### Chore
- update docker general non-major ([#3295](https://github.com/truecharts/apps/issues/3295))
## [wger-0.0.31](https://github.com/truecharts/apps/compare/wger-0.0.29...wger-0.0.31) (2022-07-24)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update docker general non-major ([#3284](https://github.com/truecharts/apps/issues/3284))
- update helm general non-major helm releases ([#3280](https://github.com/truecharts/apps/issues/3280))
## [wger-0.0.30](https://github.com/truecharts/apps/compare/wger-0.0.29...wger-0.0.30) (2022-07-23)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major helm releases ([#3280](https://github.com/truecharts/apps/issues/3280))
## [wger-0.0.30](https://github.com/truecharts/apps/compare/wger-0.0.29...wger-0.0.30) (2022-07-23)
### Chore
- update helm general non-major helm releases ([#3280](https://github.com/truecharts/apps/issues/3280))
## [wger-0.0.29](https://github.com/truecharts/apps/compare/wger-0.0.28...wger-0.0.29) (2022-07-23)
### Chore
- update helm general non-major helm releases ([#3274](https://github.com/truecharts/apps/issues/3274))
## [wger-0.0.28](https://github.com/truecharts/apps/compare/wger-0.0.26...wger-0.0.28) (2022-07-22)
### Chore
- update image refs ([#3261](https://github.com/truecharts/apps/issues/3261))
- Bump all charts to generate config and container references due to huge increase of repository
- update helm general non-major helm releases ([#3268](https://github.com/truecharts/apps/issues/3268))
- update docker general non-major ([#3266](https://github.com/truecharts/apps/issues/3266))
## [wger-0.0.26](https://github.com/truecharts/apps/compare/wger-0.0.25...wger-0.0.26) (2022-07-22)
### Chore
- update docker general non-major ([#3258](https://github.com/truecharts/apps/issues/3258))
## [wger-0.0.25](https://github.com/truecharts/apps/compare/wger-0.0.24...wger-0.0.25) (2022-07-21)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update docker general non-major ([#3239](https://github.com/truecharts/apps/issues/3239))
## [wger-0.0.25](https://github.com/truecharts/apps/compare/wger-0.0.24...wger-0.0.25) (2022-07-21)
### Chore
- Auto-update chart README [skip ci]
- update docker general non-major ([#3239](https://github.com/truecharts/apps/issues/3239))
## [wger-0.0.25](https://github.com/truecharts/apps/compare/wger-0.0.24...wger-0.0.25) (2022-07-21)
### Chore
- update docker general non-major ([#3239](https://github.com/truecharts/apps/issues/3239))
## [wger-0.0.24](https://github.com/truecharts/apps/compare/wger-0.0.23...wger-0.0.24) (2022-07-20)
### Chore
- update docker general non-major ([#3222](https://github.com/truecharts/apps/issues/3222))
## [wger-0.0.23](https://github.com/truecharts/apps/compare/wger-0.0.22...wger-0.0.23) (2022-07-19)
### Chore
- Update Readme and Description on SCALE
## [wger-0.0.22](https://github.com/truecharts/apps/compare/wger-0.0.21...wger-0.0.22) (2022-07-14)
### Fix
- regenerate catalog and update template
## [wger-0.0.21](https://github.com/truecharts/apps/compare/wger-0.0.19...wger-0.0.21) (2022-07-14)
### Fix
- bump to ensure .helmignore is present on all Charts
## [wger-0.0.19](https://github.com/truecharts/apps/compare/wger-0.0.18...wger-0.0.19) (2022-07-14)
### Chore
- update docker general non-major ([#3171](https://github.com/truecharts/apps/issues/3171))
## [wger-0.0.18](https://github.com/truecharts/apps/compare/wger-0.0.17...wger-0.0.18) (2022-07-13)
### Chore
- update docker general non-major ([#3157](https://github.com/truecharts/apps/issues/3157))
## [wger-0.0.17](https://github.com/truecharts/apps/compare/wger-0.0.15...wger-0.0.17) (2022-07-12)
### Chore
- update icons ([#3156](https://github.com/truecharts/apps/issues/3156))
- bump to cleanup old docs and use correct icon urls
## [wger-0.0.15](https://github.com/truecharts/apps/compare/wger-0.0.14...wger-0.0.15) (2022-07-12)
### Chore
- bump to regenerate documentation
<a name="wger-0.0.14"></a>
### [wger-0.0.14](https://github.com/truecharts/apps/compare/wger-0.0.13...wger-0.0.14) (2022-07-12)
#### Chore
* update helm general non-major helm releases ([#3147](https://github.com/truecharts/apps/issues/3147))
* update docker general non-major ([#3150](https://github.com/truecharts/apps/issues/3150))
<a name="wger-0.0.13"></a>
### [wger-0.0.13](https://github.com/truecharts/apps/compare/wger-0.0.12...wger-0.0.13) (2022-07-11)
#### Chore
* move icons into the apps folder ([#3139](https://github.com/truecharts/apps/issues/3139))
<a name="wger-0.0.12"></a>
### [wger-0.0.12](https://github.com/truecharts/apps/compare/wger-0.0.11...wger-0.0.12) (2022-07-09)
#### Chore
* update helm general non-major helm releases ([#3113](https://github.com/truecharts/apps/issues/3113))
<a name="wger-0.0.11"></a>
### [wger-0.0.11](https://github.com/truecharts/apps/compare/wger-0.0.10...wger-0.0.11) (2022-07-09)
#### Chore
* update docker general non-major ([#3106](https://github.com/truecharts/apps/issues/3106))
<a name="wger-0.0.10"></a>
### [wger-0.0.10](https://github.com/truecharts/apps/compare/wger-0.0.9...wger-0.0.10) (2022-07-05)
#### Chore
* update helm general non-major helm releases ([#3075](https://github.com/truecharts/apps/issues/3075))
<a name="wger-0.0.9"></a>
### [wger-0.0.9](https://github.com/truecharts/apps/compare/wger-0.0.8...wger-0.0.9) (2022-07-04)
#### Chore
* update helm general non-major helm releases ([#3066](https://github.com/truecharts/apps/issues/3066))
<a name="wger-0.0.8"></a>
### [wger-0.0.8](https://github.com/truecharts/apps/compare/wger-0.0.7...wger-0.0.8) (2022-07-02)
#### Chore
* update docker general non-major ([#3033](https://github.com/truecharts/apps/issues/3033))
<a name="wger-0.0.7"></a>
### [wger-0.0.7](https://github.com/truecharts/apps/compare/wger-0.0.6...wger-0.0.7) (2022-07-01)
#### Feat
* Add EteSync to incubator ([#3024](https://github.com/truecharts/apps/issues/3024))
<a name="wger-0.0.6"></a>
### [wger-0.0.6](https://github.com/truecharts/apps/compare/wger-0.0.5...wger-0.0.6) (2022-06-29)
#### Chore
* update docker general non-major ([#3002](https://github.com/truecharts/apps/issues/3002))
* add ingress on webui aswell ([#3013](https://github.com/truecharts/apps/issues/3013))
<a name="wger-0.0.5"></a>
### [wger-0.0.5](https://github.com/truecharts/apps/compare/wger-0.0.4...wger-0.0.5) (2022-06-29)
#### Fix
* another fix ([#3011](https://github.com/truecharts/apps/issues/3011))
<a name="wger-0.0.4"></a>
### [wger-0.0.4](https://github.com/truecharts/apps/compare/wger-0.0.3...wger-0.0.4) (2022-06-29)
#### Fix
* try some fixes ([#3010](https://github.com/truecharts/apps/issues/3010))
<a name="wger-0.0.3"></a>
### [wger-0.0.3](https://github.com/truecharts/apps/compare/wger-0.0.2...wger-0.0.3) (2022-06-26)
#### Chore
* Auto-update chart README [skip ci]
* update docker general non-major ([#2988](https://github.com/truecharts/apps/issues/2988))
<a name="wger-0.0.2"></a>
### wger-0.0.2 (2022-06-25)
#### Chore
* update helm general non-major helm releases ([#2981](https://github.com/truecharts/apps/issues/2981))
#### Feat
* add wger ([#2975](https://github.com/truecharts/apps/issues/2975))
+35
View File
@@ -0,0 +1,35 @@
apiVersion: v2
appVersion: "latest"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.5.6
- condition: postgresql.enabled
name: postgresql
repository: https://charts.truecharts.org/
version: 8.0.69
- condition: redis.enabled
name: redis
repository: https://charts.truecharts.org
version: 3.0.67
description: Workout Manager is a free, open source web application that helps you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility.
home: https://truecharts.org/docs/charts/incubator/wger
icon: https://truecharts.org/img/hotlink-ok/chart-icons/wger.png
keywords:
- workout
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: wger
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/wger
- https://github.com/wger-project/wger
- https://github.com/wger-project/docker
version: 1.1.0
annotations:
truecharts.org/catagories: |
- life
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+111
View File
@@ -0,0 +1,111 @@
# wger
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
Workout Manager is a free, open source web application that helps you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility.
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
This readme is just an automatically generated general guide on installing our Helm Charts and Apps.
For more information, please click here: [wger](https://truecharts.org/docs/charts/incubator/wger)
**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)**
## Source Code
* <https://github.com/truecharts/charts/tree/master/charts/incubator/wger>
* <https://github.com/wger-project/wger>
* <https://github.com/wger-project/docker>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://charts.truecharts.org/ | postgresql | 8.0.69 |
| https://charts.truecharts.org | redis | 3.0.67 |
| https://library-charts.truecharts.org | common | 10.5.6 |
## Installing the Chart
### TrueNAS SCALE
To install this Chart on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/Installing-an-App).
### Helm
To install the chart with the release name `wger`
```console
helm repo add TrueCharts https://charts.truecharts.org
helm repo update
helm install wger TrueCharts/wger
```
## Uninstall
### TrueNAS SCALE
**Upgrading, Rolling Back and Uninstalling the Chart**
To upgrade, rollback or delete this Chart from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/Upgrade-rollback-delete-an-App).
### Helm
To uninstall the `wger` deployment
```console
helm uninstall wger
```
## Configuration
### Helm
#### Available Settings
Read through the [values.yaml](./values.yaml) file. It has several commented out suggested values.
Other values may be used from the [values.yaml](https://github.com/truecharts/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common).
#### Configure using the command line
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install wger \
--set env.TZ="America/New York" \
TrueCharts/wger
```
#### Configure using a yaml file
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install wger TrueCharts/wger -f values.yaml
```
#### Connecting to other charts
If you need to connect this Chart to other Charts on TrueNAS SCALE, please refer to our [Linking Charts Internally](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/linking-apps) quick-start guide.
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/Important-MUST-READ).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/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/docs/about/sponsor) or contributing back to the project any way you can!
---
All Rights Reserved - The TrueCharts Project
+5
View File
@@ -0,0 +1,5 @@
# Default Username/Password
**Email**: `admin`
**Password**: `adminadmin`
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

+257
View File
@@ -0,0 +1,257 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{controller}
# Include{controllerDeployment}
# Include{replicas}
# Include{replica1}
# Include{strategy}
# Include{recreate}
# Include{controllerExpert}
# Include{controllerExpertExtraArgs}
- variable: wger
group: "Container Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: general
label: "General Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: sync_exercises_on_startup
label: "SYNC_EXERCISES_ON_STARTUP (Slow Startup)"
description: "Enabling that can greatly impact the startup of this app"
schema:
type: boolean
default: false
- variable: download_exercise_images_on_startup
label: "DOWNLOAD_EXERCISE_IMAGES_ON_STARTUP (Slow Startup)"
description: "Enabling that can greatly impact the startup of this app"
schema:
type: boolean
default: false
- variable: allow_registration
label: "ALLOW_REGISTRATION"
schema:
type: boolean
default: true
- variable: allow_guest_users
label: "ALLOW_GUEST_USERS"
schema:
type: boolean
default: true
- variable: allow_upload_videos
label: "ALLOW_UPLOAD_VIDEOS"
schema:
type: boolean
default: true
- variable: exercise_cache_ttl
label: "EXERCISE_CACHE_TTL"
schema:
type: string
required: true
default: "3600"
- variable: django_perform_migrations
label: "DJANGO_PERFORM_MIGRATIONS"
schema:
type: boolean
default: true
- variable: django_debug
label: "DJANGO_DEBUG"
schema:
type: boolean
default: false
- variable: mail
label: "Mail Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: enable_email
label: "Email Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: from_email
label: "FROM_EMAIL"
schema:
type: string
required: true
default: ""
- variable: email_host
label: "EMAIL_HOST"
schema:
type: string
required: true
default: ""
- variable: email_port
label: "EMAIL_PORT"
schema:
type: int
required: true
default: 587
- variable: email_host_user
label: "EMAIL_HOST_USER"
schema:
type: string
required: true
default: ""
- variable: email_host_password
label: "EMAIL_HOST_PASSWORD"
schema:
type: string
required: true
private: true
default: ""
- variable: email_use_tls
label: "EMAIL_USE_TLS"
schema:
type: boolean
default: false
- variable: email_use_ssl
label: "EMAIL_USE_SSL"
schema:
type: boolean
default: false
- variable: captca
label: "Captca Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: captchasettings
label: "Captcha Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: recaptha_public_key
label: "RECAPTCHA_PUBLIC_KEY"
schema:
type: string
default: ""
- variable: recaptha_private_key
label: "RECAPTCHA_PRIVATE_KEY"
schema:
type: string
private: true
default: ""
- variable: nocaptcha
label: "NOCAPTCHA"
schema:
type: boolean
default: true
# Include{containerConfig}
# Include{serviceRoot}
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- 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: 10249
required: true
# Include{advancedPortHTTP}
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 10249
# Include{serviceExpertRoot}
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: media
label: "App Media Storage"
description: "Stores the Application Media."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: "Main Ingress"
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
# Include{securityContextAdvancedRoot}
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: false
# Include{securityContextAdvanced}
# Include{podSecurityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 1000
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID this App of the user running the application"
schema:
type: int
default: 1000
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 1000
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{documentation}
@@ -0,0 +1,84 @@
{{/* Define the configmap */}}
{{- define "wger.configmap" -}}
{{- $configName := printf "%s-wger-configmap" (include "tc.common.names.fullname" .) }}
{{- $nginxConfigName := printf "%s-wger-nginx-config" (include "tc.common.names.fullname" .) }}
---
{{/* This configmap are loaded on both main authentik container and worker */}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $configName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
{{/* Dependencies */}}
DJANGO_DB_ENGINE: "django.db.backends.postgresql"
DJANGO_DB_DATABASE: {{ .Values.postgresql.postgresqlDatabase }}
DJANGO_DB_USER: {{ .Values.postgresql.postgresqlUsername }}
DJANGO_DB_PORT: "5432"
DJANGO_DB_HOST: {{ printf "%v-%v" .Release.Name "postgresql" }}
DJANGO_CACHE_BACKEND: "django_redis.cache.RedisCache"
DJANGO_CACHE_CLIENT_CLASS: "django_redis.client.DefaultClient"
DJANGO_CACHE_TIMEOUT: "1296000"
TIME_ZONE: {{ .Values.TZ | quote }}
{{/* True, not true */}}
WGER_USE_GUNICORN: "True"
{{/* User Defined */}}
{{/* General */}}
{{- with .Values.wger.general.site_url }}
SITE_URL: {{ . | quote }}
{{- end }}
{{- with .Values.wger.general.exercise_cache_ttl }}
EXERCISE_CACHE_TTL: {{ . | quote }}
{{- end }}
ALLOW_REGISTRATION: {{ ternary "True" "False" .Values.wger.general.allow_registration | squote }}
ALLOW_GUEST_USERS: {{ ternary "True" "False" .Values.wger.general.allow_guest_users | squote }}
ALLOW_UPLOAD_VIDEOS: {{ ternary "True" "False" .Values.wger.general.allow_upload_videos | squote }}
SYNC_EXERCISES_ON_STARTUP: {{ ternary "True" "False" .Values.wger.general.sync_exercises_on_startup | squote }}
DOWNLOAD_EXERCISE_IMAGES_ON_STARTUP: {{ ternary "True" "False" .Values.wger.general.download_exercise_images_on_startup | squote }}
DJANGO_PERFORM_MIGRATIONS: {{ ternary "True" "False" .Values.wger.general.django_perform_migrations | squote }}
DJANGO_DEBUG: {{ ternary "True" "False" .Values.wger.general.django_debug | squote }}
{{/* Captcha */}}
NOCAPTCHA: {{ ternary "True" "False" .Values.wger.captcha.nocaptcha | squote }}
{{/* Mail */}}
{{- if .Values.wger.mail.enable_email }}
{{/* Any value is considered true */}}
ENABLE_EMAIL: "True"
{{- end }}
FROM_EMAIL: {{ .Values.wger.mail.from_email | quote }}
EMAIL_HOST: {{ .Values.wger.mail.email_host | quote }}
EMAIL_PORT: {{ .Values.wger.mail.email_port | quote }}
EMAIL_USE_TLS: {{ ternary "True" "False" .Values.wger.mail.email_use_tls | squote }}
EMAIL_USE_SSL: {{ ternary "True" "False" .Values.wger.mail.email_use_ssl | squote }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $nginxConfigName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
nginx.conf: |-
upstream wger {
server localhost:8000;
}
server {
listen {{ .Values.service.main.ports.main.port }};
location / {
proxy_pass http://localhost:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
# Increase max body size to allow for video uploads
client_max_body_size 100M;
}
{{- end }}
+22
View File
@@ -0,0 +1,22 @@
{{/* Define the nginx container */}}
{{- define "wger.nginx" -}}
image: {{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}
imagePullPolicy: {{ .Values.nginxImage.pullPolicy }}
ports:
- containerPort: {{ .Values.service.main.ports.main.port }}
name: main
securityContext:
runAsUser: 0
runAsGroup: 1000
readOnlyRootFilesystem: false
runAsNonRoot: false
volumeMounts:
- name: wger-config
mountPath: "/etc/nginx/conf.d/default.conf"
subPath: default.conf
readOnly: true
- name: media
mountPath: "/media"
- name: static
mountPath: "/static"
{{- end -}}
+31
View File
@@ -0,0 +1,31 @@
{{/* Define the secrets */}}
{{- define "wger.secrets" -}}
{{- $secretName := printf "%s-wger-secret" (include "tc.common.names.fullname" .) }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
data:
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
SECRET_KEY: {{ index .data "SECRET_KEY" }}
{{- else }}
SECRET_KEY: {{ randAlphaNum 32 | b64enc }}
{{- end }}
{{- $redisPass := .Values.redis.redisPassword | trimAll "\"" }}
DJANGO_CACHE_LOCATION: {{ printf "redis://%v:%v@%v-redis/%v" .Values.redis.redisUsername $redisPass .Release.Name .Values.redis.redisDatabase | b64enc }}
DJANGO_DB_PASSWORD: {{ .Values.postgresql.postgresqlPassword | trimAll "\"" | b64enc }}
EMAIL_HOST_USER: {{ .Values.wger.mail.email_host_user | b64enc }}
EMAIL_HOST_PASSWORD: {{ .Values.wger.mail.email_host_password | b64enc }}
{{- with .Values.wger.captcha.recaptha_public_key }}
RECAPTCHA_PUBLIC_KEY: {{ . | b64enc }}
{{- end }}
{{- with .Values.wger.captcha.recaptha_private_key }}
RECAPTCHA_PRIVATE_KEY: {{ . | b64enc }}
{{- end }}
{{- end -}}
+12
View File
@@ -0,0 +1,12 @@
{{- include "tc.common.loader.init" . }}
{{/* Render secrets for wger */}}
{{- include "wger.secrets" . }}
{{/* Render configmap for wger */}}
{{- include "wger.configmap" . }}
{{- $_ := set .Values.additionalContainers "nginx" (include "wger.nginx" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
+92
View File
@@ -0,0 +1,92 @@
image:
repository: tccr.io/truecharts/wger
tag: latest@sha256:f42b5566b0a95fedb417422a67556e5f52b4733385348142dbff525d6f09a066
pullPolicy: IfNotPresent
nginxImage:
repository: tccr.io/truecharts/nginx
tag: v1.23.1@sha256:1620254cd011e2b81361f1f4682fd6cceadf13b07f8e37f322b60407d6d5a766
pullPolicy: IfNotPresent
securityContext:
runAsNonRoot: false
readOnlyRootFilesystem: false
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
envFrom:
- secretRef:
name: '{{ include "tc.common.names.fullname" . }}-wger-secret'
- configMapRef:
name: '{{ include "tc.common.names.fullname" . }}-wger-configmap'
wger:
general:
# Where the backend will listen. Leave this as is, unless nginx is removed
site_url: "http://localhost:8000"
sync_exercises_on_startup: false
download_exercise_images_on_startup: false
allow_registration: true
allow_guest_users: true
allow_upload_videos: true
exercise_cache_ttl: "3600"
django_perform_migrations: true
django_debug: false
mail:
enable_email: false
from_email: ""
email_host: ""
email_port: 587
email_host_user: "username"
email_host_password: "password"
email_use_tls: false
email_use_ssl: false
captcha:
recaptha_public_key: ""
recaptha_private_key: ""
nocaptcha: true
service:
main:
ports:
main:
port: 10249
persistence:
media:
enabled: true
mountPath: "/home/wger/media"
static:
enabled: true
type: emptyDir
mountPath: "/home/wger/static"
wger-config:
enabled: "true"
noMount: true
readOnly: true
type: "custom"
mountPath: "/etc/nginx/conf.d"
volumeSpec:
configMap:
name: '{{ include "tc.common.names.fullname" . }}-wger-nginx-config'
items:
- key: nginx.conf
path: default.conf
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: wger
postgresqlDatabase: wger
redis:
enabled: true
existingSecret: "rediscreds"
redisUsername: "default"
redisDatabase: "0"
portal:
enabled: true