ntfy-alertmanager.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: ntfy-alertmanager
  6. namespace: monitoring
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: ntfy-alertmanager
  11. replicas: 1
  12. template:
  13. metadata:
  14. labels:
  15. app: ntfy-alertmanager
  16. spec:
  17. containers:
  18. - name: ntfy-alertmanager
  19. image: xenrox/ntfy-alertmanager:latest
  20. args: ["--config", "/config/config.yaml"]
  21. ports:
  22. - containerPort: 8080
  23. name: http-web-svc
  24. volumeMounts:
  25. - mountPath: "/config"
  26. name: "config"
  27. volumes:
  28. - name: config
  29. secret:
  30. secretName: ntfy-alertmanager-config-secret
  31. ---
  32. apiVersion: v1
  33. kind: Service
  34. metadata:
  35. name: ntfy-alertmanager
  36. namespace: monitoring
  37. spec:
  38. selector:
  39. app: ntfy-alertmanager
  40. type: ClusterIP
  41. ports:
  42. - name: ntfy-alertmanager-port
  43. protocol: TCP
  44. port: 80
  45. targetPort: http-web-svc
  46. ---
  47. apiVersion: traefik.containo.us/v1alpha1
  48. kind: IngressRoute
  49. metadata:
  50. name: ntfy-alertmanager
  51. namespace: monitoring
  52. spec:
  53. entryPoints:
  54. - websecure
  55. routes:
  56. - kind: Rule
  57. match: Host(`ntfy-alertmanager.jibby.org`)
  58. services:
  59. - kind: Service
  60. name: ntfy-alertmanager
  61. port: 80