-
Notifications
You must be signed in to change notification settings - Fork 216
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
GET warning events for alert have some delay #168
Comments
Hello! Nice to hear you like it! I don't know the exact reason for your case, but I can guess what causes the delay:
So to speed up things, first do these:
Feel free to show your hook, I can help you rewrite it. One more problem: Shell-operator saves objects in memory. In the case of a huge amount of added |
Thanks for your advice. This is my config now ,it works well with no delay, but i found the same message will send twice after 1 hours. aways interval 1 hours. and I check operator pod has no restart. like this log: (same message send twice) {"binding":"kubernetes","hook":"shell-hook-events.sh","level":"info","msg":"Hook executed successfully","operator.component":"taskRunner","queue":"main","task":"HookRun","time":"2020-04-19T12:30:29+08:00"} {"binding":"kubernetes","hook":"shell-hook-events.sh","level":"info","msg":""Warning"","output":"stdout","queue":"main","task":"HookRun","time":"2020-04-19T13:31:30+08:00"} #!/usr/bin/env bash source /cus/config/config EOF |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
hi i am useing shell-operator for my k8s cluster ,It's a cool tool.
I use this config to get k8s events
{ "onKubernetesEvent":[
{"kind":"Event",
"event":["add"]
}
]
}
LEVEL=
kubectl -n $ns get event/$eventName -o json | jq .type
when $LEVEL is warning ,will send alerts。but i found the alerts always have some delay.
What's the reason for this. Is there a problem with the my configuration.
Thanks
The text was updated successfully, but these errors were encountered: