alertmanager-deployment.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ---
  2. # Source: loki-stack/charts/prometheus/templates/alertmanager-deployment.yaml
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. labels:
  7. component: "alertmanager"
  8. app: prometheus
  9. release: loki
  10. chart: prometheus-9.3.1
  11. heritage: Tiller
  12. name: loki-prometheus-alertmanager
  13. spec:
  14. selector:
  15. matchLabels:
  16. component: "alertmanager"
  17. app: prometheus
  18. release: loki
  19. replicas: 1
  20. template:
  21. metadata:
  22. labels:
  23. component: "alertmanager"
  24. app: prometheus
  25. release: loki
  26. chart: prometheus-9.3.1
  27. heritage: Tiller
  28. spec:
  29. serviceAccountName: loki-prometheus-alertmanager
  30. containers:
  31. - name: prometheus-alertmanager
  32. image: "prom/alertmanager:v0.18.0"
  33. imagePullPolicy: "IfNotPresent"
  34. env:
  35. - name: POD_IP
  36. valueFrom:
  37. fieldRef:
  38. apiVersion: v1
  39. fieldPath: status.podIP
  40. args:
  41. - --config.file=/etc/config/alertmanager.yml
  42. - --storage.path=/data
  43. - --cluster.advertise-address=$(POD_IP):6783
  44. - --web.external-url=/
  45. ports:
  46. - containerPort: 9093
  47. readinessProbe:
  48. httpGet:
  49. path: /#/status
  50. port: 9093
  51. initialDelaySeconds: 30
  52. timeoutSeconds: 30
  53. resources:
  54. {}
  55. volumeMounts:
  56. - name: config-volume
  57. mountPath: /etc/config
  58. - name: storage-volume
  59. mountPath: "/data"
  60. subPath: ""
  61. - name: prometheus-alertmanager-configmap-reload
  62. image: "jimmidyson/configmap-reload:v0.2.2"
  63. imagePullPolicy: "IfNotPresent"
  64. args:
  65. - --volume-dir=/etc/config
  66. - --webhook-url=http://127.0.0.1:9093/-/reload
  67. resources:
  68. {}
  69. volumeMounts:
  70. - name: config-volume
  71. mountPath: /etc/config
  72. readOnly: true
  73. securityContext:
  74. fsGroup: 65534
  75. runAsGroup: 65534
  76. runAsNonRoot: true
  77. runAsUser: 65534
  78. volumes:
  79. - name: config-volume
  80. configMap:
  81. name: loki-prometheus-alertmanager
  82. - name: storage-volume
  83. persistentVolumeClaim:
  84. claimName: loki-prometheus-alertmanager