30 lines
738 B
YAML
30 lines
738 B
YAML
{{- $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
|