diff --git a/argocd-helm-charts/prometheus-linuxaid/templates/middleware.yaml b/argocd-helm-charts/prometheus-linuxaid/templates/middleware.yaml deleted file mode 100644 index f465d3672..000000000 --- a/argocd-helm-charts/prometheus-linuxaid/templates/middleware.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: ipwhitelist-{{ .Values.customerid }} - namespace: monitoring-{{ .Values.customerid }} -spec: - ipWhiteList: - sourceRange: {{- range .Values.prometheus.ingress.allowedSourceRanges}} - - {{ . }} - {{- end}} diff --git a/argocd-helm-charts/prometheus-linuxaid/templates/prometheus-ingressroute.yaml b/argocd-helm-charts/prometheus-linuxaid/templates/prometheus-ingressroute.yaml index 3193ba171..343358df8 100644 --- a/argocd-helm-charts/prometheus-linuxaid/templates/prometheus-ingressroute.yaml +++ b/argocd-helm-charts/prometheus-linuxaid/templates/prometheus-ingressroute.yaml @@ -3,18 +3,14 @@ kind: IngressRoute metadata: name: prometheus-{{ .Values.customerid }} namespace: monitoring-{{ .Values.customerid }} - annotations: - traefik.ingress.kubernetes.io/router.middlewares: monitoring-{{ .Values.customerid }}-ipwhitelist-{{ .Values.customerid }}@kubernetescrd spec: entryPoints: - websecure routes: - - kind: Rule - match: Host(`{{ .Values.prometheus.server }}`) && PathPrefix(`/{{ .Values.customerid }}`) + - match: Host(`{{ .Values.prometheus.server }}`) && PathPrefix(`/{{ .Values.customerid }}`) priority: 10 services: - - kind: Service - name: prometheus-main + - name: prometheus-main namespace: monitoring-{{ .Values.customerid }} passHostHeader: true port: web