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

[dev-v2.9] rancher-logging rke2 patch kubelet logs volume mount to follow rotates #3451

Conversation

alexandreLamarre
Copy link
Contributor

@alexandreLamarre alexandreLamarre commented Feb 9, 2024

Issue:

https://jira.suse.com/browse/SURE-7276

Problem

fluentbit cannot follow log rotates for the hostpath /var/lib/rancher/rke2/agent/logs/kubelet.log on rke2

Solution

Mount the hostpath directory /var/lib/rancher/rke2/agent/logs to prevent the volume bind from locking the file kubelet.log so that fluentbit can follow file changes

Testing

Engineering Testing

Manual Testing

logging on rke2 collects rke kubelet logs

Automated Testing

N/A

QA Testing Considerations

rancher-logging on rke2

Regressions Considerations

N/A

Backporting considerations

v2.7
v2.8

Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Copy link

github-actions bot commented Feb 9, 2024

Validation steps

  • Ensure all container images have repository and tag on the same level to ensure that all container images are included in rancher-images.txt which are used by airgap customers.
  Ex:- 
    longhorn-controller:
      repository: rancher/hardened-sriov-cni
      tag: v2.6.3-build20230913
  
  • Add a 👍 (thumbs up) reaction to this comment once done. CI won't pass without this reaction to the github-action bot's latest validation comment.
  • Approve the PR to run the CI check.

@alexandreLamarre alexandreLamarre marked this pull request as ready for review February 9, 2024 17:12
@alexandreLamarre alexandreLamarre changed the title [dev-v2.9] [WIP] rancher-logging rke2 patch kubelet logs volume mount to follow rotates [dev-v2.9] rancher-logging rke2 patch kubelet logs volume mount to follow rotates Feb 9, 2024
@alexandreLamarre alexandreLamarre merged commit 0c0cc99 into rancher:dev-v2.9 Feb 9, 2024
6 checks passed
@MKlimuszka MKlimuszka added this to the v2.9-Next1 milestone Mar 19, 2024
krunalhinguu pushed a commit to krunalhinguu/charts that referenced this pull request May 14, 2024
…llow rotates (rancher#3451)

Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
krunalhinguu pushed a commit to krunalhinguu/charts that referenced this pull request Jul 15, 2024
…llow rotates (rancher#3451)

Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants