2022-01-31 15:54:22 +00:00
|
|
|
{{- $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:
|
2022-01-31 20:36:00 +00:00
|
|
|
name: tc-opencors-chain
|
2022-01-31 15:54:22 +00:00
|
|
|
namespace: {{ $namespace }}
|
|
|
|
spec:
|
2022-01-31 20:36:00 +00:00
|
|
|
chain:
|
|
|
|
middlewares:
|
|
|
|
- name: basic-ratelimit
|
|
|
|
- name: tc-opencors-headers
|
|
|
|
- name: compress
|
2022-01-31 15:54:22 +00:00
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
2022-01-31 20:36:00 +00:00
|
|
|
name: tc-closedcors-chain
|
2022-01-31 15:54:22 +00:00
|
|
|
namespace: {{ $namespace }}
|
|
|
|
spec:
|
|
|
|
chain:
|
|
|
|
middlewares:
|
2022-01-31 19:36:36 +00:00
|
|
|
- name: basic-ratelimit
|
2022-01-31 20:36:00 +00:00
|
|
|
- name: tc-closedcors-headers
|
2022-01-31 19:36:36 +00:00
|
|
|
- name: compress
|