Skip to content

Commit

Permalink
feat: map dns zone to query
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 15, 2024
1 parent 84358fa commit c7fc17e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
38 changes: 38 additions & 0 deletions charts/radix-prometheus-proxy/templates/ingress.api.yaml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 4 additions & 4 deletions queries.yaml
Original file line number Diff line number Diff line change
@@ -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])

0 comments on commit c7fc17e

Please sign in to comment.