From 38535140edcdf6bfe5d5d4c0a5e4135ecebc9799 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 29 Jul 2023 09:45:21 +0200 Subject: [PATCH] feat(Prometheus): Add internal ingress --- manifests/prometheus/ingress.yaml | 23 +++++++++++++++++++++++ manifests/prometheus/kustomization.yaml | 1 + 2 files changed, 24 insertions(+) create mode 100644 manifests/prometheus/ingress.yaml diff --git a/manifests/prometheus/ingress.yaml b/manifests/prometheus/ingress.yaml new file mode 100644 index 0000000..63da815 --- /dev/null +++ b/manifests/prometheus/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: prometheus-ingress + namespace: monitoring + annotations: + kubernetes.io/ingress.class: "traefik-inter" +spec: + tls: + - secretName: prometheus-beta-tls + hosts: + - prometheus.beta.entos + rules: + - host: prometheus.beta.entos + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: prometheus-svc + port: + number: 9090 diff --git a/manifests/prometheus/kustomization.yaml b/manifests/prometheus/kustomization.yaml index 5dc83e0..da6d3f3 100644 --- a/manifests/prometheus/kustomization.yaml +++ b/manifests/prometheus/kustomization.yaml @@ -3,5 +3,6 @@ resources: - clusterrole.yaml - clusterrolebinding.yaml - service.yaml + - ingress.yaml - servicemonitor.yaml - prometheus.yaml