ingress-loki.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{- if and .Values.loki.enabled .Values.loki.ingress.enabled }}
  2. apiVersion: networking.k8s.io/v1
  3. kind: Ingress
  4. metadata:
  5. name: loki
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. app: loki
  9. annotations:
  10. nginx.ingress.kubernetes.io/proxy-body-size: "0"
  11. nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
  12. nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
  13. spec:
  14. ingressClassName: nginx
  15. rules:
  16. - host: {{ .Values.loki.ingress.host }}
  17. http:
  18. paths:
  19. - path: /loki
  20. pathType: Prefix
  21. backend:
  22. service:
  23. name: loki
  24. port:
  25. number: 3100
  26. - path: /ready
  27. pathType: Exact
  28. backend:
  29. service:
  30. name: loki
  31. port:
  32. number: 3100
  33. - path: /metrics
  34. pathType: Prefix
  35. backend:
  36. service:
  37. name: loki
  38. port:
  39. number: 3100
  40. - path: /
  41. pathType: Exact
  42. backend:
  43. service:
  44. name: loki
  45. port:
  46. number: 3100
  47. {{- end }}