alertmanager-deployment.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: alertmanager
  5. namespace: kube-system
  6. labels:
  7. k8s-app: alertmanager
  8. kubernetes.io/cluster-service: "true"
  9. addonmanager.kubernetes.io/mode: Reconcile
  10. version: v0.14.0
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. k8s-app: alertmanager
  16. version: v0.14.0
  17. template:
  18. metadata:
  19. labels:
  20. k8s-app: alertmanager
  21. version: v0.14.0
  22. annotations:
  23. scheduler.alpha.kubernetes.io/critical-pod: ''
  24. spec:
  25. priorityClassName: system-cluster-critical
  26. containers:
  27. - name: prometheus-alertmanager
  28. image: "prom/alertmanager:v0.14.0"
  29. imagePullPolicy: "IfNotPresent"
  30. args:
  31. - --config.file=/etc/config/alertmanager.yml
  32. - --storage.path=/data
  33. - --web.external-url=/
  34. ports:
  35. - containerPort: 9093
  36. readinessProbe:
  37. httpGet:
  38. path: /#/status
  39. port: 9093
  40. initialDelaySeconds: 30
  41. timeoutSeconds: 30
  42. volumeMounts:
  43. - name: config-volume
  44. mountPath: /etc/config
  45. - name: storage-volume
  46. mountPath: "/data"
  47. subPath: ""
  48. resources:
  49. limits:
  50. cpu: 10m
  51. memory: 50Mi
  52. requests:
  53. cpu: 10m
  54. memory: 50Mi
  55. - name: prometheus-alertmanager-configmap-reload
  56. image: "jimmidyson/configmap-reload:v0.1"
  57. imagePullPolicy: "IfNotPresent"
  58. args:
  59. - --volume-dir=/etc/config
  60. - --webhook-url=http://localhost:9093/-/reload
  61. volumeMounts:
  62. - name: config-volume
  63. mountPath: /etc/config
  64. readOnly: true
  65. resources:
  66. limits:
  67. cpu: 10m
  68. memory: 10Mi
  69. requests:
  70. cpu: 10m
  71. memory: 10Mi
  72. volumes:
  73. - name: config-volume
  74. configMap:
  75. name: alertmanager-config
  76. - name: storage-volume
  77. persistentVolumeClaim:
  78. claimName: alertmanager