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

CrashloopBackoff at Beat startup when trying to connect to Kibana #3243

Closed
sebgl opened this issue Jun 15, 2020 · 2 comments
Closed

CrashloopBackoff at Beat startup when trying to connect to Kibana #3243

sebgl opened this issue Jun 15, 2020 · 2 comments
Labels
>bug Something isn't working wontfix This will not be worked on

Comments

@sebgl
Copy link
Contributor

sebgl commented Jun 15, 2020

Deploying [file|metric]beat with Kibana already responding leads to 3 restarts and a CrashloopBackOff of the Beats Pods.

That's because Beats cannot connect to Kibana yet. See this issue.

It's not too bad since the Pods finally come up about a minute later.
The experience when Kibana is created simultaneously is a bit worse (about one extra minute of startup time).
Overall I think it's confusing for the user and not as smooth as I would expect.

Some options:

  1. Do nothing and consider it will be eventually fixed in Beats

  2. Try to workaround this by waiting until Kibana is available and credentials are propagated before starting Beats. Up to a certain timeout in case something else is wrong, after which we should still start Beats and let the error surface.
    2a. In the operator, don't create the DaemonSet/Deployment until that's the case
    2b. Setup an init container that waits until Kibana is available before Beats starts

@sebgl sebgl added the >bug Something isn't working label Jun 15, 2020
@pebrc
Copy link
Collaborator

pebrc commented Jun 15, 2020

I agree that the experience is not great. But my thinking is that any workaround introduces a non-trivial amount of complexity:

2a. In the operator, don't create the DaemonSet/Deployment until that's the case

afaik we do not make HTTP calls from the Beats controller to Kibana/Elasticsearch yet and I am bit wary of introducing them given the potential negative impact on the operator itself only to fix what appears to be a somewhat cosmetic issue at the moment.

2b. Setup an init container that waits until Kibana is available before Beats starts

In a way this approach is preferable because we have everything at hand what we need. Certificates and credentials are available as volumes in the pod. So if we really want to do something, this would be probably the marginally better approach.

@david-kow david-kow removed the :beats label Jul 28, 2020
@pebrc
Copy link
Collaborator

pebrc commented Mar 5, 2023

Won't fix.

@pebrc pebrc closed this as completed Mar 5, 2023
@pebrc pebrc added the wontfix This will not be worked on label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants