Commit new Chart releases for TrueCharts
Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
parent
8c63c8645f
commit
ab1c9cb481
|
@ -0,0 +1,99 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.10](https://github.com/truecharts/charts/compare/nextcloud-15.3.9...nextcloud-15.3.10) (2022-09-09)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- doc polishing ([#3725](https://github.com/truecharts/charts/issues/3725))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.9](https://github.com/truecharts/charts/compare/nextcloud-15.3.8...nextcloud-15.3.9) (2022-09-07)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- Auto-update chart README [skip ci]
|
||||||
|
- update docker general non-major ([#3710](https://github.com/truecharts/charts/issues/3710))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.9](https://github.com/truecharts/charts/compare/nextcloud-15.3.8...nextcloud-15.3.9) (2022-09-06)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update docker general non-major ([#3710](https://github.com/truecharts/charts/issues/3710))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.8](https://github.com/truecharts/charts/compare/nextcloud-15.3.7...nextcloud-15.3.8) (2022-09-03)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update docker general non-major ([#3668](https://github.com/truecharts/charts/issues/3668))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.7](https://github.com/truecharts/charts/compare/nextcloud-15.3.6...nextcloud-15.3.7) (2022-09-02)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update docker general non-major ([#3660](https://github.com/truecharts/charts/issues/3660))
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
|
||||||
|
- add more docs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.6](https://github.com/truecharts/charts/compare/nextcloud-15.3.4...nextcloud-15.3.6) (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))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.5](https://github.com/truecharts/charts/compare/nextcloud-15.3.4...nextcloud-15.3.5) (2022-08-30)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update helm chart common to v10.5.5 ([#3626](https://github.com/truecharts/charts/issues/3626))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.4](https://github.com/truecharts/charts/compare/nextcloud-15.3.3...nextcloud-15.3.4) (2022-08-30)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update helm general non-major ([#3624](https://github.com/truecharts/charts/issues/3624))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.3](https://github.com/truecharts/charts/compare/nextcloud-15.3.1...nextcloud-15.3.3) (2022-08-29)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update docker general non-major ([#3620](https://github.com/truecharts/charts/issues/3620))
|
||||||
|
- 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))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [nextcloud-15.3.1](https://github.com/truecharts/charts/compare/nextcloud-15.3.0...nextcloud-15.3.1) (2022-08-27)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://library-charts.truecharts.org
|
||||||
|
version: 10.5.6
|
||||||
|
- name: postgresql
|
||||||
|
repository: https://charts.truecharts.org/
|
||||||
|
version: 8.0.69
|
||||||
|
- name: collabora-online
|
||||||
|
repository: https://charts.truecharts.org/
|
||||||
|
version: 12.1.37
|
||||||
|
- name: redis
|
||||||
|
repository: https://charts.truecharts.org
|
||||||
|
version: 3.0.67
|
||||||
|
digest: sha256:1ce785eec10e00f242264eb8c336077ce9e98dc51bddb8a33a098b773911b711
|
||||||
|
generated: "2022-09-09T20:21:41.315526143Z"
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: "24.0.4"
|
||||||
|
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: collabora.enabled
|
||||||
|
name: collabora-online
|
||||||
|
repository: https://charts.truecharts.org/
|
||||||
|
version: 12.1.37
|
||||||
|
- condition: redis.enabled
|
||||||
|
name: redis
|
||||||
|
repository: https://charts.truecharts.org
|
||||||
|
version: 3.0.67
|
||||||
|
deprecated: false
|
||||||
|
description: A private cloud server that puts the control and security of your own data back into your hands.
|
||||||
|
home: https://truecharts.org/docs/charts/stable/nextcloud
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/nextcloud.png
|
||||||
|
keywords:
|
||||||
|
- nextcloud
|
||||||
|
- storage
|
||||||
|
- http
|
||||||
|
- web
|
||||||
|
- php
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
|
maintainers:
|
||||||
|
- email: info@truecharts.org
|
||||||
|
name: TrueCharts
|
||||||
|
url: https://truecharts.org
|
||||||
|
name: nextcloud
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/stable/nextcloud
|
||||||
|
- https://github.com/nextcloud/docker
|
||||||
|
- https://github.com/nextcloud/helm
|
||||||
|
type: application
|
||||||
|
version: 15.3.10
|
||||||
|
annotations:
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- cloud
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
|
truecharts.org/grade: U
|
|
@ -0,0 +1,112 @@
|
||||||
|
# nextcloud
|
||||||
|
|
||||||
|
![Version: 15.3.10](https://img.shields.io/badge/Version-15.3.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 24.0.4](https://img.shields.io/badge/AppVersion-24.0.4-informational?style=flat-square)
|
||||||
|
|
||||||
|
A private cloud server that puts the control and security of your own data back into your hands.
|
||||||
|
|
||||||
|
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: [nextcloud](https://truecharts.org/docs/charts/stable/nextcloud)
|
||||||
|
|
||||||
|
**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/stable/nextcloud>
|
||||||
|
* <https://github.com/nextcloud/docker>
|
||||||
|
* <https://github.com/nextcloud/helm>
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
Kubernetes: `>=1.16.0-0`
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
| Repository | Name | Version |
|
||||||
|
|------------|------|---------|
|
||||||
|
| https://charts.truecharts.org/ | collabora-online | 12.1.37 |
|
||||||
|
| 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 `nextcloud`
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm repo add TrueCharts https://charts.truecharts.org
|
||||||
|
helm repo update
|
||||||
|
helm install nextcloud TrueCharts/nextcloud
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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 `nextcloud` deployment
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm uninstall nextcloud
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Helm
|
||||||
|
|
||||||
|
#### Available Settings
|
||||||
|
|
||||||
|
Read through the 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 nextcloud \
|
||||||
|
--set env.TZ="America/New York" \
|
||||||
|
TrueCharts/nextcloud
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 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 nextcloud TrueCharts/nextcloud -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
A private cloud server that puts the control and security of your own data back into your hands.
|
||||||
|
|
||||||
|
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/docs/charts/stable/nextcloud](https://truecharts.org/docs/charts/stable/nextcloud)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
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!
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,11 @@
|
||||||
|
env:
|
||||||
|
# IP used for exposing nextcloud
|
||||||
|
# Often the service or nodePort IP
|
||||||
|
AccessIP: "127.0.0.1"
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
|
@ -0,0 +1,457 @@
|
||||||
|
image:
|
||||||
|
repository: tccr.io/truecharts/nextcloud-fpm
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 24.0.4@sha256:2ec9476042f3e0734168ce62df0891811bc21965639a0d24483d3e2fca9596e0
|
||||||
|
|
||||||
|
nginxImage:
|
||||||
|
repository: tccr.io/truecharts/nginx-unprivileged
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 1.23.1@sha256:b608a81e03a65c9b16e6b813f83af22d3feb968465a89d32c45c6554c41d97de
|
||||||
|
|
||||||
|
imaginaryImage:
|
||||||
|
repository: h2non/imaginary
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 1.2.4@sha256:7facb4221047a5e79b9e902f380247f4e5bf4376400d0badbeb738d3e1c2f654
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
fsGroup: 33
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
port: 10020
|
||||||
|
targetPort: 8080
|
||||||
|
backend:
|
||||||
|
enabled: true
|
||||||
|
ports:
|
||||||
|
hpb:
|
||||||
|
enabled: true
|
||||||
|
port: 7867
|
||||||
|
targetPort: 7867
|
||||||
|
hpb-metrics:
|
||||||
|
enabled: true
|
||||||
|
port: 7868
|
||||||
|
targetPort: 7868
|
||||||
|
fpm:
|
||||||
|
enabled: true
|
||||||
|
port: 9000
|
||||||
|
targetPort: 9000
|
||||||
|
imaginary:
|
||||||
|
enabled: true
|
||||||
|
port: 9090
|
||||||
|
targetPort: 9090
|
||||||
|
|
||||||
|
hostAliases:
|
||||||
|
- ip: '{{ .Values.env.AccessIP | default "127.0.0.1" }}'
|
||||||
|
hostnames:
|
||||||
|
- "{{ if .Values.ingress.main.enabled }}{{ with (first .Values.ingress.main.hosts) }}{{ .host }}{{ end }}{{ else }}placeholder.fakedomain.dns{{ end }}"
|
||||||
|
|
||||||
|
secretEnv:
|
||||||
|
NEXTCLOUD_ADMIN_USER: "admin"
|
||||||
|
NEXTCLOUD_ADMIN_PASSWORD: "adminpass"
|
||||||
|
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
initialDelaySeconds: 25
|
||||||
|
httpGet:
|
||||||
|
path: /status.php
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
|
||||||
|
readiness:
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
initialDelaySeconds: 25
|
||||||
|
httpGet:
|
||||||
|
path: /status.php
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
|
||||||
|
startup:
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
initialDelaySeconds: 25
|
||||||
|
httpGet:
|
||||||
|
path: /status.php
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
|
||||||
|
initContainers:
|
||||||
|
prestart:
|
||||||
|
image: '{{ include "tc.common.images.selector" . }}'
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
privileged: true
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
/bin/bash <<'EOF'
|
||||||
|
echo "Forcing permissions on userdata folder..."
|
||||||
|
if nfs4xdr_getfacl && nfs4xdr_getfacl | grep -qv "Failed to get NFSv4 ACL"; then
|
||||||
|
echo "NFSv4 ACLs detected, Trying to override permissions using nfs4_setfacl..."
|
||||||
|
nfs4_setfacl -R -a A:g:33:RWX "/var/www/html/data"
|
||||||
|
else
|
||||||
|
echo "No NFSv4 ACLs detected, trying to override permissions using chown/chmod..."
|
||||||
|
echo "checking ownership..."
|
||||||
|
if [ $(stat -c %g .) -eq 33 ]; then
|
||||||
|
echo "Ownership already set to 33, skipping..."
|
||||||
|
else
|
||||||
|
echo "Changing ownership to group 33..."
|
||||||
|
chown -R :33 "/var/www/html/data"
|
||||||
|
fi
|
||||||
|
chmod 770 /var/www/html/data
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: "/var/www/html/data"
|
||||||
|
- name: html
|
||||||
|
mountPath: "/var/www/html"
|
||||||
|
|
||||||
|
env:
|
||||||
|
# IP used for exposing nextcloud
|
||||||
|
# Often the service or nodePort IP
|
||||||
|
# Defaults to the main serviceName for CI purposes.
|
||||||
|
AccessIP:
|
||||||
|
NEXTCLOUD_INIT_HTACCESS: true
|
||||||
|
PHP_MEMORY_LIMIT: 1G
|
||||||
|
PHP_UPLOAD_LIMIT: 10G
|
||||||
|
NEXTCLOUD_CHUNKSIZE: "31457280"
|
||||||
|
TRUSTED_PROXIES: "172.16.0.0/16 127.0.0.1"
|
||||||
|
POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
|
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
|
NC_check_data_directory_permissions: "true"
|
||||||
|
POSTGRES_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: postgresql-password
|
||||||
|
POSTGRES_HOST:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: plainporthost
|
||||||
|
REDIS_HOST:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: plainhost
|
||||||
|
REDIS_HOST_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: redis-password
|
||||||
|
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: nextcloudconfig
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
html:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/var/www/html"
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/var/www/html/data"
|
||||||
|
varrun:
|
||||||
|
enabled: true
|
||||||
|
cache:
|
||||||
|
enabled: true
|
||||||
|
type: emptyDir
|
||||||
|
mountPath: /var/cache/nginx
|
||||||
|
medium: Memory
|
||||||
|
nginx:
|
||||||
|
enabled: "true"
|
||||||
|
mountPath: "/etc/nginx"
|
||||||
|
noMount: true
|
||||||
|
readOnly: true
|
||||||
|
type: "custom"
|
||||||
|
volumeSpec:
|
||||||
|
configMap:
|
||||||
|
name: '{{ include "tc.common.names.fullname" . }}-nginx'
|
||||||
|
items:
|
||||||
|
- key: nginx.conf
|
||||||
|
path: nginx.conf
|
||||||
|
|
||||||
|
configmap:
|
||||||
|
nginx:
|
||||||
|
enabled: true
|
||||||
|
data:
|
||||||
|
nginx.conf: |-
|
||||||
|
worker_processes auto;
|
||||||
|
|
||||||
|
error_log /var/log/nginx/error.log warn;
|
||||||
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
http {
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
# Prevent nginx HTTP Server Detection
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
#gzip on;
|
||||||
|
|
||||||
|
upstream php-handler {
|
||||||
|
server 127.0.0.1:9000;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
|
# Forward Notify_Push "High Performance Backend" to it's own container
|
||||||
|
location ^~ /push/ {
|
||||||
|
proxy_pass http://127.0.0.1:7867/;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
|
||||||
|
# HSTS settings
|
||||||
|
# WARNING: Only add the preload option once you read about
|
||||||
|
# the consequences in https://hstspreload.org/. This option
|
||||||
|
# will add the domain to a hardcoded list that is shipped
|
||||||
|
# in all major browsers and getting removed from this list
|
||||||
|
# could take several months.
|
||||||
|
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
|
||||||
|
|
||||||
|
# set max upload size
|
||||||
|
client_max_body_size {{ .Values.env.PHP_UPLOAD_LIMIT | default "512M" }};
|
||||||
|
fastcgi_buffers 64 4K;
|
||||||
|
|
||||||
|
# Enable gzip but do not remove ETag headers
|
||||||
|
gzip on;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_comp_level 4;
|
||||||
|
gzip_min_length 256;
|
||||||
|
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
|
||||||
|
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
|
||||||
|
|
||||||
|
# Pagespeed is not supported by Nextcloud, so if your server is built
|
||||||
|
# with the `ngx_pagespeed` module, uncomment this line to disable it.
|
||||||
|
#pagespeed off;
|
||||||
|
|
||||||
|
# HTTP response headers borrowed from Nextcloud `.htaccess`
|
||||||
|
add_header Referrer-Policy "no-referrer" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
add_header X-Download-Options "noopen" always;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
||||||
|
add_header X-Robots-Tag "none" always;
|
||||||
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
|
|
||||||
|
# Remove X-Powered-By, which is an information leak
|
||||||
|
fastcgi_hide_header X-Powered-By;
|
||||||
|
|
||||||
|
# Path to the root of your installation
|
||||||
|
root /var/www/html;
|
||||||
|
|
||||||
|
# Specify how to handle directories -- specifying `/index.php$request_uri`
|
||||||
|
# here as the fallback means that Nginx always exhibits the desired behaviour
|
||||||
|
# when a client requests a path that corresponds to a directory that exists
|
||||||
|
# on the server. In particular, if that directory contains an index.php file,
|
||||||
|
# that file is correctly served; if it doesn't, then the request is passed to
|
||||||
|
# the front-end controller. This consistent behaviour means that we don't need
|
||||||
|
# to specify custom rules for certain paths (e.g. images and other assets,
|
||||||
|
# `/updater`, `/ocm-provider`, `/ocs-provider`), and thus
|
||||||
|
# `try_files $uri $uri/ /index.php$request_uri`
|
||||||
|
# always provides the desired behaviour.
|
||||||
|
index index.php index.html /index.php$request_uri;
|
||||||
|
|
||||||
|
# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
|
||||||
|
location = / {
|
||||||
|
if ( $http_user_agent ~ ^DavClnt ) {
|
||||||
|
return 302 /remote.php/webdav/$is_args$args;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /robots.txt {
|
||||||
|
allow all;
|
||||||
|
log_not_found off;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Make a regex exception for `/.well-known` so that clients can still
|
||||||
|
# access it despite the existence of the regex rule
|
||||||
|
# `location ~ /(\.|autotest|...)` which would otherwise handle requests
|
||||||
|
# for `/.well-known`.
|
||||||
|
location ^~ /.well-known {
|
||||||
|
# The rules in this block are an adaptation of the rules
|
||||||
|
# in `.htaccess` that concern `/.well-known`.
|
||||||
|
|
||||||
|
location = /.well-known/carddav { return 301 /remote.php/dav/; }
|
||||||
|
location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||||
|
|
||||||
|
# according to the documentation these two lines are not necessary, but some users are still recieving errors
|
||||||
|
location = /.well-known/webfinger { return 301 /index.php$uri; }
|
||||||
|
location = /.well-known/nodeinfo { return 301 /index.php$uri; }
|
||||||
|
|
||||||
|
location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
|
||||||
|
location /.well-known/pki-validation { try_files $uri $uri/ =404; }
|
||||||
|
|
||||||
|
# Let Nextcloud's API for `/.well-known` URIs handle all other
|
||||||
|
# requests by passing them to the front-end controller.
|
||||||
|
return 301 /index.php$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rules borrowed from `.htaccess` to hide certain paths from clients
|
||||||
|
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
|
||||||
|
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }
|
||||||
|
|
||||||
|
# Ensure this block, which passes PHP files to the PHP process, is above the blocks
|
||||||
|
# which handle static assets (as seen below). If this block is not declared first,
|
||||||
|
# then Nginx will encounter an infinite rewriting loop when it prepends `/index.php`
|
||||||
|
# to the URI, resulting in a HTTP 500 error response.
|
||||||
|
location ~ \.php(?:$|/) {
|
||||||
|
# Required for legacy support
|
||||||
|
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
|
||||||
|
|
||||||
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
|
set $path_info $fastcgi_path_info;
|
||||||
|
|
||||||
|
try_files $fastcgi_script_name =404;
|
||||||
|
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $path_info;
|
||||||
|
#fastcgi_param HTTPS on;
|
||||||
|
|
||||||
|
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
|
||||||
|
fastcgi_param front_controller_active true; # Enable pretty urls
|
||||||
|
fastcgi_pass php-handler;
|
||||||
|
|
||||||
|
fastcgi_intercept_errors on;
|
||||||
|
fastcgi_request_buffering off;
|
||||||
|
|
||||||
|
proxy_send_timeout 300s;
|
||||||
|
proxy_read_timeout 300s;
|
||||||
|
fastcgi_send_timeout 300s;
|
||||||
|
fastcgi_read_timeout 300s;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.(?:css|js|svg|gif)$ {
|
||||||
|
try_files $uri /index.php$request_uri;
|
||||||
|
expires 6M; # Cache-Control policy borrowed from `.htaccess`
|
||||||
|
access_log off; # Optional: Don't log access to assets
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.woff2?$ {
|
||||||
|
try_files $uri /index.php$request_uri;
|
||||||
|
expires 7d; # Cache-Control policy borrowed from `.htaccess`
|
||||||
|
access_log off; # Optional: Don't log access to assets
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rule borrowed from `.htaccess`
|
||||||
|
location /remote {
|
||||||
|
return 301 /remote.php$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cronjob:
|
||||||
|
enabled: true
|
||||||
|
generatePreviews: true
|
||||||
|
schedule: "*/5 * * * *"
|
||||||
|
annotations: {}
|
||||||
|
failedJobsHistoryLimit: 5
|
||||||
|
successfulJobsHistoryLimit: 2
|
||||||
|
|
||||||
|
hpb:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
nextcloud:
|
||||||
|
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
||||||
|
default_phone_region: ""
|
||||||
|
|
||||||
|
imaginary:
|
||||||
|
enabled: true
|
||||||
|
preview_max_x: 2048
|
||||||
|
preview_max_y: 2048
|
||||||
|
preview_max_memory: 512
|
||||||
|
preview_max_filesize_image: 150
|
||||||
|
preview_png: true
|
||||||
|
preview_jpeg: true
|
||||||
|
preview_gif: true
|
||||||
|
preview_bmp: true
|
||||||
|
preview_xbitmap: true
|
||||||
|
preview_mp3: true
|
||||||
|
preview_markdown: true
|
||||||
|
preview_opendoc: true
|
||||||
|
preview_txt: true
|
||||||
|
preview_krita: true
|
||||||
|
preview_illustrator: false
|
||||||
|
preview_heic: false
|
||||||
|
preview_movie: false
|
||||||
|
preview_msoffice2003: false
|
||||||
|
preview_msoffice2007: false
|
||||||
|
preview_msofficedoc: false
|
||||||
|
preview_pdf: false
|
||||||
|
preview_photoshop: false
|
||||||
|
preview_postscript: false
|
||||||
|
preview_staroffice: false
|
||||||
|
preview_svg: false
|
||||||
|
preview_tiff: false
|
||||||
|
preview_font: false
|
||||||
|
|
||||||
|
collabora:
|
||||||
|
enabled: false
|
||||||
|
env:
|
||||||
|
aliasgroup1:
|
||||||
|
configMapRef:
|
||||||
|
name: nextcloudconfig
|
||||||
|
key: aliasgroup1
|
||||||
|
dictionaries: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
|
||||||
|
extra_params: "--o:welcome.enable=false --o:logging.level=information --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false "
|
||||||
|
server_name: ""
|
||||||
|
DONT_GEN_SSL_CERT: true
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "dbcreds"
|
||||||
|
postgresqlUsername: nextcloud
|
||||||
|
postgresqlDatabase: nextcloud
|
||||||
|
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "rediscreds"
|
||||||
|
|
||||||
|
portal:
|
||||||
|
enabled: true
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,36 @@
|
||||||
|
{{/* Define the configmap */}}
|
||||||
|
{{- define "nextcloud.configmap" -}}
|
||||||
|
|
||||||
|
{{- $hosts := "" }}
|
||||||
|
{{- if .Values.ingress.main.enabled }}
|
||||||
|
{{- range .Values.ingress }}
|
||||||
|
{{- range $index, $host := .hosts }}
|
||||||
|
{{- if $index }}
|
||||||
|
{{ $hosts = ( printf "%v %v" $hosts $host.host ) }}
|
||||||
|
{{- else }}
|
||||||
|
{{ $hosts = ( printf "%s" $host.host ) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: nextcloudconfig
|
||||||
|
data:
|
||||||
|
{{- $aliasgroup1 := ( printf "http://%s" ( .Values.env.AccessIP | default ( printf "%v-%v" .Release.Name "nextcloud" ) ) ) }}
|
||||||
|
{{- if .Values.ingress.main.enabled }}
|
||||||
|
{{- with (first .Values.ingress.main.hosts) }}
|
||||||
|
{{- $aliasgroup1 = ( printf "https://%s" .host ) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
aliasgroup1: {{ $aliasgroup1 }}
|
||||||
|
NEXTCLOUD_TRUSTED_DOMAINS: {{ ( printf "%v %v %v %v %v %v %v %v" "test.fakedomain.dns" "localhost" "127.0.0.1" ( printf "%v:%v" "127.0.0.1" .Values.service.main.ports.main.port ) ( .Values.env.AccessIP | default "localhost" ) ( printf "%v-%v" .Release.Name "nextcloud" ) ( printf "%v-%v" .Release.Name "nextcloud-backend" ) $hosts ) | quote }}
|
||||||
|
{{- if .Values.ingress.main.enabled }}
|
||||||
|
APACHE_DISABLE_REWRITE_IP: "1"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,64 @@
|
||||||
|
{{/* Define the cronjob */}}
|
||||||
|
{{- define "nextcloud.cronjob" -}}
|
||||||
|
{{- if .Values.cronjob.enabled -}}
|
||||||
|
{{- $jobName := include "tc.common.names.fullname" . }}
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: {{ printf "%s-cronjob" $jobName }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
schedule: "{{ .Values.cronjob.schedule }}"
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
{{- with .Values.cronjob.failedJobsHistoryLimit }}
|
||||||
|
failedJobsHistoryLimit: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.cronjob.successfulJobsHistoryLimit }}
|
||||||
|
successfulJobsHistoryLimit: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
jobTemplate:
|
||||||
|
metadata:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
{{- with (include "tc.common.controller.volumes" . | trim) }}
|
||||||
|
volumes:
|
||||||
|
{{- nindent 12 . }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: {{ .Chart.Name }}
|
||||||
|
image: '{{ include "tc.common.images.selector" . }}'
|
||||||
|
imagePullPolicy: {{ default .Values.image.pullPolicy }}
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
/bin/bash <<'EOF'
|
||||||
|
echo "running nextcloud cronjob..."
|
||||||
|
php -f /var/www/html/cron.php
|
||||||
|
echo "cronjob finished"
|
||||||
|
{{- if .Values.cronjob.generatePreviews }}
|
||||||
|
echo "Pre-generating Previews..."
|
||||||
|
php /var/www/html/occ preview:pre-generate
|
||||||
|
echo "Previews generated."
|
||||||
|
{{- end }}
|
||||||
|
EOF
|
||||||
|
# Will mount configuration files as www-data (id: 33) by default for nextcloud
|
||||||
|
{{- with (include "tc.common.controller.volumeMounts" . | trim) }}
|
||||||
|
volumeMounts:
|
||||||
|
{{ nindent 16 . }}
|
||||||
|
{{- end }}
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 33
|
||||||
|
runAsGroup: 33
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
resources:
|
||||||
|
{{ toYaml .Values.resources | indent 16 }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,164 @@
|
||||||
|
{{/* Define the hbp container */}}
|
||||||
|
{{- define "nextcloud.hpb" -}}
|
||||||
|
{{- $jobName := include "tc.common.names.fullname" . }}
|
||||||
|
image: '{{ include "tc.common.images.selector" . }}'
|
||||||
|
imagePullPolicy: '{{ .Values.image.pullPolicy }}'
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 33
|
||||||
|
runAsGroup: 33
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
{{- with (include "tc.common.controller.volumeMounts" . | trim) }}
|
||||||
|
volumeMounts:
|
||||||
|
{{ nindent 2 . }}
|
||||||
|
{{- end }}
|
||||||
|
ports:
|
||||||
|
- containerPort: 7867
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /push/test/cookie
|
||||||
|
port: 7867
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /push/test/cookie
|
||||||
|
port: 7867
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /push/test/cookie
|
||||||
|
port: 7867
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
/bin/bash <<'EOF'
|
||||||
|
set -m
|
||||||
|
echo "Waiting for notify_push file to be available..."
|
||||||
|
until [ -f /var/www/html/custom_apps/notify_push/bin/x86_64/notify_push ]
|
||||||
|
do
|
||||||
|
sleep 10
|
||||||
|
echo "Notify_push app not found... waiting..."
|
||||||
|
done
|
||||||
|
echo "Waiting for Nextcloud to start..."
|
||||||
|
until $(curl --output /dev/null --silent --head --fail -H "Host: test.fakedomain.dns" http://127.0.0.1:8080/status.php); do
|
||||||
|
echo "Nextcloud not responding... waiting..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
until $(curl --silent --fail -H "Host: test.fakedomain.dns" http://127.0.0.1:8080/status.php | jq --raw-output '.installed' | grep "true"); do
|
||||||
|
echo "Nextcloud not installed... waiting..."
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
echo "Nextcloud instance with Notify_push found... Launching High Performance Backend..."
|
||||||
|
/var/www/html/custom_apps/notify_push/bin/x86_64/notify_push /var/www/html/config/config.php &
|
||||||
|
|
||||||
|
{{- $accessurl := ( printf "http://%v:%v" ( .Values.env.AccessIP | default ( printf "%v-%v" .Release.Name "nextcloud" ) ) .Values.service.main.ports.main.port ) }}
|
||||||
|
{{- if .Values.ingress.main.enabled }}
|
||||||
|
{{- with (first .Values.ingress.main.hosts) }}
|
||||||
|
{{- $accessurl = ( printf "https://%s" .host ) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
echo "Configuring CLI url..."
|
||||||
|
php /var/www/html/occ config:system:set overwrite.cli.url --value='{{ $accessurl }}/'
|
||||||
|
|
||||||
|
{{- if .Values.imaginary.enabled }}
|
||||||
|
echo "Imaginary High Performance Previews enabled, enabling it on Nextcloud..."
|
||||||
|
php /var/www/html/occ config:system:set preview_imaginary_url --value='http://127.0.0.1:9090'
|
||||||
|
php /var/www/html/occ config:system:set preview_max_x --value='{{ .Values.imaginary.preview_max_x }}'
|
||||||
|
php /var/www/html/occ config:system:set preview_max_y --value='{{ .Values.imaginary.preview_max_y }}'
|
||||||
|
php /var/www/html/occ config:system:set preview_max_memory --value='{{ .Values.imaginary.preview_max_memory }}'
|
||||||
|
php /var/www/html/occ config:system:set preview_max_filesize_image --value='{{ .Values.imaginary.preview_max_filesize_image }}'
|
||||||
|
# Remove all preview providers and re-add only selected
|
||||||
|
php /var/www/html/occ config:system:delete enabledPreviewProviders
|
||||||
|
# Add imaginary always
|
||||||
|
{{ $c := 0 }} # Initialize counter
|
||||||
|
php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Imaginary'{{ $c = add1 $c }}
|
||||||
|
{{ if .Values.imaginary.preview_png }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\PNG'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_jpeg }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\JPEG'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_gif }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\GIF'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_bmp }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\BMP'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_xbitmap }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\XBitmap'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_mp3 }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\MP3'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_markdown }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\MarkDown'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_opendoc }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\OpenDocument'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_txt }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\TXT'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_krita }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Krita'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_illustrator }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Illustrator'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_heic }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\HEIC'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_movie }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Movie'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_msoffice2003 }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\MSOffice2003'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_msoffice2007 }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\MSOffice2007'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_msofficedoc }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\MSOfficeDoc'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_pdf }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\PDF'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_photoshop }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Photoshop'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_postscript }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Postscript'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_staroffice }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\StarOffice'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_svg }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\SVG'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_tiff }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\TIFF'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{ if .Values.imaginary.preview_font }}php /var/www/html/occ config:system:set enabledPreviewProviders {{ $c }} --value='OC\Preview\Font'{{ $c = add1 $c }}{{ end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
# Set default phone region
|
||||||
|
{{- with .Values.nextcloud.default_phone_region | upper }}
|
||||||
|
php /var/www/html/occ config:system:set default_phone_region --value='{{ . }}'
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
echo "Configuring High Performance Backend for url: {{ $accessurl }}"
|
||||||
|
php /var/www/html/occ config:app:set notify_push base_endpoint --value='{{ $accessurl }}/push'
|
||||||
|
fg
|
||||||
|
EOF
|
||||||
|
env:
|
||||||
|
- name: NEXTCLOUD_URL
|
||||||
|
value: 'http://127.0.0.1:8080'
|
||||||
|
- name: METRICS_PORT
|
||||||
|
value: '7868'
|
||||||
|
- name: TRUSTED_PROXIES
|
||||||
|
value: "{{ .Values.env.TRUSTED_PROXIES }}"
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: postgresql-password
|
||||||
|
- name: POSTGRES_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: plainporthost
|
||||||
|
- name: REDIS_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: plainhost
|
||||||
|
- name: REDIS_HOST_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: redis-password
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: nextcloudconfig
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,40 @@
|
||||||
|
{{/* Define the imaginary container */}}
|
||||||
|
{{- define "nextcloud.imaginary" -}}
|
||||||
|
image: {{ .Values.imaginaryImage.repository }}:{{ .Values.imaginaryImage.tag }}
|
||||||
|
imagePullPolicy: '{{ .Values.image.pullPolicy }}'
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 33
|
||||||
|
runAsGroup: 33
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
ports:
|
||||||
|
- containerPort: 9090
|
||||||
|
args: ["-enable-url-source"]
|
||||||
|
env:
|
||||||
|
- name: 'PORT'
|
||||||
|
value: '9090'
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9090
|
||||||
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9090
|
||||||
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9090
|
||||||
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,54 @@
|
||||||
|
{{/* Define the nginx container */}}
|
||||||
|
{{- define "nextcloud.nginx" -}}
|
||||||
|
image: {{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}
|
||||||
|
imagePullPolicy: '{{ .Values.image.pullPolicy }}'
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 33
|
||||||
|
runAsGroup: 33
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: true
|
||||||
|
{{- with (include "tc.common.controller.volumeMounts" . | trim) }}
|
||||||
|
volumeMounts:
|
||||||
|
{{ nindent 2 . }}
|
||||||
|
{{- end }}
|
||||||
|
- mountPath: /etc/nginx/nginx.conf
|
||||||
|
name: nginx
|
||||||
|
readOnly: true
|
||||||
|
subPath: nginx.conf
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /robots.txt
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.readiness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.readiness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.readiness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.readiness.spec.failureThreshold }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /robots.txt
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.liveness.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.liveness.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.liveness.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.liveness.spec.failureThreshold }}
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /robots.txt
|
||||||
|
port: 8080
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "test.fakedomain.dns"
|
||||||
|
initialDelaySeconds: {{ .Values.probes.startup.spec.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.probes.startup.spec.periodSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.probes.startup.spec.timeoutSeconds }}
|
||||||
|
failureThreshold: {{ .Values.probes.startup.spec.failureThreshold }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render configmap for nextcloud */}}
|
||||||
|
{{- include "nextcloud.configmap" . }}
|
||||||
|
|
||||||
|
{{- $newMiddlewares := append .Values.ingress.main.fixedMiddlewares "tc-nextcloud-chain" }}
|
||||||
|
{{- $_ := set .Values.ingress.main "fixedMiddlewares" $newMiddlewares -}}
|
||||||
|
|
||||||
|
{{- $_ := set .Values.additionalContainers "nginx" (include "nextcloud.nginx" . | fromYaml) -}}
|
||||||
|
{{- if .Values.imaginary.enabled -}}
|
||||||
|
{{- $_ := set .Values.additionalContainers "imaginary" (include "nextcloud.imaginary" . | fromYaml) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if .Values.hpb.enabled -}}
|
||||||
|
{{- $_ := set .Values.additionalContainers "hpb" (include "nextcloud.hpb" . | fromYaml) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|
||||||
|
{{/* Render cronjob for nextcloud */}}
|
||||||
|
{{- include "nextcloud.cronjob" . }}
|
|
@ -0,0 +1,99 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.6](https://github.com/truecharts/charts/compare/traefik-13.3.5...traefik-13.3.6) (2022-09-09)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- move docs from website repo ([#3722](https://github.com/truecharts/charts/issues/3722))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.5](https://github.com/truecharts/charts/compare/traefik-13.3.4...traefik-13.3.5) (2022-09-04)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update docker general non-major ([#3681](https://github.com/truecharts/charts/issues/3681))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.4](https://github.com/truecharts/charts/compare/traefik-13.3.3...traefik-13.3.4) (2022-09-03)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- fix serviceaccount creation on few apps ([#3665](https://github.com/truecharts/charts/issues/3665))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.3](https://github.com/truecharts/charts/compare/traefik-13.3.1...traefik-13.3.3) (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))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.2](https://github.com/truecharts/charts/compare/traefik-13.3.1...traefik-13.3.2) (2022-08-30)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update helm chart common to v10.5.5 ([#3626](https://github.com/truecharts/charts/issues/3626))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.1](https://github.com/truecharts/charts/compare/traefik-13.3.0...traefik-13.3.1) (2022-08-29)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update helm general non-major ([#3619](https://github.com/truecharts/charts/issues/3619))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.3.0](https://github.com/truecharts/charts/compare/traefik-13.2.3...traefik-13.3.0) (2022-08-27)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- add support for proxyProtocol ([#3593](https://github.com/truecharts/charts/issues/3593))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.2.3](https://github.com/truecharts/charts/compare/traefik-13.2.2...traefik-13.2.3) (2022-08-25)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.2.2](https://github.com/truecharts/charts/compare/traefik-13.2.1...traefik-13.2.2) (2022-08-23)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- update helm general non-major helm releases ([#3545](https://github.com/truecharts/charts/issues/3545))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.2.1](https://github.com/truecharts/charts/compare/traefik-13.1.10...traefik-13.2.1) (2022-08-22)
|
||||||
|
|
||||||
|
### Chore
|
||||||
|
|
||||||
|
- Auto-update chart README [skip ci]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.2.0](https://github.com/truecharts/charts/compare/traefik-13.1.10...traefik-13.2.0) (2022-08-21)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [traefik-13.1.10](https://github.com/truecharts/charts/compare/traefik-13.1.9...traefik-13.1.10) (2022-08-14)
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://library-charts.truecharts.org
|
||||||
|
version: 10.5.7
|
||||||
|
digest: sha256:b72267dc4ec6ba94956fa8ad26ab0a92f7eaf6f95558581564b160ff9dc54606
|
||||||
|
generated: "2022-09-09T20:21:27.935873501Z"
|
|
@ -0,0 +1,31 @@
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: "2.8.4"
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://library-charts.truecharts.org
|
||||||
|
version: 10.5.7
|
||||||
|
deprecated: false
|
||||||
|
description: Traefik is a flexible reverse proxy and Ingress Provider.
|
||||||
|
home: https://truecharts.org/docs/charts/stable/traefik
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/traefik.png
|
||||||
|
keywords:
|
||||||
|
- traefik
|
||||||
|
- ingress
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
|
maintainers:
|
||||||
|
- email: info@truecharts.org
|
||||||
|
name: TrueCharts
|
||||||
|
url: https://truecharts.org
|
||||||
|
name: traefik
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/stable/traefik
|
||||||
|
- https://github.com/traefik/traefik
|
||||||
|
- https://github.com/traefik/traefik-helm-chart
|
||||||
|
- https://traefik.io/
|
||||||
|
type: application
|
||||||
|
version: 13.3.6
|
||||||
|
annotations:
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- network
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
|
truecharts.org/grade: U
|
|
@ -0,0 +1,110 @@
|
||||||
|
# traefik
|
||||||
|
|
||||||
|
![Version: 13.3.6](https://img.shields.io/badge/Version-13.3.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.4](https://img.shields.io/badge/AppVersion-2.8.4-informational?style=flat-square)
|
||||||
|
|
||||||
|
Traefik is a flexible reverse proxy and Ingress Provider.
|
||||||
|
|
||||||
|
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: [traefik](https://truecharts.org/docs/charts/stable/traefik)
|
||||||
|
|
||||||
|
**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/stable/traefik>
|
||||||
|
* <https://github.com/traefik/traefik>
|
||||||
|
* <https://github.com/traefik/traefik-helm-chart>
|
||||||
|
* <https://traefik.io/>
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
Kubernetes: `>=1.16.0-0`
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
| Repository | Name | Version |
|
||||||
|
|------------|------|---------|
|
||||||
|
| https://library-charts.truecharts.org | common | 10.5.7 |
|
||||||
|
|
||||||
|
## 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 `traefik`
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm repo add TrueCharts https://charts.truecharts.org
|
||||||
|
helm repo update
|
||||||
|
helm install traefik TrueCharts/traefik
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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 `traefik` deployment
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm uninstall traefik
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Helm
|
||||||
|
|
||||||
|
#### Available Settings
|
||||||
|
|
||||||
|
Read through the 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 traefik \
|
||||||
|
--set env.TZ="America/New York" \
|
||||||
|
TrueCharts/traefik
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 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 traefik TrueCharts/traefik -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
Traefik is a flexible reverse proxy and Ingress Provider.
|
||||||
|
|
||||||
|
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/docs/charts/stable/traefik](https://truecharts.org/docs/charts/stable/traefik)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
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!
|
Binary file not shown.
|
@ -0,0 +1,209 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: ingressroutes.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: IngressRoute
|
||||||
|
listKind: IngressRouteList
|
||||||
|
plural: ingressroutes
|
||||||
|
singular: ingressroute
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: IngressRoute is an Ingress CRD specification.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description:
|
||||||
|
IngressRouteSpec is a specification for a IngressRouteSpec
|
||||||
|
resource.
|
||||||
|
properties:
|
||||||
|
entryPoints:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
routes:
|
||||||
|
items:
|
||||||
|
description: Route contains the set of routes.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Rule
|
||||||
|
type: string
|
||||||
|
match:
|
||||||
|
type: string
|
||||||
|
middlewares:
|
||||||
|
items:
|
||||||
|
description: MiddlewareRef is a ref to the Middleware resources.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
priority:
|
||||||
|
type: integer
|
||||||
|
services:
|
||||||
|
items:
|
||||||
|
description: Service defines an upstream to proxy traffic.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Service
|
||||||
|
- TraefikService
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
Name is a reference to a Kubernetes Service
|
||||||
|
object (for a load-balancer of servers), or to a TraefikService
|
||||||
|
object (service load-balancer, mirroring, etc). The
|
||||||
|
differentiation between the two is specified in the
|
||||||
|
Kind field.
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
passHostHeader:
|
||||||
|
type: boolean
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseForwarding:
|
||||||
|
description:
|
||||||
|
ResponseForwarding holds configuration for
|
||||||
|
the forward of the response.
|
||||||
|
properties:
|
||||||
|
flushInterval:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
serversTransport:
|
||||||
|
type: string
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration
|
||||||
|
based on cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
strategy:
|
||||||
|
type: string
|
||||||
|
weight:
|
||||||
|
description:
|
||||||
|
Weight should only be specified when Name
|
||||||
|
references a TraefikService object (and to be precise,
|
||||||
|
one that embeds a Weighted Round Robin).
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- kind
|
||||||
|
- match
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
tls:
|
||||||
|
description:
|
||||||
|
"TLS contains the TLS certificates configuration of the
|
||||||
|
routes. To enable Let's Encrypt, use an empty TLS struct, e.g. in
|
||||||
|
YAML: \n \t tls: {} # inline format \n \t tls: \t secretName:
|
||||||
|
# block format"
|
||||||
|
properties:
|
||||||
|
certResolver:
|
||||||
|
type: string
|
||||||
|
domains:
|
||||||
|
items:
|
||||||
|
description: Domain holds a domain name with SANs.
|
||||||
|
properties:
|
||||||
|
main:
|
||||||
|
type: string
|
||||||
|
sans:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
options:
|
||||||
|
description:
|
||||||
|
Options is a reference to a TLSOption, that specifies
|
||||||
|
the parameters of the TLS connection.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
secretName:
|
||||||
|
description:
|
||||||
|
SecretName is the name of the referenced Kubernetes
|
||||||
|
Secret to specify the certificate details.
|
||||||
|
type: string
|
||||||
|
store:
|
||||||
|
description:
|
||||||
|
Store is a reference to a TLSStore, that specifies
|
||||||
|
the parameters of the TLS store.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- routes
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,169 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: ingressroutetcps.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: IngressRouteTCP
|
||||||
|
listKind: IngressRouteTCPList
|
||||||
|
plural: ingressroutetcps
|
||||||
|
singular: ingressroutetcp
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: IngressRouteTCP is an Ingress CRD specification.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description:
|
||||||
|
IngressRouteTCPSpec is a specification for a IngressRouteTCPSpec
|
||||||
|
resource.
|
||||||
|
properties:
|
||||||
|
entryPoints:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
routes:
|
||||||
|
items:
|
||||||
|
description: RouteTCP contains the set of routes.
|
||||||
|
properties:
|
||||||
|
match:
|
||||||
|
type: string
|
||||||
|
middlewares:
|
||||||
|
description:
|
||||||
|
Middlewares contains references to MiddlewareTCP
|
||||||
|
resources.
|
||||||
|
items:
|
||||||
|
description:
|
||||||
|
ObjectReference is a generic reference to a Traefik
|
||||||
|
resource.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
services:
|
||||||
|
items:
|
||||||
|
description: ServiceTCP defines an upstream to proxy traffic.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
proxyProtocol:
|
||||||
|
description: ProxyProtocol holds the ProxyProtocol configuration.
|
||||||
|
properties:
|
||||||
|
version:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
terminationDelay:
|
||||||
|
type: integer
|
||||||
|
weight:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- port
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- match
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
tls:
|
||||||
|
description:
|
||||||
|
"TLSTCP contains the TLS certificates configuration of
|
||||||
|
the routes. To enable Let's Encrypt, use an empty TLS struct, e.g.
|
||||||
|
in YAML: \n \t tls: {} # inline format \n \t tls: \t secretName:
|
||||||
|
# block format"
|
||||||
|
properties:
|
||||||
|
certResolver:
|
||||||
|
type: string
|
||||||
|
domains:
|
||||||
|
items:
|
||||||
|
description: Domain holds a domain name with SANs.
|
||||||
|
properties:
|
||||||
|
main:
|
||||||
|
type: string
|
||||||
|
sans:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
options:
|
||||||
|
description:
|
||||||
|
Options is a reference to a TLSOption, that specifies
|
||||||
|
the parameters of the TLS connection.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
passthrough:
|
||||||
|
type: boolean
|
||||||
|
secretName:
|
||||||
|
description:
|
||||||
|
SecretName is the name of the referenced Kubernetes
|
||||||
|
Secret to specify the certificate details.
|
||||||
|
type: string
|
||||||
|
store:
|
||||||
|
description:
|
||||||
|
Store is a reference to a TLSStore, that specifies
|
||||||
|
the parameters of the TLS store.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- routes
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,87 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: ingressrouteudps.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: IngressRouteUDP
|
||||||
|
listKind: IngressRouteUDPList
|
||||||
|
plural: ingressrouteudps
|
||||||
|
singular: ingressrouteudp
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: IngressRouteUDP is an Ingress CRD specification.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description:
|
||||||
|
IngressRouteUDPSpec is a specification for a IngressRouteUDPSpec
|
||||||
|
resource.
|
||||||
|
properties:
|
||||||
|
entryPoints:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
routes:
|
||||||
|
items:
|
||||||
|
description: RouteUDP contains the set of routes.
|
||||||
|
properties:
|
||||||
|
services:
|
||||||
|
items:
|
||||||
|
description: ServiceUDP defines an upstream to proxy traffic.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
weight:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- port
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- routes
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,587 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: middlewares.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: Middleware
|
||||||
|
listKind: MiddlewareList
|
||||||
|
plural: middlewares
|
||||||
|
singular: middleware
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: Middleware is a specification for a Middleware resource.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description: MiddlewareSpec holds the Middleware configuration.
|
||||||
|
properties:
|
||||||
|
addPrefix:
|
||||||
|
description: AddPrefix holds the AddPrefix configuration.
|
||||||
|
properties:
|
||||||
|
prefix:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
basicAuth:
|
||||||
|
description: BasicAuth holds the HTTP basic authentication configuration.
|
||||||
|
properties:
|
||||||
|
headerField:
|
||||||
|
type: string
|
||||||
|
realm:
|
||||||
|
type: string
|
||||||
|
removeHeader:
|
||||||
|
type: boolean
|
||||||
|
secret:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
buffering:
|
||||||
|
description: Buffering holds the request/response buffering configuration.
|
||||||
|
properties:
|
||||||
|
maxRequestBodyBytes:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
maxResponseBodyBytes:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
memRequestBodyBytes:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
memResponseBodyBytes:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
retryExpression:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
chain:
|
||||||
|
description: Chain holds a chain of middlewares.
|
||||||
|
properties:
|
||||||
|
middlewares:
|
||||||
|
items:
|
||||||
|
description: MiddlewareRef is a ref to the Middleware resources.
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
circuitBreaker:
|
||||||
|
description: CircuitBreaker holds the circuit breaker configuration.
|
||||||
|
properties:
|
||||||
|
expression:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
compress:
|
||||||
|
description: Compress holds the compress configuration.
|
||||||
|
properties:
|
||||||
|
excludedContentTypes:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
contentType:
|
||||||
|
description:
|
||||||
|
ContentType middleware - or rather its unique `autoDetect`
|
||||||
|
option - specifies whether to let the `Content-Type` header, if
|
||||||
|
it has not been set by the backend, be automatically set to a value
|
||||||
|
derived from the contents of the response. As a proxy, the default
|
||||||
|
behavior should be to leave the header alone, regardless of what
|
||||||
|
the backend did with it. However, the historic default was to always
|
||||||
|
auto-detect and set the header if it was nil, and it is going to
|
||||||
|
be kept that way in order to support users currently relying on
|
||||||
|
it. This middleware exists to enable the correct behavior until
|
||||||
|
at least the default one can be changed in a future version.
|
||||||
|
properties:
|
||||||
|
autoDetect:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
digestAuth:
|
||||||
|
description: DigestAuth holds the Digest HTTP authentication configuration.
|
||||||
|
properties:
|
||||||
|
headerField:
|
||||||
|
type: string
|
||||||
|
realm:
|
||||||
|
type: string
|
||||||
|
removeHeader:
|
||||||
|
type: boolean
|
||||||
|
secret:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
errors:
|
||||||
|
description: ErrorPage holds the custom error page configuration.
|
||||||
|
properties:
|
||||||
|
query:
|
||||||
|
type: string
|
||||||
|
service:
|
||||||
|
description: Service defines an upstream to proxy traffic.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Service
|
||||||
|
- TraefikService
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
Name is a reference to a Kubernetes Service object
|
||||||
|
(for a load-balancer of servers), or to a TraefikService
|
||||||
|
object (service load-balancer, mirroring, etc). The differentiation
|
||||||
|
between the two is specified in the Kind field.
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
passHostHeader:
|
||||||
|
type: boolean
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseForwarding:
|
||||||
|
description:
|
||||||
|
ResponseForwarding holds configuration for the
|
||||||
|
forward of the response.
|
||||||
|
properties:
|
||||||
|
flushInterval:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
serversTransport:
|
||||||
|
type: string
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration based
|
||||||
|
on cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
strategy:
|
||||||
|
type: string
|
||||||
|
weight:
|
||||||
|
description:
|
||||||
|
Weight should only be specified when Name references
|
||||||
|
a TraefikService object (and to be precise, one that embeds
|
||||||
|
a Weighted Round Robin).
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
forwardAuth:
|
||||||
|
description: ForwardAuth holds the http forward authentication configuration.
|
||||||
|
properties:
|
||||||
|
address:
|
||||||
|
type: string
|
||||||
|
authRequestHeaders:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
authResponseHeaders:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
authResponseHeadersRegex:
|
||||||
|
type: string
|
||||||
|
tls:
|
||||||
|
description: ClientTLS holds TLS specific configurations as client.
|
||||||
|
properties:
|
||||||
|
caOptional:
|
||||||
|
type: boolean
|
||||||
|
caSecret:
|
||||||
|
type: string
|
||||||
|
certSecret:
|
||||||
|
type: string
|
||||||
|
insecureSkipVerify:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
trustForwardHeader:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
headers:
|
||||||
|
description: Headers holds the custom header configuration.
|
||||||
|
properties:
|
||||||
|
accessControlAllowCredentials:
|
||||||
|
description:
|
||||||
|
AccessControlAllowCredentials is only valid if true.
|
||||||
|
false is ignored.
|
||||||
|
type: boolean
|
||||||
|
accessControlAllowHeaders:
|
||||||
|
description:
|
||||||
|
AccessControlAllowHeaders must be used in response
|
||||||
|
to a preflight request with Access-Control-Request-Headers set.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
accessControlAllowMethods:
|
||||||
|
description:
|
||||||
|
AccessControlAllowMethods must be used in response
|
||||||
|
to a preflight request with Access-Control-Request-Method set.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
accessControlAllowOriginList:
|
||||||
|
description:
|
||||||
|
AccessControlAllowOriginList is a list of allowable
|
||||||
|
origins. Can also be a wildcard origin "*".
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
accessControlAllowOriginListRegex:
|
||||||
|
description:
|
||||||
|
AccessControlAllowOriginListRegex is a list of allowable
|
||||||
|
origins written following the Regular Expression syntax (https://golang.org/pkg/regexp/).
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
accessControlExposeHeaders:
|
||||||
|
description:
|
||||||
|
AccessControlExposeHeaders sets valid headers for
|
||||||
|
the response.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
accessControlMaxAge:
|
||||||
|
description:
|
||||||
|
AccessControlMaxAge sets the time that a preflight
|
||||||
|
request may be cached.
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
addVaryHeader:
|
||||||
|
description:
|
||||||
|
AddVaryHeader controls if the Vary header is automatically
|
||||||
|
added/updated when the AccessControlAllowOriginList is set.
|
||||||
|
type: boolean
|
||||||
|
allowedHosts:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
browserXssFilter:
|
||||||
|
type: boolean
|
||||||
|
contentSecurityPolicy:
|
||||||
|
type: string
|
||||||
|
contentTypeNosniff:
|
||||||
|
type: boolean
|
||||||
|
customBrowserXSSValue:
|
||||||
|
type: string
|
||||||
|
customFrameOptionsValue:
|
||||||
|
type: string
|
||||||
|
customRequestHeaders:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
customResponseHeaders:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
featurePolicy:
|
||||||
|
type: string
|
||||||
|
forceSTSHeader:
|
||||||
|
type: boolean
|
||||||
|
frameDeny:
|
||||||
|
type: boolean
|
||||||
|
hostsProxyHeaders:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
isDevelopment:
|
||||||
|
type: boolean
|
||||||
|
publicKey:
|
||||||
|
type: string
|
||||||
|
referrerPolicy:
|
||||||
|
type: string
|
||||||
|
sslForceHost:
|
||||||
|
description: "Deprecated: use RedirectRegex instead."
|
||||||
|
type: boolean
|
||||||
|
sslHost:
|
||||||
|
description: "Deprecated: use RedirectRegex instead."
|
||||||
|
type: string
|
||||||
|
sslProxyHeaders:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
sslRedirect:
|
||||||
|
description:
|
||||||
|
"Deprecated: use EntryPoint redirection or RedirectScheme
|
||||||
|
instead."
|
||||||
|
type: boolean
|
||||||
|
sslTemporaryRedirect:
|
||||||
|
description:
|
||||||
|
"Deprecated: use EntryPoint redirection or RedirectScheme
|
||||||
|
instead."
|
||||||
|
type: boolean
|
||||||
|
stsIncludeSubdomains:
|
||||||
|
type: boolean
|
||||||
|
stsPreload:
|
||||||
|
type: boolean
|
||||||
|
stsSeconds:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
inFlightReq:
|
||||||
|
description:
|
||||||
|
InFlightReq limits the number of requests being processed
|
||||||
|
and served concurrently.
|
||||||
|
properties:
|
||||||
|
amount:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
sourceCriterion:
|
||||||
|
description:
|
||||||
|
SourceCriterion defines what criterion is used to
|
||||||
|
group requests as originating from a common source. If none
|
||||||
|
are set, the default is to use the request's remote address
|
||||||
|
field. All fields are mutually exclusive.
|
||||||
|
properties:
|
||||||
|
ipStrategy:
|
||||||
|
description: IPStrategy holds the ip strategy configuration.
|
||||||
|
properties:
|
||||||
|
depth:
|
||||||
|
type: integer
|
||||||
|
excludedIPs:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
requestHeaderName:
|
||||||
|
type: string
|
||||||
|
requestHost:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
ipWhiteList:
|
||||||
|
description: IPWhiteList holds the ip white list configuration.
|
||||||
|
properties:
|
||||||
|
ipStrategy:
|
||||||
|
description: IPStrategy holds the ip strategy configuration.
|
||||||
|
properties:
|
||||||
|
depth:
|
||||||
|
type: integer
|
||||||
|
excludedIPs:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
sourceRange:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
passTLSClientCert:
|
||||||
|
description: PassTLSClientCert holds the TLS client cert headers configuration.
|
||||||
|
properties:
|
||||||
|
info:
|
||||||
|
description:
|
||||||
|
TLSClientCertificateInfo holds the client TLS certificate
|
||||||
|
info configuration.
|
||||||
|
properties:
|
||||||
|
issuer:
|
||||||
|
description:
|
||||||
|
TLSCLientCertificateDNInfo holds the client TLS
|
||||||
|
certificate distinguished name info configuration. cf https://tools.ietf.org/html/rfc3739
|
||||||
|
properties:
|
||||||
|
commonName:
|
||||||
|
type: boolean
|
||||||
|
country:
|
||||||
|
type: boolean
|
||||||
|
domainComponent:
|
||||||
|
type: boolean
|
||||||
|
locality:
|
||||||
|
type: boolean
|
||||||
|
organization:
|
||||||
|
type: boolean
|
||||||
|
province:
|
||||||
|
type: boolean
|
||||||
|
serialNumber:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
notAfter:
|
||||||
|
type: boolean
|
||||||
|
notBefore:
|
||||||
|
type: boolean
|
||||||
|
sans:
|
||||||
|
type: boolean
|
||||||
|
serialNumber:
|
||||||
|
type: boolean
|
||||||
|
subject:
|
||||||
|
description:
|
||||||
|
TLSCLientCertificateDNInfo holds the client TLS
|
||||||
|
certificate distinguished name info configuration. cf https://tools.ietf.org/html/rfc3739
|
||||||
|
properties:
|
||||||
|
commonName:
|
||||||
|
type: boolean
|
||||||
|
country:
|
||||||
|
type: boolean
|
||||||
|
domainComponent:
|
||||||
|
type: boolean
|
||||||
|
locality:
|
||||||
|
type: boolean
|
||||||
|
organization:
|
||||||
|
type: boolean
|
||||||
|
province:
|
||||||
|
type: boolean
|
||||||
|
serialNumber:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
pem:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
plugin:
|
||||||
|
additionalProperties:
|
||||||
|
x-kubernetes-preserve-unknown-fields: true
|
||||||
|
type: object
|
||||||
|
rateLimit:
|
||||||
|
description:
|
||||||
|
RateLimit holds the rate limiting configuration for a
|
||||||
|
given router.
|
||||||
|
properties:
|
||||||
|
average:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
burst:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
period:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
sourceCriterion:
|
||||||
|
description:
|
||||||
|
SourceCriterion defines what criterion is used to
|
||||||
|
group requests as originating from a common source. If none
|
||||||
|
are set, the default is to use the request's remote address
|
||||||
|
field. All fields are mutually exclusive.
|
||||||
|
properties:
|
||||||
|
ipStrategy:
|
||||||
|
description: IPStrategy holds the ip strategy configuration.
|
||||||
|
properties:
|
||||||
|
depth:
|
||||||
|
type: integer
|
||||||
|
excludedIPs:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
requestHeaderName:
|
||||||
|
type: string
|
||||||
|
requestHost:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
redirectRegex:
|
||||||
|
description: RedirectRegex holds the redirection configuration.
|
||||||
|
properties:
|
||||||
|
permanent:
|
||||||
|
type: boolean
|
||||||
|
regex:
|
||||||
|
type: string
|
||||||
|
replacement:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
redirectScheme:
|
||||||
|
description: RedirectScheme holds the scheme redirection configuration.
|
||||||
|
properties:
|
||||||
|
permanent:
|
||||||
|
type: boolean
|
||||||
|
port:
|
||||||
|
type: string
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
replacePath:
|
||||||
|
description: ReplacePath holds the ReplacePath configuration.
|
||||||
|
properties:
|
||||||
|
path:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
replacePathRegex:
|
||||||
|
description: ReplacePathRegex holds the ReplacePathRegex configuration.
|
||||||
|
properties:
|
||||||
|
regex:
|
||||||
|
type: string
|
||||||
|
replacement:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
retry:
|
||||||
|
description: Retry holds the retry configuration.
|
||||||
|
properties:
|
||||||
|
attempts:
|
||||||
|
type: integer
|
||||||
|
initialInterval:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
type: object
|
||||||
|
stripPrefix:
|
||||||
|
description: StripPrefix holds the StripPrefix configuration.
|
||||||
|
properties:
|
||||||
|
forceSlash:
|
||||||
|
type: boolean
|
||||||
|
prefixes:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
stripPrefixRegex:
|
||||||
|
description: StripPrefixRegex holds the StripPrefixRegex configuration.
|
||||||
|
properties:
|
||||||
|
regex:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,61 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: middlewaretcps.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: MiddlewareTCP
|
||||||
|
listKind: MiddlewareTCPList
|
||||||
|
plural: middlewaretcps
|
||||||
|
singular: middlewaretcp
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: MiddlewareTCP is a specification for a MiddlewareTCP resource.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description: MiddlewareTCPSpec holds the MiddlewareTCP configuration.
|
||||||
|
properties:
|
||||||
|
ipWhiteList:
|
||||||
|
description: TCPIPWhiteList holds the TCP ip white list configuration.
|
||||||
|
properties:
|
||||||
|
sourceRange:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,108 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: serverstransports.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: ServersTransport
|
||||||
|
listKind: ServersTransportList
|
||||||
|
plural: serverstransports
|
||||||
|
singular: serverstransport
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: ServersTransport is a specification for a ServersTransport resource.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description:
|
||||||
|
ServersTransportSpec options to configure communication between
|
||||||
|
Traefik and the servers.
|
||||||
|
properties:
|
||||||
|
certificatesSecrets:
|
||||||
|
description: Certificates for mTLS.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
disableHTTP2:
|
||||||
|
description: Disable HTTP/2 for connections with backend servers.
|
||||||
|
type: boolean
|
||||||
|
forwardingTimeouts:
|
||||||
|
description: Timeouts for requests forwarded to the backend servers.
|
||||||
|
properties:
|
||||||
|
dialTimeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
description:
|
||||||
|
The amount of time to wait until a connection to
|
||||||
|
a backend server can be established. If zero, no timeout exists.
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
idleConnTimeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
description:
|
||||||
|
The maximum period for which an idle HTTP keep-alive
|
||||||
|
connection will remain open before closing itself.
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseHeaderTimeout:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
description:
|
||||||
|
The amount of time to wait for a server's response
|
||||||
|
headers after fully writing the request (including its body,
|
||||||
|
if any). If zero, no timeout exists.
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
type: object
|
||||||
|
insecureSkipVerify:
|
||||||
|
description: Disable SSL certificate verification.
|
||||||
|
type: boolean
|
||||||
|
maxIdleConnsPerHost:
|
||||||
|
description:
|
||||||
|
If non-zero, controls the maximum idle (keep-alive) to
|
||||||
|
keep per-host. If zero, DefaultMaxIdleConnsPerHost is used.
|
||||||
|
type: integer
|
||||||
|
rootCAsSecrets:
|
||||||
|
description: Add cert file for self-signed certificate.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
serverName:
|
||||||
|
description: ServerName used to contact the server.
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,92 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: tlsoptions.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: TLSOption
|
||||||
|
listKind: TLSOptionList
|
||||||
|
plural: tlsoptions
|
||||||
|
singular: tlsoption
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: TLSOption is a specification for a TLSOption resource.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description: TLSOptionSpec configures TLS for an entry point.
|
||||||
|
properties:
|
||||||
|
cipherSuites:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
clientAuth:
|
||||||
|
description:
|
||||||
|
ClientAuth defines the parameters of the client authentication
|
||||||
|
part of the TLS connection, if any.
|
||||||
|
properties:
|
||||||
|
clientAuthType:
|
||||||
|
description:
|
||||||
|
ClientAuthType defines the client authentication
|
||||||
|
type to apply.
|
||||||
|
enum:
|
||||||
|
- NoClientCert
|
||||||
|
- RequestClientCert
|
||||||
|
- VerifyClientCertIfGiven
|
||||||
|
- RequireAndVerifyClientCert
|
||||||
|
type: string
|
||||||
|
secretNames:
|
||||||
|
description:
|
||||||
|
SecretName is the name of the referenced Kubernetes
|
||||||
|
Secret to specify the certificate details.
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
curvePreferences:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
maxVersion:
|
||||||
|
type: string
|
||||||
|
minVersion:
|
||||||
|
type: string
|
||||||
|
preferServerCipherSuites:
|
||||||
|
type: boolean
|
||||||
|
sniStrict:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,68 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: tlsstores.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: TLSStore
|
||||||
|
listKind: TLSStoreList
|
||||||
|
plural: tlsstores
|
||||||
|
singular: tlsstore
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: TLSStore is a specification for a TLSStore resource.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description: TLSStoreSpec configures a TLSStore resource.
|
||||||
|
properties:
|
||||||
|
defaultCertificate:
|
||||||
|
description:
|
||||||
|
DefaultCertificate holds a secret name for the TLSOption
|
||||||
|
resource.
|
||||||
|
properties:
|
||||||
|
secretName:
|
||||||
|
description:
|
||||||
|
SecretName is the name of the referenced Kubernetes
|
||||||
|
Secret to specify the certificate details.
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- secretName
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- defaultCertificate
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,289 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
|
||||||
|
controller-gen.kubebuilder.io/version: v0.4.1
|
||||||
|
creationTimestamp: null
|
||||||
|
name: traefikservices.traefik.containo.us
|
||||||
|
spec:
|
||||||
|
group: traefik.containo.us
|
||||||
|
names:
|
||||||
|
kind: TraefikService
|
||||||
|
listKind: TraefikServiceList
|
||||||
|
plural: traefikservices
|
||||||
|
singular: traefikservice
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description:
|
||||||
|
TraefikService is the specification for a service (that an IngressRoute
|
||||||
|
refers to) that is usually not a terminal service (i.e. not a pod of servers),
|
||||||
|
as opposed to a Kubernetes Service. That is to say, it usually refers to
|
||||||
|
other (children) services, which themselves can be TraefikServices or Services.
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
description:
|
||||||
|
"APIVersion defines the versioned schema of this representation
|
||||||
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
description:
|
||||||
|
"Kind is a string value representing the REST resource this
|
||||||
|
object represents. Servers may infer this from the endpoint the client
|
||||||
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
spec:
|
||||||
|
description:
|
||||||
|
ServiceSpec defines whether a TraefikService is a load-balancer
|
||||||
|
of services or a mirroring service.
|
||||||
|
properties:
|
||||||
|
mirroring:
|
||||||
|
description:
|
||||||
|
Mirroring defines a mirroring service, which is composed
|
||||||
|
of a main load-balancer, and a list of mirrors.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Service
|
||||||
|
- TraefikService
|
||||||
|
type: string
|
||||||
|
maxBodySize:
|
||||||
|
format: int64
|
||||||
|
type: integer
|
||||||
|
mirrors:
|
||||||
|
items:
|
||||||
|
description:
|
||||||
|
MirrorService defines one of the mirrors of a Mirroring
|
||||||
|
service.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Service
|
||||||
|
- TraefikService
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
Name is a reference to a Kubernetes Service
|
||||||
|
object (for a load-balancer of servers), or to a TraefikService
|
||||||
|
object (service load-balancer, mirroring, etc). The differentiation
|
||||||
|
between the two is specified in the Kind field.
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
passHostHeader:
|
||||||
|
type: boolean
|
||||||
|
percent:
|
||||||
|
type: integer
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseForwarding:
|
||||||
|
description:
|
||||||
|
ResponseForwarding holds configuration for
|
||||||
|
the forward of the response.
|
||||||
|
properties:
|
||||||
|
flushInterval:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
serversTransport:
|
||||||
|
type: string
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration based
|
||||||
|
on cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
strategy:
|
||||||
|
type: string
|
||||||
|
weight:
|
||||||
|
description:
|
||||||
|
Weight should only be specified when Name references
|
||||||
|
a TraefikService object (and to be precise, one that embeds
|
||||||
|
a Weighted Round Robin).
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
Name is a reference to a Kubernetes Service object
|
||||||
|
(for a load-balancer of servers), or to a TraefikService object
|
||||||
|
(service load-balancer, mirroring, etc). The differentiation
|
||||||
|
between the two is specified in the Kind field.
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
passHostHeader:
|
||||||
|
type: boolean
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseForwarding:
|
||||||
|
description:
|
||||||
|
ResponseForwarding holds configuration for the forward
|
||||||
|
of the response.
|
||||||
|
properties:
|
||||||
|
flushInterval:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
serversTransport:
|
||||||
|
type: string
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration based on
|
||||||
|
cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
strategy:
|
||||||
|
type: string
|
||||||
|
weight:
|
||||||
|
description:
|
||||||
|
Weight should only be specified when Name references
|
||||||
|
a TraefikService object (and to be precise, one that embeds
|
||||||
|
a Weighted Round Robin).
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
weighted:
|
||||||
|
description: WeightedRoundRobin defines a load-balancer of services.
|
||||||
|
properties:
|
||||||
|
services:
|
||||||
|
items:
|
||||||
|
description: Service defines an upstream to proxy traffic.
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- Service
|
||||||
|
- TraefikService
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
description:
|
||||||
|
Name is a reference to a Kubernetes Service
|
||||||
|
object (for a load-balancer of servers), or to a TraefikService
|
||||||
|
object (service load-balancer, mirroring, etc). The differentiation
|
||||||
|
between the two is specified in the Kind field.
|
||||||
|
type: string
|
||||||
|
namespace:
|
||||||
|
type: string
|
||||||
|
passHostHeader:
|
||||||
|
type: boolean
|
||||||
|
port:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
x-kubernetes-int-or-string: true
|
||||||
|
responseForwarding:
|
||||||
|
description:
|
||||||
|
ResponseForwarding holds configuration for
|
||||||
|
the forward of the response.
|
||||||
|
properties:
|
||||||
|
flushInterval:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
scheme:
|
||||||
|
type: string
|
||||||
|
serversTransport:
|
||||||
|
type: string
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration based
|
||||||
|
on cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
strategy:
|
||||||
|
type: string
|
||||||
|
weight:
|
||||||
|
description:
|
||||||
|
Weight should only be specified when Name references
|
||||||
|
a TraefikService object (and to be precise, one that embeds
|
||||||
|
a Weighted Round Robin).
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
sticky:
|
||||||
|
description: Sticky holds the sticky configuration.
|
||||||
|
properties:
|
||||||
|
cookie:
|
||||||
|
description:
|
||||||
|
Cookie holds the sticky configuration based on
|
||||||
|
cookie.
|
||||||
|
properties:
|
||||||
|
httpOnly:
|
||||||
|
type: boolean
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
sameSite:
|
||||||
|
type: string
|
||||||
|
secure:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- metadata
|
||||||
|
- spec
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,387 @@
|
||||||
|
image:
|
||||||
|
repository: tccr.io/truecharts/traefik
|
||||||
|
# defaults to appVersion
|
||||||
|
tag: 2.8.4@sha256:33908f7f3a9efaa1c1cefc1f91558ad5c8bf0709c35b5327e495d9d68b0917d6
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
# -- Use ingressClass. Ignored if Traefik version < 2.3 / kubernetes < 1.18.x
|
||||||
|
ingressClass:
|
||||||
|
# true is not unit-testable yet, pending https://github.com/rancher/helm-unittest/pull/12
|
||||||
|
enabled: false
|
||||||
|
isDefaultClass: false
|
||||||
|
# Use to force a networking.k8s.io API Version for certain CI/CD applications. E.g. "v1beta1"
|
||||||
|
fallbackApiVersion: ""
|
||||||
|
|
||||||
|
# -- Deprecated (will be removed later)
|
||||||
|
# -- Activate Pilot integration
|
||||||
|
pilot:
|
||||||
|
enabled: false
|
||||||
|
token: ""
|
||||||
|
# Toggle Pilot Dashboard
|
||||||
|
# dashboard: false
|
||||||
|
|
||||||
|
# -- Create an IngressRoute for the dashboard
|
||||||
|
ingressRoute:
|
||||||
|
dashboard:
|
||||||
|
enabled: true
|
||||||
|
# Additional ingressRoute annotations (e.g. for kubernetes.io/ingress.class)
|
||||||
|
annotations: {}
|
||||||
|
# Additional ingressRoute labels (e.g. for filtering IngressRoute by custom labels)
|
||||||
|
labels: {}
|
||||||
|
|
||||||
|
podAnnotations:
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/path: "/metrics"
|
||||||
|
prometheus.io/port: "9180"
|
||||||
|
|
||||||
|
#
|
||||||
|
# -- Configure providers
|
||||||
|
providers:
|
||||||
|
kubernetesCRD:
|
||||||
|
enabled: true
|
||||||
|
namespaces:
|
||||||
|
[]
|
||||||
|
# - "default"
|
||||||
|
kubernetesIngress:
|
||||||
|
enabled: true
|
||||||
|
# labelSelector: environment=production,method=traefik
|
||||||
|
namespaces:
|
||||||
|
[]
|
||||||
|
# - "default"
|
||||||
|
# IP used for Kubernetes Ingress endpoints
|
||||||
|
publishedService:
|
||||||
|
enabled: true
|
||||||
|
# Published Kubernetes Service to copy status from. Format: namespace/servicename
|
||||||
|
# By default this Traefik service
|
||||||
|
# pathOverride: ""
|
||||||
|
|
||||||
|
# -- Logs
|
||||||
|
# https://docs.traefik.io/observability/logs/
|
||||||
|
logs:
|
||||||
|
# Traefik logs concern everything that happens to Traefik itself (startup, configuration, events, shutdown, and so on).
|
||||||
|
general:
|
||||||
|
# By default, the level is set to ERROR. Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO.
|
||||||
|
level: ERROR
|
||||||
|
# -- Set the format of General Logs to be either Common Log Format or JSON. For more information: https://doc.traefik.io/traefik/observability/logs/#format
|
||||||
|
format: common
|
||||||
|
access:
|
||||||
|
# To enable access logs
|
||||||
|
enabled: false
|
||||||
|
# To write the logs in an asynchronous fashion, specify a bufferingSize option.
|
||||||
|
# This option represents the number of log lines Traefik will keep in memory before writing
|
||||||
|
# them to the selected output. In some cases, this option can greatly help performances.
|
||||||
|
# bufferingSize: 100
|
||||||
|
# Filtering https://docs.traefik.io/observability/access-logs/#filtering
|
||||||
|
filters:
|
||||||
|
{}
|
||||||
|
# statuscodes: "200,300-302"
|
||||||
|
# retryattempts: true
|
||||||
|
# minduration: 10ms
|
||||||
|
# Fields
|
||||||
|
# https://docs.traefik.io/observability/access-logs/#limiting-the-fieldsincluding-headers
|
||||||
|
fields:
|
||||||
|
general:
|
||||||
|
defaultmode: keep
|
||||||
|
names:
|
||||||
|
{}
|
||||||
|
# Examples:
|
||||||
|
# ClientUsername: drop
|
||||||
|
headers:
|
||||||
|
defaultmode: drop
|
||||||
|
names:
|
||||||
|
{}
|
||||||
|
# Examples:
|
||||||
|
# User-Agent: redact
|
||||||
|
# Authorization: drop
|
||||||
|
# Content-Type: keep
|
||||||
|
# -- Set the format of Access Logs to be either Common Log Format or JSON. For more information: https://doc.traefik.io/traefik/observability/access-logs/#format
|
||||||
|
format: common
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
# datadog:
|
||||||
|
# address: 127.0.0.1:8125
|
||||||
|
# influxdb:
|
||||||
|
# address: localhost:8089
|
||||||
|
# protocol: udp
|
||||||
|
prometheus:
|
||||||
|
entryPoint: metrics
|
||||||
|
# statsd:
|
||||||
|
# address: localhost:8125
|
||||||
|
|
||||||
|
globalArguments:
|
||||||
|
- "--global.checknewversion"
|
||||||
|
|
||||||
|
##
|
||||||
|
# -- Additional arguments to be passed at Traefik's binary
|
||||||
|
# All available options available on https://docs.traefik.io/reference/static-configuration/cli/
|
||||||
|
## Use curly braces to pass values: `helm install --set="additionalArguments={--providers.kubernetesingress.ingressclass=traefik-internal,--log.level=DEBUG}"`
|
||||||
|
additionalArguments:
|
||||||
|
- "--metrics.prometheus"
|
||||||
|
- "--ping"
|
||||||
|
- "--serverstransport.insecureskipverify=true"
|
||||||
|
- "--providers.kubernetesingress.allowexternalnameservices=true"
|
||||||
|
|
||||||
|
# -- TLS Options to be created as TLSOption CRDs
|
||||||
|
# https://doc.traefik.io/tccr.io/truecharts/https/tls/#tls-options
|
||||||
|
# Example:
|
||||||
|
tlsOptions:
|
||||||
|
default:
|
||||||
|
sniStrict: false
|
||||||
|
minVersion: VersionTLS12
|
||||||
|
curvePreferences:
|
||||||
|
- CurveP521
|
||||||
|
- CurveP384
|
||||||
|
cipherSuites:
|
||||||
|
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
|
||||||
|
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||||
|
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
|
||||||
|
- TLS_AES_128_GCM_SHA256
|
||||||
|
- TLS_AES_256_GCM_SHA384
|
||||||
|
- TLS_CHACHA20_POLY1305_SHA256
|
||||||
|
|
||||||
|
# -- Options for the main traefik service, where the entrypoints traffic comes from
|
||||||
|
# from.
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
port: 9000
|
||||||
|
targetPort: 9000
|
||||||
|
protocol: HTTP
|
||||||
|
# -- Forwarded Headers should never be enabled on Main entrypoint
|
||||||
|
forwardedHeaders:
|
||||||
|
enabled: false
|
||||||
|
# -- Proxy Protocol should never be enabled on Main entrypoint
|
||||||
|
proxyProtocol:
|
||||||
|
enabled: false
|
||||||
|
tcp:
|
||||||
|
enabled: true
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
web:
|
||||||
|
enabled: true
|
||||||
|
port: 9080
|
||||||
|
protocol: HTTP
|
||||||
|
redirectTo: websecure
|
||||||
|
# Options: Empty, 0 (ingore), or positive int
|
||||||
|
# redirectPort:
|
||||||
|
# -- Configure (Forwarded Headers)[https://doc.traefik.io/traefik/routing/entrypoints/#forwarded-headers] Support
|
||||||
|
forwardedHeaders:
|
||||||
|
enabled: false
|
||||||
|
# -- List of trusted IP and CIDR references
|
||||||
|
trustedIPs: []
|
||||||
|
# -- Trust all forwarded headers
|
||||||
|
insecureMode: false
|
||||||
|
# -- Configure (Proxy Protocol Headers)[https://doc.traefik.io/traefik/routing/entrypoints/#proxyprotocol] Support
|
||||||
|
proxyProtocol:
|
||||||
|
enabled: false
|
||||||
|
# -- Only IPs in trustedIPs will lead to remote client address replacement
|
||||||
|
trustedIPs: []
|
||||||
|
# -- Trust every incoming connection
|
||||||
|
insecureMode: false
|
||||||
|
websecure:
|
||||||
|
enabled: true
|
||||||
|
port: 9443
|
||||||
|
protocol: HTTPS
|
||||||
|
# -- Configure (Forwarded Headers)[https://doc.traefik.io/traefik/routing/entrypoints/#forwarded-headers] Support
|
||||||
|
forwardedHeaders:
|
||||||
|
enabled: false
|
||||||
|
# -- List of trusted IP and CIDR references
|
||||||
|
trustedIPs: []
|
||||||
|
# -- Trust all forwarded headers
|
||||||
|
insecureMode: false
|
||||||
|
# -- Configure (Proxy Protocol Headers)[https://doc.traefik.io/traefik/routing/entrypoints/#proxyprotocol] Support
|
||||||
|
proxyProtocol:
|
||||||
|
enabled: false
|
||||||
|
# -- Only IPs in trustedIPs will lead to remote client address replacement
|
||||||
|
trustedIPs: []
|
||||||
|
# -- Trust every incoming connection
|
||||||
|
insecureMode: false
|
||||||
|
# tcpexample:
|
||||||
|
# enabled: true
|
||||||
|
# targetPort: 9443
|
||||||
|
# protocol: TCP
|
||||||
|
# tls:
|
||||||
|
# enabled: false
|
||||||
|
# # this is the name of a TLSOption definition
|
||||||
|
# options: ""
|
||||||
|
# certResolver: ""
|
||||||
|
# domains: []
|
||||||
|
# # - main: example.com
|
||||||
|
# # sans:
|
||||||
|
# # - foo.example.com
|
||||||
|
# # - bar.example.com
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
port: 9180
|
||||||
|
targetPort: 9180
|
||||||
|
protocol: HTTP
|
||||||
|
# -- Forwarded Headers should never be enabled on Metrics entrypoint
|
||||||
|
forwardedHeaders:
|
||||||
|
enabled: false
|
||||||
|
# -- Proxy Protocol should never be enabled on Metrics entrypoint
|
||||||
|
proxyProtocol:
|
||||||
|
enabled: false
|
||||||
|
udp:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# probes:
|
||||||
|
# # -- Liveness probe configuration
|
||||||
|
# # @default -- See below
|
||||||
|
# liveness:
|
||||||
|
# # -- sets the probe type when not using a custom probe
|
||||||
|
# # @default -- "TCP"
|
||||||
|
# type: HTTP
|
||||||
|
# # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# # @default -- "/"
|
||||||
|
# path: "/ping"
|
||||||
|
|
||||||
|
# # -- Redainess probe configuration
|
||||||
|
# # @default -- See below
|
||||||
|
# readiness:
|
||||||
|
# # -- sets the probe type when not using a custom probe
|
||||||
|
# # @default -- "TCP"
|
||||||
|
# type: HTTP
|
||||||
|
# # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# # @default -- "/"
|
||||||
|
# path: "/ping"
|
||||||
|
|
||||||
|
# # -- Startup probe configuration
|
||||||
|
# # @default -- See below
|
||||||
|
# startup:
|
||||||
|
# # -- sets the probe type when not using a custom probe
|
||||||
|
# # @default -- "TCP"
|
||||||
|
# type: HTTP
|
||||||
|
# # -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# # @default -- "/"
|
||||||
|
# path: "/ping"
|
||||||
|
|
||||||
|
# -- Whether Role Based Access Control objects like roles and rolebindings should be created
|
||||||
|
rbac:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- services
|
||||||
|
- endpoints
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io
|
||||||
|
resources:
|
||||||
|
- ingresses
|
||||||
|
- ingressclasses
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
- networking.k8s.io
|
||||||
|
resources:
|
||||||
|
- ingresses/status
|
||||||
|
verbs:
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- traefik.containo.us
|
||||||
|
resources:
|
||||||
|
- ingressroutes
|
||||||
|
- ingressroutetcps
|
||||||
|
- ingressrouteudps
|
||||||
|
- middlewares
|
||||||
|
- middlewaretcps
|
||||||
|
- tlsoptions
|
||||||
|
- tlsstores
|
||||||
|
- traefikservices
|
||||||
|
- serverstransports
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
|
||||||
|
# -- The service account the pods will use to interact with the Kubernetes API
|
||||||
|
serviceAccount:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# -- SCALE Middleware Handlers
|
||||||
|
middlewares:
|
||||||
|
basicAuth: []
|
||||||
|
# - name: basicauthexample
|
||||||
|
# users:
|
||||||
|
# - username: testuser
|
||||||
|
# password: testpassword
|
||||||
|
forwardAuth: []
|
||||||
|
# - name: forwardAuthexample
|
||||||
|
# address: https://auth.example.com/
|
||||||
|
# authResponseHeaders:
|
||||||
|
# - X-Secret
|
||||||
|
# - X-Auth-User
|
||||||
|
# authRequestHeaders:
|
||||||
|
# - "Accept"
|
||||||
|
# - "X-CustomHeader"
|
||||||
|
# authResponseHeadersRegex: "^X-"
|
||||||
|
# trustForwardHeader: true
|
||||||
|
chain: []
|
||||||
|
# - name: chainname
|
||||||
|
# middlewares:
|
||||||
|
# - name: compress
|
||||||
|
redirectScheme: []
|
||||||
|
# - name: redirectSchemeName
|
||||||
|
# scheme: https
|
||||||
|
# permanent: true
|
||||||
|
rateLimit: []
|
||||||
|
# - name: rateLimitName
|
||||||
|
# average: 300
|
||||||
|
# burst: 200
|
||||||
|
redirectRegex: []
|
||||||
|
# - name: redirectRegexName
|
||||||
|
# regex: putregexhere
|
||||||
|
# replacement: replacementurlhere
|
||||||
|
# permanent: false
|
||||||
|
stripPrefixRegex: []
|
||||||
|
# - name: stripPrefixRegexName
|
||||||
|
# regex: []
|
||||||
|
ipWhiteList: []
|
||||||
|
# - name: ipWhiteListName
|
||||||
|
# sourceRange: []
|
||||||
|
# ipStrategy:
|
||||||
|
# depth: 2
|
||||||
|
# excludedIPs: []
|
||||||
|
# -- Currently requires to enable Traefik Pilot.
|
||||||
|
# -- Until it's deprecated.
|
||||||
|
themePark: []
|
||||||
|
# - name: themeParkName
|
||||||
|
# -- Supported apps, lower case name
|
||||||
|
# -- https://docs.theme-park.dev/themes
|
||||||
|
# app: appnamehere
|
||||||
|
# -- Supported themes, lower case name
|
||||||
|
# -- https://docs.theme-park.dev/themes/APPNAMEHERE
|
||||||
|
# -- https://docs.theme-park.dev/community-themes
|
||||||
|
# theme: themenamehere
|
||||||
|
# -- https://theme-park.dev or a self hosted url
|
||||||
|
# baseUrl: https://theme-park.dev
|
||||||
|
themeParkVersion: v1.2.1
|
||||||
|
|
||||||
|
portalhook:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
plugins:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/plugins-storage"
|
||||||
|
type: emptyDir
|
||||||
|
|
||||||
|
portal:
|
||||||
|
enabled: true
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,166 @@
|
||||||
|
{{/* Define the args */}}
|
||||||
|
{{- define "traefik.args" -}}
|
||||||
|
args:
|
||||||
|
{{/* merge all ports */}}
|
||||||
|
{{- $ports := dict }}
|
||||||
|
{{- range $.Values.service }}
|
||||||
|
{{- range $name, $value := .ports }}
|
||||||
|
{{- $_ := set $ports $name $value }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{/* start of actual arguments */}}
|
||||||
|
{{- with .Values.globalArguments }}
|
||||||
|
{{- range . }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $name, $config := $ports }}
|
||||||
|
{{- if $config }}
|
||||||
|
{{- if or ( eq $config.protocol "HTTP" ) ( eq $config.protocol "HTTPS" ) ( eq $config.protocol "TCP" ) }}
|
||||||
|
{{- $_ := set $config "protocol" "TCP" }}
|
||||||
|
{{- end }}
|
||||||
|
- "--entryPoints.{{$name}}.address=:{{ $config.port }}/{{ default "tcp" $config.protocol | lower }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
- "--api.dashboard=true"
|
||||||
|
- "--ping=true"
|
||||||
|
{{- if .Values.metrics }}
|
||||||
|
{{- if .Values.metrics.datadog }}
|
||||||
|
- "--metrics.datadog=true"
|
||||||
|
- "--metrics.datadog.address={{ .Values.metrics.datadog.address }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.influxdb }}
|
||||||
|
- "--metrics.influxdb=true"
|
||||||
|
- "--metrics.influxdb.address={{ .Values.metrics.influxdb.address }}"
|
||||||
|
- "--metrics.influxdb.protocol={{ .Values.metrics.influxdb.protocol }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.prometheus }}
|
||||||
|
- "--metrics.prometheus=true"
|
||||||
|
- "--metrics.prometheus.entrypoint={{ .Values.metrics.prometheus.entryPoint }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.statsd }}
|
||||||
|
- "--metrics.statsd=true"
|
||||||
|
- "--metrics.statsd.address={{ .Values.metrics.statsd.address }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.providers.kubernetesCRD.enabled }}
|
||||||
|
- "--providers.kubernetescrd"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.providers.kubernetesIngress.enabled }}
|
||||||
|
- "--providers.kubernetesingress"
|
||||||
|
{{- if .Values.providers.kubernetesIngress.publishedService.enabled }}
|
||||||
|
- "--providers.kubernetesingress.ingressendpoint.publishedservice={{ template "providers.kubernetesIngress.publishedServicePath" . }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.providers.kubernetesIngress.labelSelector }}
|
||||||
|
- "--providers.kubernetesingress.labelSelector={{ .Values.providers.kubernetesIngress.labelSelector }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if and .Values.rbac.enabled .Values.rbac.namespaced }}
|
||||||
|
{{- if .Values.providers.kubernetesCRD.enabled }}
|
||||||
|
- "--providers.kubernetescrd.namespaces={{ template "providers.kubernetesCRD.namespaces" . }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.providers.kubernetesIngress.enabled }}
|
||||||
|
- "--providers.kubernetesingress.namespaces={{ template "providers.kubernetesIngress.namespaces" . }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.ingressClass.enabled }}
|
||||||
|
- "--providers.kubernetesingress.ingressclass={{ .Release.Name }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- range $entrypoint, $config := $ports }}
|
||||||
|
{{/* add args for proxyProtocol support */}}
|
||||||
|
{{- if $config.proxyProtocol }}
|
||||||
|
{{- if $config.proxyProtocol.enabled }}
|
||||||
|
{{- if $config.proxyProtocol.insecureMode }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.proxyProtocol.insecure"
|
||||||
|
{{- end }}
|
||||||
|
{{- if not ( empty $config.proxyProtocol.trustedIPs ) }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.proxyProtocol.trustedIPs={{ join "," $config.proxyProtocol.trustedIPs }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{/* add args for forwardedHeaders support */}}
|
||||||
|
{{- if $config.forwardedHeaders.enabled }}
|
||||||
|
{{- if not ( empty $config.forwardedHeaders.trustedIPs ) }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.forwardedHeaders.trustedIPs={{ join "," $config.forwardedHeaders.trustedIPs }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if $config.forwardedHeaders.insecureMode }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.forwardedHeaders.insecure"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{/* end forwardedHeaders configuration */}}
|
||||||
|
{{- if $config.redirectTo }}
|
||||||
|
{{- $toPort := index $ports $config.redirectTo }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.redirections.entryPoint.to=:{{ $toPort.port }}"
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.redirections.entryPoint.scheme=https"
|
||||||
|
{{- else if $config.redirectPort }}
|
||||||
|
{{ if gt $config.redirectPort 0.0 }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.redirections.entryPoint.to=:{{ $config.redirectPort }}"
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.redirections.entryPoint.scheme=https"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or ( $config.tls ) ( eq $config.protocol "HTTPS" ) }}
|
||||||
|
{{- if or ( $config.tls.enabled ) ( eq $config.protocol "HTTPS" ) }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.tls=true"
|
||||||
|
{{- if $config.tls.options }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.tls.options={{ $config.tls.options }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if $config.tls.certResolver }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.tls.certResolver={{ $config.tls.certResolver }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if $config.tls.domains }}
|
||||||
|
{{- range $index, $domain := $config.tls.domains }}
|
||||||
|
{{- if $domain.main }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.tls.domains[{{ $index }}].main={{ $domain.main }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if $domain.sans }}
|
||||||
|
- "--entrypoints.{{ $entrypoint }}.http.tls.domains[{{ $index }}].sans={{ join "," $domain.sans }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.logs }}
|
||||||
|
- "--log.format={{ .general.format }}"
|
||||||
|
{{- if ne .general.level "ERROR" }}
|
||||||
|
- "--log.level={{ .general.level | upper }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .access.enabled }}
|
||||||
|
- "--accesslog=true"
|
||||||
|
- "--accesslog.format={{ .access.format }}"
|
||||||
|
{{- if .access.bufferingsize }}
|
||||||
|
- "--accesslog.bufferingsize={{ .access.bufferingsize }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .access.filters }}
|
||||||
|
{{- if .access.filters.statuscodes }}
|
||||||
|
- "--accesslog.filters.statuscodes={{ .access.filters.statuscodes }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .access.filters.retryattempts }}
|
||||||
|
- "--accesslog.filters.retryattempts"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .access.filters.minduration }}
|
||||||
|
- "--accesslog.filters.minduration={{ .access.filters.minduration }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
- "--accesslog.fields.defaultmode={{ .access.fields.general.defaultmode }}"
|
||||||
|
{{- range $fieldname, $fieldaction := .access.fields.general.names }}
|
||||||
|
- "--accesslog.fields.names.{{ $fieldname }}={{ $fieldaction }}"
|
||||||
|
{{- end }}
|
||||||
|
- "--accesslog.fields.headers.defaultmode={{ .access.fields.headers.defaultmode }}"
|
||||||
|
{{- range $fieldname, $fieldaction := .access.fields.headers.names }}
|
||||||
|
- "--accesslog.fields.headers.names.{{ $fieldname }}={{ $fieldaction }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{/* theme.park */}}
|
||||||
|
{{- if .Values.middlewares.themePark }}
|
||||||
|
- "--experimental.plugins.traefik-themepark.modulename=github.com/packruler/traefik-themepark"
|
||||||
|
- "--experimental.plugins.traefik-themepark.version={{ .Values.middlewares.themeParkVersion }}"
|
||||||
|
{{- end }}
|
||||||
|
{{/* End of theme.park */}}
|
||||||
|
{{- with .Values.additionalArguments }}
|
||||||
|
{{- range . }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{{/*
|
||||||
|
Construct the path for the providers.kubernetesingress.ingressendpoint.publishedservice.
|
||||||
|
By convention this will simply use the <namespace>/<service-name> to match the name of the
|
||||||
|
service generated.
|
||||||
|
Users can provide an override for an explicit service they want bound via `.Values.providers.kubernetesIngress.publishedService.pathOverride`
|
||||||
|
*/}}
|
||||||
|
{{- define "providers.kubernetesIngress.publishedServicePath" -}}
|
||||||
|
{{- $fullName := include "tc.common.names.fullname" . -}}
|
||||||
|
{{- $defServiceName := printf "%s/%s-tcp" .Release.Namespace $fullName -}}
|
||||||
|
{{- $servicePath := default $defServiceName .Values.providers.kubernetesIngress.publishedService.pathOverride }}
|
||||||
|
{{- print $servicePath | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Construct a comma-separated list of whitelisted namespaces
|
||||||
|
*/}}
|
||||||
|
{{- define "providers.kubernetesIngress.namespaces" -}}
|
||||||
|
{{- default .Release.Namespace (join "," .Values.providers.kubernetesIngress.namespaces) }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- define "providers.kubernetesCRD.namespaces" -}}
|
||||||
|
{{- default .Release.Namespace (join "," .Values.providers.kubernetesCRD.namespaces) }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{{/* Define the ingressClass */}}
|
||||||
|
{{- define "traefik.ingressClass" -}}
|
||||||
|
---
|
||||||
|
{{ if .Values.ingressClass.enabled }}
|
||||||
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/IngressClass" }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/IngressClass" }}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else if or (eq .Values.ingressClass.fallbackApiVersion "v1beta1") (eq .Values.ingressClass.fallbackApiVersion "v1") }}
|
||||||
|
apiVersion: {{ printf "networking.k8s.io/%s" .Values.ingressClass.fallbackApiVersion }}
|
||||||
|
{{- else }}
|
||||||
|
{{- fail "\n\n ERROR: You must have at least networking.k8s.io/v1beta1 to use ingressClass" }}
|
||||||
|
{{- end }}
|
||||||
|
kind: IngressClass
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
ingressclass.kubernetes.io/is-default-class: {{ .Values.ingressClass.isDefaultClass | quote }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
controller: traefik.io/ingress-controller
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,25 @@
|
||||||
|
{{/* Define the ingressRoute */}}
|
||||||
|
{{- define "traefik.ingressRoute" -}}
|
||||||
|
{{ if .Values.ingressRoute.dashboard.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: {{ include "tc.common.names.fullname" . }}-dashboard
|
||||||
|
annotations:
|
||||||
|
{{- with .Values.ingressRoute.dashboard.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- main
|
||||||
|
routes:
|
||||||
|
- match: PathPrefix(`/dashboard`) || PathPrefix(`/api`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: api@internal
|
||||||
|
kind: TraefikService
|
||||||
|
{{ end }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,26 @@
|
||||||
|
{{/* Define the portalHook */}}
|
||||||
|
{{- define "traefik.portalhook" -}}
|
||||||
|
{{- if .Values.portalhook.enabled }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: portalhook
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
data:
|
||||||
|
{{- $ports := dict }}
|
||||||
|
{{- range $.Values.service }}
|
||||||
|
{{- range $name, $value := .ports }}
|
||||||
|
{{- $_ := set $ports $name $value }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $name, $value := $ports }}
|
||||||
|
{{ $name }}: {{ $value.port | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{{/* Define the tlsOptions */}}
|
||||||
|
{{- define "traefik.tlsOptions" -}}
|
||||||
|
{{- range $name, $config := .Values.tlsOptions }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: TLSOption
|
||||||
|
metadata:
|
||||||
|
name: {{ $name }}
|
||||||
|
spec:
|
||||||
|
{{- toYaml $config | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{- if .Values.metrics }}
|
||||||
|
{{- if .Values.metrics.prometheus }}
|
||||||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}}
|
||||||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}}
|
||||||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "9180" -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- $newArgs := (include "traefik.args" . | fromYaml) }}
|
||||||
|
{{- $_ := set .Values "newArgs" $newArgs -}}
|
||||||
|
{{- $mergedargs := concat .Values.args .Values.newArgs.args }}
|
||||||
|
{{- $_ := set .Values "args" $mergedargs -}}
|
||||||
|
|
||||||
|
{{- include "traefik.portalhook" . }}
|
||||||
|
{{- include "traefik.tlsOptions" . }}
|
||||||
|
{{- include "traefik.ingressRoute" . }}
|
||||||
|
{{- include "traefik.ingressClass" . }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "tc.common.loader.apply" . }}
|
|
@ -0,0 +1,62 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: compress
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
compress: {}
|
||||||
|
---
|
||||||
|
# Here, an average of 300 requests per second is allowed.
|
||||||
|
# In addition, a burst of 200 requests is allowed.
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: basic-ratelimit
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
rateLimit:
|
||||||
|
average: 600
|
||||||
|
burst: 400
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: basic-secure-headers
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowMethods:
|
||||||
|
- GET
|
||||||
|
- OPTIONS
|
||||||
|
- HEAD
|
||||||
|
- PUT
|
||||||
|
accessControlMaxAge: 100
|
||||||
|
stsSeconds: 63072000
|
||||||
|
# stsIncludeSubdomains: false
|
||||||
|
# stsPreload: false
|
||||||
|
forceSTSHeader: true
|
||||||
|
contentTypeNosniff: true
|
||||||
|
browserXssFilter: true
|
||||||
|
referrerPolicy: same-origin
|
||||||
|
customRequestHeaders:
|
||||||
|
X-Forwarded-Proto: "https"
|
||||||
|
customResponseHeaders:
|
||||||
|
server: ''
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: chain-basic
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- name: basic-ratelimit
|
||||||
|
- name: basic-secure-headers
|
||||||
|
- name: compress
|
|
@ -0,0 +1,34 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.basicAuth }}
|
||||||
|
---
|
||||||
|
{{- $users := list }}
|
||||||
|
{{ range $index, $userdata := $middlewareData.users }}
|
||||||
|
{{ $users = append $users ( htpasswd $userdata.username $userdata.password ) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{printf "%v-%v" $middlewareData.name "secret" }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
users: |
|
||||||
|
{{- range $index, $user := $users }}
|
||||||
|
{{ printf "%s" $user }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
basicAuth:
|
||||||
|
secret: {{printf "%v-%v" $middlewareData.name "secret" }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.chain }}
|
||||||
|
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
{{ range $index, $middleware := .middlewares }}
|
||||||
|
- name: {{ printf "%v-%v@%v" $namespace $middleware "kubernetescrd" }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,30 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.forwardAuth }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
forwardAuth:
|
||||||
|
address: {{ $middlewareData.address }}
|
||||||
|
{{- with $middlewareData.authResponseHeaders }}
|
||||||
|
authResponseHeaders:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $middlewareData.authRequestHeaders }}
|
||||||
|
authRequestHeaders:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if $middlewareData.authResponseHeadersRegex }}
|
||||||
|
authResponseHeadersRegex: {{ $middlewareData.authResponseHeadersRegex }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if $middlewareData.trustForwardHeader }}
|
||||||
|
trustForwardHeader: true
|
||||||
|
{{- end }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,33 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.ipWhiteList }}
|
||||||
|
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
ipWhiteList:
|
||||||
|
sourceRange:
|
||||||
|
{{- range $middlewareData.sourceRange }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if $middlewareData.ipStrategy }}
|
||||||
|
ipStrategy:
|
||||||
|
{{- if $middlewareData.ipStrategy.depth }}
|
||||||
|
depth: {{ $middlewareData.ipStrategy.depth }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if $middlewareData.ipStrategy.excludedIPs }}
|
||||||
|
excludedIPs:
|
||||||
|
{{- range $middlewareData.ipStrategy.excludedIPs }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,19 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.rateLimit }}
|
||||||
|
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
rateLimit:
|
||||||
|
average: {{ $middlewareData.average }}
|
||||||
|
burst: {{ $middlewareData.burst }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,19 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.redirectScheme }}
|
||||||
|
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
redirectScheme:
|
||||||
|
scheme: {{ $middlewareData.scheme }}
|
||||||
|
permanent: {{ $middlewareData.permanent }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,20 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.redirectRegex }}
|
||||||
|
|
||||||
|
---
|
||||||
|
# Declaring the user list
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
redirectRegex:
|
||||||
|
regex: {{ $middlewareData.regex | quote }}
|
||||||
|
replacement: {{ $middlewareData.replacement | quote }}
|
||||||
|
permanent: {{ $middlewareData.permanent }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,20 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ range $index, $middlewareData := .Values.middlewares.stripPrefixRegex }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
stripPrefixRegex:
|
||||||
|
regex:
|
||||||
|
{{- range $middlewareData.regex }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,29 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-opencors-chain
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- name: basic-ratelimit
|
||||||
|
- name: tc-opencors-headers
|
||||||
|
- name: compress
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-closedcors-chain
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- name: basic-ratelimit
|
||||||
|
- name: tc-closedcors-headers
|
||||||
|
- name: compress
|
|
@ -0,0 +1,62 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-opencors-headers
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowHeaders:
|
||||||
|
- '*'
|
||||||
|
accessControlAllowMethods:
|
||||||
|
- GET
|
||||||
|
- OPTIONS
|
||||||
|
- HEAD
|
||||||
|
- PUT
|
||||||
|
- POST
|
||||||
|
accessControlAllowOriginList:
|
||||||
|
- '*'
|
||||||
|
accessControlMaxAge: 100
|
||||||
|
browserXssFilter: true
|
||||||
|
contentTypeNosniff: true
|
||||||
|
customRequestHeaders:
|
||||||
|
X-Forwarded-Proto: https
|
||||||
|
customResponseHeaders:
|
||||||
|
server: ""
|
||||||
|
forceSTSHeader: true
|
||||||
|
referrerPolicy: same-origin
|
||||||
|
sslForceHost: true
|
||||||
|
sslRedirect: true
|
||||||
|
stsSeconds: 63072000
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-closedcors-headers
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowMethods:
|
||||||
|
- GET
|
||||||
|
- OPTIONS
|
||||||
|
- HEAD
|
||||||
|
- PUT
|
||||||
|
accessControlMaxAge: 100
|
||||||
|
sslRedirect: true
|
||||||
|
stsSeconds: 63072000
|
||||||
|
# stsIncludeSubdomains: false
|
||||||
|
# stsPreload: false
|
||||||
|
forceSTSHeader: true
|
||||||
|
contentTypeNosniff: true
|
||||||
|
browserXssFilter: true
|
||||||
|
sslForceHost: true
|
||||||
|
referrerPolicy: same-origin
|
||||||
|
customRequestHeaders:
|
||||||
|
X-Forwarded-Proto: "https"
|
||||||
|
customResponseHeaders:
|
||||||
|
server: ''
|
|
@ -0,0 +1,25 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-nextcloud-redirectregex-dav
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
redirectRegex:
|
||||||
|
regex: "https://(.*)/.well-known/(card|cal)dav"
|
||||||
|
replacement: "https://${1}/remote.php/dav/"
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: tc-nextcloud-chain
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- name: tc-nextcloud-redirectregex-dav
|
|
@ -0,0 +1,26 @@
|
||||||
|
{{- $values := .Values }}
|
||||||
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
||||||
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
||||||
|
{{- $namespace = "default" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $index, $middlewareData := .Values.middlewares.themePark }}
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{ $middlewareData.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
traefik-themepark:
|
||||||
|
app: {{ $middlewareData.appName }}
|
||||||
|
theme: {{ $middlewareData.themeName }}
|
||||||
|
baseUrl: {{ $middlewareData.baseUrl }}
|
||||||
|
{{- if $middlewareData.addons }}
|
||||||
|
addons:
|
||||||
|
{{- range $middlewareData.addons }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue