From c7fd259ee47e38bf1ee6cc44fd7bcae486126e17 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 16:24:12 +1000 Subject: [PATCH] use ClusterIP and ingress to handle the incoming requests --- kubernetes/infrastructure/prometheus/app/ingress.yaml | 4 ++-- kubernetes/infrastructure/prometheus/app/service.yaml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/kubernetes/infrastructure/prometheus/app/ingress.yaml b/kubernetes/infrastructure/prometheus/app/ingress.yaml index bbc5d82..08f898d 100644 --- a/kubernetes/infrastructure/prometheus/app/ingress.yaml +++ b/kubernetes/infrastructure/prometheus/app/ingress.yaml @@ -18,7 +18,7 @@ spec: service: name: prometheus port: - number: 30999 + number: 9999 - host: "prometheus.cluster.local" http: paths: @@ -28,4 +28,4 @@ spec: service: name: prometheus port: - number: 30999 \ No newline at end of file + number: 9999 \ No newline at end of file diff --git a/kubernetes/infrastructure/prometheus/app/service.yaml b/kubernetes/infrastructure/prometheus/app/service.yaml index e87e722..3079b83 100644 --- a/kubernetes/infrastructure/prometheus/app/service.yaml +++ b/kubernetes/infrastructure/prometheus/app/service.yaml @@ -9,8 +9,7 @@ metadata: spec: selector: app: prometheus - type: NodePort + type: ClusterIP ports: - port: 9999 - targetPort: 9999 - nodePort: 30999 \ No newline at end of file + targetPort: 9999 \ No newline at end of file