prometheus-operator: Alertmanager CrashLoopBackOff
What did you do? I want to create Alertmanager in prometheus operator. Kubectl create -f alert.yaml
apiVersion: monitoring.coreos.com/v1 kind: Alertmanager metadata: labels: alertmanager: example name: example spec: baseImage: quay.io/prometheus/alertmanager replicas: 3 version: v0.15.2 nodeSelector: {}
Kubectl get pods shows Alertmanager pod status as CrashLoopBackOff
Pod logs Error from server (BadRequest): a container name must be specified for pod alertmanager-example-0, choose one of: [alertmanager config-reloader]
What did you expect to see? expect to create Alertmanager Pods
What did you see instead? Under which circumstances? Kubectl get pods shows Alertmanager pod status as CrashLoopBackOff
Pod logs Error from server (BadRequest): a container name must be specified for pod alertmanager-example-0, choose one of: [alertmanager config-reloader]
Environment k8s
- Prometheus Operator version: 0.25.0
insert Prometheus Operator logs relevant to the issue here
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (2 by maintainers)
Hey @yaminisridaran Can you please paste output of
kubectl logs alertmanager-example-0 -c alertmanagerWhat you have pasted above is an error since the logs command does not know which container to show logs from.
@aixeshunter Thank you.