2023-06-12 16:19:01 +00:00
|
|
|
---
|
2022-12-01 22:20:33 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-06-12 16:19:01 +00:00
|
|
|
annotations:
|
|
|
|
{{- if .Values.global.commonAnnotations }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
labels:
|
|
|
|
{{- if .Values.global.commonLabels }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
app.kubernetes.io/part-of: federatorai
|
|
|
|
app: alameda
|
|
|
|
component: alert-manager
|
|
|
|
name: federatorai-alert-manager
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: alameda
|
|
|
|
component: alert-manager
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
2023-06-12 16:19:01 +00:00
|
|
|
annotations:
|
|
|
|
{{- if .Values.global.podAnnotations }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.global.podAnnotations "context" .) | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
labels:
|
|
|
|
{{- if .Values.global.podLabels }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.global.podLabels "context" .) | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
app.kubernetes.io/part-of: federatorai
|
|
|
|
app: alameda
|
|
|
|
component: alert-manager
|
|
|
|
spec:
|
2023-06-12 16:19:01 +00:00
|
|
|
affinity:
|
|
|
|
{{- if .Values.federatoraiAlertManager.affinity }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.federatoraiAlertManager.affinity "context" .) | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
containers:
|
2023-06-12 16:19:01 +00:00
|
|
|
- command:
|
|
|
|
- /opt/federatorai/alert-manager/bin/alertmgr
|
|
|
|
env:
|
|
|
|
- name: ALERT_DATAHUB_HOST
|
|
|
|
value: alameda-datahub.federatorai.svc
|
|
|
|
- name: ALERT_DATAHUB_PORT
|
|
|
|
value: "50050"
|
|
|
|
- name: ALERT_RABBITMQ_HOST
|
|
|
|
value: alameda-rabbitmq.federatorai.svc
|
|
|
|
- name: ALERT_RABBITMQ_PORT
|
|
|
|
value: "5672"
|
|
|
|
- name: FEDERATORAI_MAXIMUM_LOG_SIZE
|
|
|
|
value: "1932735283"
|
2023-08-02 21:27:24 +00:00
|
|
|
{{- if .Values.federatoraiAlertManager.image }}
|
|
|
|
image: {{ .Values.federatoraiAlertManager.image }}
|
|
|
|
{{- else }}
|
2023-06-12 16:19:01 +00:00
|
|
|
image: {{ .Values.global.imageRegistry }}/federatorai-alert-manager:{{ .Values.global.imageTag }}
|
2023-08-02 21:27:24 +00:00
|
|
|
{{- end }}
|
2023-06-12 16:19:01 +00:00
|
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
|
|
|
|
livenessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /opt/federatorai/alert-manager/bin/mgrctl
|
|
|
|
- probe
|
|
|
|
- --type
|
|
|
|
- liveness
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 60
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 30
|
|
|
|
name: alert-manager
|
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /opt/federatorai/alert-manager/bin/mgrctl
|
|
|
|
- probe
|
|
|
|
- --type
|
|
|
|
- readiness
|
|
|
|
failureThreshold: 3
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 60
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 30
|
|
|
|
resources:
|
|
|
|
{{- if .Values.global.resourcesLimitsEnabled }}
|
|
|
|
limits:
|
|
|
|
{{- include "render-value" ( dict "value" .Values.federatoraiAlertManager.resources.limits "context" .) | nindent 14 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.global.resourcesRequestsEnabled }}
|
|
|
|
requests:
|
|
|
|
{{- include "render-value" ( dict "value" .Values.federatoraiAlertManager.resources.requests "context" .) | nindent 14 }}
|
|
|
|
{{- end }}
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/log/alameda
|
|
|
|
name: federatorai-alert-manager-log-storage
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- if .Values.global.imagePullSecrets }}
|
|
|
|
{{ include "render-value" ( dict "value" .Values.global.imagePullSecrets "context" .) | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
securityContext:
|
|
|
|
fsGroup: 1001
|
2023-06-12 16:19:01 +00:00
|
|
|
{{- if .Values.federatoraiAlertManager.podSecurityContext }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.federatoraiAlertManager.podSecurityContext "context" .) | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
serviceAccount: federatorai-alert-manager
|
|
|
|
serviceAccountName: federatorai-alert-manager
|
2023-06-12 16:19:01 +00:00
|
|
|
tolerations:
|
|
|
|
{{- if .Values.federatoraiAlertManager.tolerations }}
|
|
|
|
{{- include "render-value" ( dict "value" .Values.federatoraiAlertManager.tolerations "context" .) | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-12-01 22:20:33 +00:00
|
|
|
volumes:
|
2023-06-12 16:19:01 +00:00
|
|
|
- emptyDir: {}
|
|
|
|
name: federatorai-alert-manager-data-storage
|
|
|
|
- name: federatorai-alert-manager-log-storage
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: federatorai-alert-manager-log.pvc
|