-
hi i am useing shell-operator for my k8s cluster ,It's a cool tool. |
Beta Was this translation helpful? Give feedback.
Replies: 2 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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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:
v0
configuration is used. New configuration has these advantages:Event
objects are not ignored, a hook receives them on startup with Synchronization binding context.Event
object, no need to executekubectl
: