<p>I want to reach Prometheus Operator over Internet via HTTPS.</p>

<p>I deployed Prometheus via HELM and provided the following custom-vault.yml</p>

<p><strong>Chart Version:</strong></p>

<pre><code> kube-prometheus-0.0.105
 nginx-ingress-0.31.0
</code></pre>

<p><strong>Deployment:</strong></p>

<pre><code>helm install coreos/kube-prometheus --name kube-prometheus --set global.rbacEnable=false \
--namespace monitoring -f custom-vault.yml
</code></pre>

<p><strong>What i expect</strong>:
I want to browse Prometheus via URL
<a href="https://example.com/prometheus" rel="nofollow noreferrer">https://example.com/prometheus</a></p>

<p><strong>my custom-vault.yml</strong> </p>

<pre><code>prometheus:
  ingress:
    enabled: true
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/rewrite-target: /
    tls: 
      - secretName: tls-secret
        hosts: 
          - example.com
    hosts:
      - example.com
    paths:
      - /
  #prometheusSpec:
    #externalUrl: https://example.com/prometheus
</code></pre>

<p><strong>What happen?</strong></p>

<p>I can reach <a href="https://example.com/graph" rel="nofollow noreferrer">https://example.com/graph</a> but CSS Files doesn´t get loaded due to path error.</p>

<p>When i try to configure <a href="https://example.com/prometheus/graph" rel="nofollow noreferrer">https://example.com/prometheus/graph</a> also CSS doesn´t work and when i click on the Frontend on Alerts then i get redireted to <a href="https://example.com/alerts" rel="nofollow noreferrer">https://example.com/alerts</a> and getting and "default backend 404" error.</p>

<p>Other Ingress Routes for serval Services / Pods are working
Prometheus is also working - when i expose the Port to localhost, Prometheus get displayed correctly.</p>

Stefan Schulze
<p>thanks for your Input. You helped me to solve the problem. Not on the direct way, but it gave me a new point of view.</p>

<p><strong>How i solved the issue:</strong>
I changed the deployment from coreos/kube-prometheus to stable/prometheus-operator</p>

<p>The current version is 6.11
I was not able to install directly 6.11 - i need to install 6.0.0 and upgraded to 6.11</p>

<p>Also provided a new custom-value.yaml</p>

<p>With this setting it works perfectly!</p>

<p>custom-value.yaml</p>

<pre><code>prometheus:
  ingress:
    enabled: true
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/whitelist-source-range: "{my_whitelisted_public_ip}"
      nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
    tls: 
      - secretName: tls-secret
        hosts: 
          - example.com
    hosts:
      - example.com
    paths:
      - /
  prometheusSpec:
    externalUrl: http://example.com/prometheus
    routePrefix : prometheus/

</code></pre>

<p>Thank you.</p>

<p>BR</p>
