Hi,
I used the following files to deploy alertmanager, but it cannot be
communicated.
apiVersion: apps/v1
kind: Deployment
metadata:
name: alertmanager1
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: alertmanager1
template:
metadata:
name: alertmanager1
labels:
app: alertmanager1
spec:
containers:
- name: alertmanager
image: prometheus/alertmanager:latest
args:
- "--config.file=/etc/alertmanager/config.yml"
- "--storage.path=/alertmanager"
- "--web.external-url=http://localhost:9093/alertmanager1/"
- "--log.level=debug"
ports:
- containerPort: 9093
volumeMounts:
- name: config-volume
mountPath: /etc/alertmanager
imagePullPolicy: Always
imagePullSecrets:
- name: regcred
volumes:
- name: config-volume
configMap:
name: alertmanager-config
---
apiVersion: v1
kind: Service
metadata:
name: alertmanager1
namespace: monitoring
spec:
selector:
app: alertmanager1
ports:
- port: 9093
targetPort: 9093
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets: ['alertmanager1.monitoring.svc:9093']
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/f68728a5-9b86-4734-8e23-5236e067f7b8n%40googlegroups.com.