-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[kots]: configure a log collector for ephemeral containers #10679
Conversation
50053f8
to
1adfe89
Compare
1adfe89
to
28a4877
Compare
started the job as gitpod-build-sje-kots-log-collector.4 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.5 because the annotations in the pull request description changed |
28a4877
to
403625d
Compare
started the job as gitpod-build-sje-kots-log-collector.7 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.8 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.9 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.10 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.11 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.12 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.13 because the annotations in the pull request description changed |
started the job as gitpod-build-sje-kots-log-collector.14 because the annotations in the pull request description changed |
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-log-collector.15 |
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-log-collector.17 |
/werft run no-preview 👍 started the job as gitpod-build-sje-kots-log-collector.18 |
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-log-collector.19 |
This will fail because of a change in this PR for Werft - suggest either finding the command in Notion for making it use the |
did the trick |
I've ran into some errors while verifying this, it looks like the
I manually created
I see that we have mkdir enabled for these log outputs, so I'm pretty puzzled as to why this is failing. I'm running this on a cluster based on the gitpod-gke-guide, where are you running it? |
In my 3-node-setup, I see the error @adrienthebo mentioned as well but only on the 2 worker nodes. The main node shows me a few lines of the installer job. And this makes totally sense:
After another re-install (config change), I see the whole installer logs. After starting a workspace, I see the workspace logs. For me, this PR looks good. FYI: Tested this on an air-gap setup just to make sure it works there as well. It does. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in an air-gap setup and it works pretty well. Adding hold to give @adrienthebo the chance to react to the issue above. Feel free to remove the hold label if everything looks good.
/hold
My feeling is that this may not work in every scenario but, so long as it doesn't cause catastrophic failures for users, we can iterate on those problems - my understanding of support bundles is that they can fail and just report the error, rather than causing any problems. @adrienthebo I wonder if it's a permissions issue when creating the underlying directory. I tried this on an Azure AKS instance and that seemed to work ok, so it may be a GCP-specific problem |
Thanks @corneliusludmann @mrsimonemms, running an image build/workspace got things working for me!
|
/hold (due to build error) |
/werft run no-preview=true publish-to-kots=false 👍 started the job as gitpod-build-sje-kots-log-collector.21 |
/werft run no-preview 👍 started the job as gitpod-build-sje-kots-log-collector.22 |
/unhold |
Description
Add a Fluent Bit Helm chart to the installation and configure it to listen for logs created. This then stores the logs on the node under
/gitpod/log-collector
(use of second directory in case we need to any other stuff in future). We can then use the KOTS log selector to pull these into the support bundle (included).As the only logs copied are the Installer, image builders and workspaces, this shouldn't ever get so big as to need removal/rotation - in any case, Fluent Bit doesn't support this so would imagine it's an edge-case anyway.
When a user generates a support bundle, this then pulls these files in off every node (this is a single node instance, but I've tried in on multi-node instances and they're put in a separate folder under
/log-collector/gitpod/fluent-bit-xxxxx
)This is the support bundle page in the KOS dashboard
Related Issue(s)
Fixes #10399
How to test
Deploy via KOTS and raise a support bundle.
Release Notes
Documentation