# Serving prometheus kubernetes helm chart over HTTPS

**URL:** <https://community.traefik.io/t/serving-prometheus-kubernetes-helm-chart-over-https/11768>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [September 15, 2021, 5:58pm UTC](https://community.traefik.io/t/serving-prometheus-kubernetes-helm-chart-over-https/11768 "2021-09-15T17:58:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![francoisl](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@francoisl](https://community.traefik.io/u/francoisl)\
**Post date:** [September 15, 2021, 5:58pm UTC](https://community.traefik.io/t/serving-prometheus-kubernetes-helm-chart-over-https/11768/1 "2021-09-15T17:58:59Z")

</div>

Hello,  
I am trying to make the prometheus helm chart work on a fresh K8s using fluxcd.  
the chart link: [helm-charts/values.yaml at main · prometheus-community/helm-charts · GitHub](https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml)

Here are my values:

```auto
###########
# my ingress
###########
  values: 
    prometheus:
      ingress: # https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L1805
        enabled: true
        ingressClassName: traefik
        annotations:
          traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
          ingress.kubernetes.io/auth-type: basic
          ingress.kubernetes.io/auth-secret: prom-basic-auth-manual

        hosts:
        - my.host.com
        paths:
        - /
        pathType: Prefix

```

I want to be able to reach Prometheus from outside using HTTPS.  
Traefik is used as ingress controller with this configuration, using the helm chart (I did not include the DO secret & the volume-permissions init-container).

```auto
  values:
    image:
      tag: 2.5.1
    additionalArguments:
      - "--certificatesresolvers.le.acme.storage=/data/acme.json"
      - --certificatesresolvers.le.acme.dnschallenge.provider=digitalocean
      - --certificatesresolvers.le.acme.email=my@orga.eu
    ports:
      traefik:
        expose: false
        exposedPort: 9000
        port: 9000
        protocol: TCP
      web:
        expose: true
        exposedPort: 80
        port: 8000
        protocol: TCP
        # redirects traffic to the HTTPS section by default
        redirectTo: websecure
      websecure:
        expose: true
        exposedPort: 443
        port: 8443
        protocol: TCP
        tls:
          certResolver: le
          domains:
          - main: host.com
            sans:
            - '*.host.com'
          enabled: true
          options: ""

    env:
      - name: DO_AUTH_TOKEN
        valueFrom:
          secretKeyRef:
            key: apiKey
            name: do-api-credentials

```

The weird part is:  
If I use an ingressRoute that I manually create, it will work, I can access Prometheus over HTTPS,

```auto
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: kube-prometheus-ingress
  namespace: default
spec:
  entryPoints:
    - websecure
    - web
  routes:
  - match: Host(`my.host.com`)
    kind: Rule
    services:
    - name: default-kube-prometheus-st-prometheus
      port: 9090
  tls:
    certResolver: le

```

As the Prometheus helm chart is using the Ingress object, how to use it / why is my configuration wrong for the ingress ?

best regards, all answers would be appreciated 🙂
