apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: prometheus namespace: default annotations: # 1. Enable cert-manager for automatic TLS cert-manager.io/cluster-issuer: "letsencrypt-prod" # 2. NGINX Annotation for the specific ingress class kubernetes.io/ingress.class: "nginx" # 3. Optional: Recommended annotation for Prometheus to handle large query responses nginx.ingress.kubernetes.io/proxy-body-size: "50m" spec: ingressClassName: nginx tls: - hosts: - prometheus.ziffeldogip.de secretName: prometheus-tls # cert-manager will create this secret rules: - host: prometheus.ziffeldogip.de http: paths: - path: / pathType: Prefix backend: service: name: prometheus # Name of the ClusterIP Service port: number: 80 # The port the Service exposes