Currently, RestartSource retries kubernetes api watch internally. This make is hard to find the watch restarting with unrecoverable failure like below in large cluster.
akka.stream.scaladsl.Framing$FramingException: JSON element exceeded maximumObjectLength (x00000 bytes)!
This PR changes ThrottleController to commit suicide and make this kubernetes liveness probe find this pod is not alive appropriately.
Currently,
RestartSource
retries kubernetes api watch internally. This make is hard to find the watch restarting with unrecoverable failure like below in large cluster.This PR changes ThrottleController to commit suicide and make this kubernetes liveness probe find this pod is not alive appropriately.