From 4b9da2ba2be0cd363562470604527209482b2b21 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Wed, 14 Aug 2024 18:46:30 +0800 Subject: [PATCH] fix(vmsingle): ingress --- .../monitoring/victoria/cluster/ingress.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 kube/deploy/core/monitoring/victoria/cluster/ingress.yaml diff --git a/kube/deploy/core/monitoring/victoria/cluster/ingress.yaml b/kube/deploy/core/monitoring/victoria/cluster/ingress.yaml new file mode 100644 index 0000000000..7abe741929 --- /dev/null +++ b/kube/deploy/core/monitoring/victoria/cluster/ingress.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: vmsingle + namespace: monitoring + annotations: + nginx.ingress.kubernetes.io/whitelist-source-range: | + ${IP_JJ_V4} +spec: + ingressClassName: "nginx-internal" + rules: + - host: &host "${APP_DNS_VMSINGLE}" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: vmsingle-victoria + port: + name: http + tls: + - hosts: + - *host