From c7fc17e58f81724ce647520375e75528a2e7c2fb Mon Sep 17 00:00:00 2001 From: Richard87 Date: Tue, 15 Oct 2024 11:26:35 +0200 Subject: [PATCH] feat: map dns zone to query --- .../templates/ingress.api.yaml | 38 +++++++++++++++++++ queries.yaml | 8 ++-- 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 charts/radix-prometheus-proxy/templates/ingress.api.yaml diff --git a/charts/radix-prometheus-proxy/templates/ingress.api.yaml b/charts/radix-prometheus-proxy/templates/ingress.api.yaml new file mode 100644 index 0000000..86a6a58 --- /dev/null +++ b/charts/radix-prometheus-proxy/templates/ingress.api.yaml @@ -0,0 +1,38 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + ingress.kubernetes.io/force-ssl-redirect: "true" + labels: + radix-app: radix-api + radix-component: server + name: server.custom-domain + namespace: radix-api-${RADIX_APP_ENV:=tba} +spec: + ingressClassName: nginx + rules: + - host: api.${AZ_RESOURCE_DNS:=tba} + http: + paths: + - path: "/" + pathType: Prefix + backend: + service: + name: server + port: + number: 3002 + - host: api.${clusterName:=tba}.${AZ_RESOURCE_DNS:=tba} + http: + paths: + - path: "/" + pathType: Prefix + backend: + service: + name: server + port: + number: 3002 + tls: + - hosts: + - api.${AZ_RESOURCE_DNS:=tba} + - api.${clusterName:=tba}.${AZ_RESOURCE_DNS:=tba} + secretName: "radix-wildcard-tls-cert" diff --git a/queries.yaml b/queries.yaml index 525b6df..ba3befa 100644 --- a/queries.yaml +++ b/queries.yaml @@ -1,4 +1,4 @@ -dev: min_over_time(probe_success{instance="https://api.dev.radix.equinor.com/health/"}[5m]) -playground: min_over_time(probe_success{instance="https://api.playground.radix.equinor.com/health/"}[5m]) -platform: min_over_time(probe_success{instance="https://api.radix.equinor.com/health/"}[5m]) -c2: min_over_time(probe_success{instance="https://api.c2.radix.equinor.com/health/"}[5m]) +dev.radix.equinor.com: min_over_time(probe_success{instance="https://api.dev.radix.equinor.com/health/"}[5m]) +playground.radix.equinor.com: min_over_time(probe_success{instance="https://api.playground.radix.equinor.com/health/"}[5m]) +radix.equinor.com: min_over_time(probe_success{instance="https://api.radix.equinor.com/health/"}[5m]) +c2.radix.equinor.com: min_over_time(probe_success{instance="https://api.c2.radix.equinor.com/health/"}[5m])