2023-08-19 06:13:59 +00:00
|
|
|
---
|
|
|
|
apiVersion: monitoring.coreos.com/v1alpha1
|
|
|
|
kind: AlertmanagerConfig
|
|
|
|
metadata:
|
|
|
|
name: alertmanager
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: alertmanager
|
|
|
|
spec:
|
|
|
|
route:
|
|
|
|
routes:
|
|
|
|
- continue: false
|
|
|
|
receiver: slack-notifications
|
|
|
|
matchers:
|
|
|
|
- matchType: "="
|
|
|
|
name: severity
|
|
|
|
value: critical
|
|
|
|
receiver: 'null'
|
|
|
|
receivers:
|
|
|
|
- name: 'null'
|
|
|
|
- name: 'slack-notifications'
|
|
|
|
slackConfigs:
|
|
|
|
- channel: '#kube-prod'
|
|
|
|
sendResolved: true
|
|
|
|
apiURL:
|
|
|
|
name: slack-secrets
|
|
|
|
key: webhook-url
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: Alertmanager
|
|
|
|
metadata:
|
|
|
|
name: alertmanager
|
|
|
|
spec:
|
2024-08-21 04:11:06 +00:00
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: topology.kubernetes.io/zone
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/instance: alertmanager
|
|
|
|
app.kubernetes.io/name: alertmanager
|
2023-08-19 06:13:59 +00:00
|
|
|
alertmanagerConfigMatcherStrategy:
|
|
|
|
type: None
|
|
|
|
alertmanagerConfigNamespaceSelector: {}
|
|
|
|
alertmanagerConfigSelector: {}
|
|
|
|
alertmanagerConfiguration:
|
|
|
|
name: alertmanager
|
|
|
|
secrets:
|
|
|
|
- slack-secrets
|
|
|
|
nodeSelector:
|
2024-08-23 04:58:26 +00:00
|
|
|
node-role.kubernetes.io/control-plane: ''
|
2023-08-19 06:13:59 +00:00
|
|
|
tolerations:
|
2024-08-23 04:58:26 +00:00
|
|
|
- key: node-role.kubernetes.io/control-plane
|
2023-08-19 06:13:59 +00:00
|
|
|
operator: Equal
|
2024-08-23 04:58:26 +00:00
|
|
|
value: ''
|
2023-08-19 06:13:59 +00:00
|
|
|
effect: NoSchedule
|
|
|
|
replicas: 3
|
|
|
|
serviceAccountName: alertmanager
|
|
|
|
externalUrl: http://am.k-space.ee/
|
|
|
|
routePrefix: "/"
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 2000
|
|
|
|
runAsGroup: 2000
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 1000
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: alertmanager
|