Uptime & Heartbeat Monitors
Integrations
Powered By GitBook
Kubernetes Integration
With the iLert Kubernetes integration, you can create alerts in iLert based on Kubernetes events and metrics.

In iLert

Create a Kubenetes alert source

    1.
    Go to the "Alert sources" tab and click Create new alert source
    2.
    Enter a name and select your desired escalation policy. Select "Kubernetes" as the Integration Type and click on Save.
    1.
    On the next page, a API Key is generated. You will need it below when setting up the ilert-kube-agent deployment.

In Kubernetes

a. Deploy ilert-kube-agent with helm (recommended)

    1.
    Add helm charts repo and update it
1
helm repo add ilert https://ilert.github.io/charts/
2
helm repo update
Copied!
    1.
    Deploy ilert-kube-agent with the API Key that you generated in iLert
1
helm upgrade --install --namespace kube-system \
2
ilert-kube-agent ilert/ilert-kube-agent \
3
--set config.settings.apiKey="<YOUR KEY HERE>"
Copied!

b. Deploy ilert-kube-agent with terraform (recommended)

    1.
    Define module and paste the API Key that you generated in iLert
1
module "ilert-kube-agent" {
2
source = "iLert/ilert-kube-agent/kubernetes"
3
version = "0.3.9"
4
replicas = 2
5
api_key = "<YOUR KEY HERE>"
6
}
Copied!
    1.
    Apply changes
1
terraform init
2
terraform apply
Copied!

c. Deploy ilert-kube-agent with manifest

    1.
    Clone the ilert-kube-agent repository
1
git clone https://github.com/iLert/ilert-kube-agent.git
Copied!
    1.
    Paste the API Key that you generated in iLert into ./example/standard/30-deployment.yaml
1
...
2
env:
3
...
4
- name: ILERT_API_KEY
5
value: "<YOUR KEY HERE>"
6
...
Copied!
    1.
    Apply the deployment manifest to your kubernetes cluster
1
kubectl apply -f deployment/standard/
Copied!
    1.
    Verify that the ilert-kube-agent pods are running and ready
1
kubectl --namespace kube-system get pod -l app=ilert-kube-agent
2
3
NAME READY STATUS RESTARTS AGE
4
ilert-kube-agent-64f7dfd4d-nsnzp 1/1 Running 0 37h
5
ilert-kube-agent-64f7dfd4d-zx7fb 1/1 Running 0 37h
Copied!
Finished! Your Kubernetes alerts will now create alerts in iLert.

FAQ

Will alerts in iLert be resolved automatically?
Yes, as soon as an alert has been resolved in ilert-kube-agent, the associated alert in iLert will be resolved automatically.
Can I connect multiple Kuberenetes namespaces with multiple alert sources from iLert?
Yes, simply create multiple deployments per namespace in Kubernetes.
Last modified 18d ago