Add traefik middleware to templates
This commit is contained in:
parent
3e31d1ff5e
commit
8eec7a3ae3
@ -54,6 +54,13 @@ templates:
|
||||
alias: traefik
|
||||
values:
|
||||
- '{{ requiredEnv "PWD" }}/values/common/values.tcp-route.yaml'
|
||||
ext-traefik-middleware:
|
||||
dependencies:
|
||||
- chart: bedag/raw
|
||||
version: 2.0.0
|
||||
alias: middleware
|
||||
values:
|
||||
- '{{ requiredEnv "PWD" }}/values/common/values.middleware.yaml'
|
||||
ext-istio-resource:
|
||||
dependencies:
|
||||
- chart: bedag/raw
|
||||
|
12
values/common/values.middleware.yaml
Normal file
12
values/common/values.middleware.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
middleware:
|
||||
templates:
|
||||
- |
|
||||
{{ range .Values.middlewares }}
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
{{ .spec | toYaml | nindent 4 }}
|
||||
{{- end }}
|
Loading…
Reference in New Issue
Block a user