prometheus-service.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ---
  2. # Everything else was set up via `microk8s install prometheus`
  3. apiVersion: networking.k8s.io/v1
  4. kind: Ingress
  5. metadata:
  6. name: prometheus-monkeybox-ingress
  7. namespace: monitoring
  8. annotations:
  9. #nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  10. #nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
  11. cert-manager.io/cluster-issuer: "letsencrypt-prod"
  12. ## type of authentication
  13. nginx.ingress.kubernetes.io/auth-type: basic
  14. ## name of the secret that contains the user/password definitions
  15. nginx.ingress.kubernetes.io/auth-secret: basic-auth
  16. ## message to display with an appropriate context why the authentication is required
  17. nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Prometheus'
  18. spec:
  19. tls:
  20. - hosts:
  21. - prometheus.monkeybox.org
  22. secretName: prometheus-monkeybox-tls
  23. rules:
  24. - host: prometheus.monkeybox.org
  25. http:
  26. paths:
  27. - path: /
  28. pathType: Prefix
  29. backend:
  30. service:
  31. name: prometheus-k8s
  32. port:
  33. number: 9090
  34. ---
  35. # Everything else was set up via `microk8s install grafana`
  36. apiVersion: networking.k8s.io/v1
  37. kind: Ingress
  38. metadata:
  39. name: grafana-monkeybox-ingress
  40. namespace: monitoring
  41. annotations:
  42. #nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  43. #nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
  44. cert-manager.io/cluster-issuer: "letsencrypt-prod"
  45. ## No basic auth for gphotos-uploader
  46. ## type of authentication
  47. #nginx.ingress.kubernetes.io/auth-type: basic
  48. ## name of the secret that contains the user/password definitions
  49. #nginx.ingress.kubernetes.io/auth-secret: basic-auth
  50. ## message to display with an appropriate context why the authentication is required
  51. #nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Octoprint'
  52. spec:
  53. tls:
  54. - hosts:
  55. - grafana.monkeybox.org
  56. secretName: grafana-monkeybox-tls
  57. rules:
  58. - host: grafana.monkeybox.org
  59. http:
  60. paths:
  61. - path: /
  62. pathType: Prefix
  63. backend:
  64. service:
  65. name: grafana
  66. port:
  67. number: 3000