From 91a741f5b32f8ba3e72c6136195410e02b01e026 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 22 Apr 2022 13:57:35 +0200 Subject: [PATCH] Move to different nginx container quay.io/bitnami/nginx does not exist any more. This one is maintained well. Also expose the httpd port to the host, for easier debugging. --- learn-metrics.yaml | 8 ++++++-- prometheus-config/prometheus.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/learn-metrics.yaml b/learn-metrics.yaml index 3d6c678..8bde445 100644 --- a/learn-metrics.yaml +++ b/learn-metrics.yaml @@ -36,11 +36,15 @@ spec: mountPath: /etc/prometheus readOnly: true - - image: quay.io/bitnami/nginx + - image: quay.io/jitesoft/nginx name: httpd + ports: + - containerPort: 80 + hostPort: 3002 + protocol: TCP volumeMounts: - name: http - mountPath: /app + mountPath: /usr/local/nginx/html readOnly: true volumes: diff --git a/prometheus-config/prometheus.yml b/prometheus-config/prometheus.yml index 592ac7a..b9b597c 100644 --- a/prometheus-config/prometheus.yml +++ b/prometheus-config/prometheus.yml @@ -19,4 +19,4 @@ scrape_configs: metrics_path: /metrics scheme: http static_configs: - - targets: ['localhost:8080'] + - targets: ['localhost'] -- 2.39.5