Ver Fonte

Merge pull request #9507 from pgier/bz1552516

[bz1552516] set the external url of prometheus
OpenShift Merge Robot há 6 anos atrás
pai
commit
a833b550c9
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      roles/openshift_prometheus/templates/prometheus.j2

+ 1 - 0
roles/openshift_prometheus/templates/prometheus.j2

@@ -80,6 +80,7 @@ spec:
 {% endfor %}
 {% endfor %}
         - --config.file=/etc/prometheus/prometheus.yml
         - --config.file=/etc/prometheus/prometheus.yml
         - --web.listen-address=localhost:9090
         - --web.listen-address=localhost:9090
+        - --web.external-url=https://{{ openshift_prometheus_hostname }}
         image: "{{ openshift_prometheus_image }}"
         image: "{{ openshift_prometheus_image }}"
         imagePullPolicy: IfNotPresent
         imagePullPolicy: IfNotPresent
         livenessProbe:
         livenessProbe: