Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert Manager Container Crash #13

Open
hollowpnt92 opened this issue Mar 14, 2018 · 0 comments
Open

Alert Manager Container Crash #13

hollowpnt92 opened this issue Mar 14, 2018 · 0 comments

Comments

@hollowpnt92
Copy link

I found an issue with the alertmanager-deployment.yaml when using the most up to date prometheus.

If anyone else sees this, the pod will deploy and then you will see the following. See fix section if you need to fix this.

This is fixed for me, just wanted to leave this for awareness.

Normal Scheduled 46s default-scheduler Successfully assigned alertmanager-6c54bccc56-84k4g to aks-nodepool1-42287233-0
Normal SuccessfulMountVolume 46s kubelet, aks-nodepool1-42287233-0 MountVolume.SetUp succeeded for volume "alertmanager"
Normal SuccessfulMountVolume 46s kubelet, aks-nodepool1-42287233-0 MountVolume.SetUp succeeded for volume "config-volume"
Normal SuccessfulMountVolume 46s kubelet, aks-nodepool1-42287233-0 MountVolume.SetUp succeeded for volume "templates-volume"
Normal SuccessfulMountVolume 46s kubelet, aks-nodepool1-42287233-0 MountVolume.SetUp succeeded for volume "default-token-c658r"
Normal SuccessfulMountVolume 46s kubelet, aks-nodepool1-42287233-0 MountVolume.SetUp succeeded for volume "etcd-tls-client-certs"
Normal Pulling 25s (x3 over 45s) kubelet, aks-nodepool1-42287233-0 pulling image "prom/alertmanager:master"
Normal Pulled 24s (x3 over 40s) kubelet, aks-nodepool1-42287233-0 Successfully pulled image "prom/alertmanager:master"
Normal Created 24s (x3 over 40s) kubelet, aks-nodepool1-42287233-0 Created container
Normal Started 24s (x3 over 40s) kubelet, aks-nodepool1-42287233-0 Started container
Warning BackOff 13s (x4 over 37s) kubelet, aks-nodepool1-42287233-0 Back-off restarting failed container
Warning FailedSync 13s (x4 over 37s) kubelet, aks-nodepool1-42287233-0 Error syncing pod

# FIX

They have changed the syntax of the deployment file to require a "--" in the specified area, the syntax of the spec heading should be as follows in the "alertmanager-deployment.yaml" file.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: alertmanager
spec:
replicas: 1
selector:
matchLabels:
app: alertmanager
template:
metadata:
name: alertmanager
labels:
app: alertmanager
spec:
containers:
- name: alertmanager
image: prom/alertmanager:master
args:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
- '--web.external-url=$(EXTERNAL_URL)/alertmanager'

was

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: alertmanager
spec:
replicas: 1
selector:
matchLabels:
app: alertmanager
template:
metadata:
name: alertmanager
labels:
app: alertmanager
spec:
containers:
- name: alertmanager
image: prom/alertmanager:master
args:
- '-config.file=/etc/alertmanager/config.yml'
- '-storage.path=/alertmanager'
- '-web.external-url=$(EXTERNAL_URL)/alertmanager'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant