From: Martin Pitt Date: Fri, 22 Apr 2022 11:57:35 +0000 (+0200) Subject: Move to different nginx container X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=commitdiff_plain;h=91a741f5b32f8ba3e72c6136195410e02b01e026;ds=inline 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. --- 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']