Add more middlewares to traefik and move nextcloud to stable (#658)

* Add more middlewares to traefik and move nextcloud to stable

* oops
This commit is contained in:
Kjeld Schouten-Lebbing
2021-07-05 10:36:05 +02:00
committed by GitHub
parent 0ac575141b
commit 6b739c25ac
19 changed files with 143 additions and 3 deletions

View File

@@ -276,8 +276,7 @@ questions:
label: "Enable the service"
schema:
type: boolean
default: true
hidden: true
default: false
- variable: type
label: "Service Type"
description: "ClusterIP's are only internally available, nodePorts expose the container to the host node System, Loadbalancer exposes the service using the system loadbalancer"

View File

@@ -26,4 +26,4 @@ sources:
- https://traefik.io/
type: application
upstream_version: v9.19.2
version: 6.4.1
version: 6.5.0

View File

@@ -150,6 +150,82 @@ questions:
schema:
type: string
default: ""
- variable: chain
label: "chain"
schema:
type: list
default: []
items:
- variable: chainEntry
label: ""
schema:
type: dict
attrs:
- variable: middlewares
label: "Middlewares to Chain"
schema:
type: list
default: []
items:
- variable: name
label: "Name"
schema:
type: string
required: true
default: ""
- variable: redirectScheme
label: "redirectScheme"
schema:
type: list
default: []
items:
- variable: redirectSchemeEntry
label: ""
schema:
type: dict
attrs:
- variable: scheme
label: "Scheme"
schema:
type: string
required: true
default: "https"
enum:
- value: "https"
description: "https"
- value: "http"
description: "http"
- variable: permanent
label: "Permanent"
schema:
type: boolean
required: true
default: false
- variable: rateLimit
label: "rateLimit"
schema:
type: list
default: []
items:
- variable: rateLimitEntry
label: ""
schema:
type: dict
attrs:
- variable: average
label: "Average"
schema:
type: int
required: true
default: 300
- variable: burst
label: "Burst"
schema:
type: int
required: true
default: 200
- variable: hostNetwork
group: "Networking and Services"

View File

@@ -1,3 +1,4 @@
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
@@ -18,6 +19,17 @@ spec:
average: 300
burst: 200
---
# This ensures http is redirected to https even when the websecure port is set to 9443
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: basic-redirectscheme
namespace: traefikmiddlewares
spec:
redirectScheme:
scheme: https
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:

View File

@@ -0,0 +1,16 @@
{{ range $index, $middlewareData := .Values.middlewares.chain }}
---
# Declaring the user list
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: {{ $middlewareData.name }}
namespace: traefikmiddlewares
spec:
chain:
middlewares:
{{ range $index, $chainData := .Values.middlewares.chainmiddlewares }}
- name: {{ $chainData.name }}
{{ end }}
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ range $index, $middlewareData := .Values.middlewares.rateLimit }}
---
# Declaring the user list
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: {{ $middlewareData.name }}
namespace: traefikmiddlewares
spec:
rateLimit:
average: {{ $middlewareData.average }}
burst: {{ $middlewareData.burst }}
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ range $index, $middlewareData := .Values.middlewares.redirectScheme }}
---
# Declaring the user list
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: {{ $middlewareData.name }}
namespace: traefikmiddlewares
spec:
redirectScheme:
scheme: {{ $middlewareData.scheme }}
permanent: {{ $middlewareData.permanent }}
{{ end }}

View File

@@ -424,3 +424,12 @@ middlewares:
# - "X-CustomHeader"
# authResponseHeadersRegex: "^X-"
# trustForwardHeader: true
chain: []
# middlewares:
# - name: compress
redirectScheme: []
# scheme: https
# permanent: true
rateLimit: []
# average: 300
# burst: 200