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

Move Grafana setting files to Persistent Storage #84

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

yanjunz97
Copy link
Contributor

Previously the Grafana settings will be lost if pod is restarted.
This PR modifies the Grafana volumes to keep the settings persistent.
The changes are as follows.

  • Removes /data from PersistentVolume as it is not used
  • Mounts /var/lib/grafana to PersistentVolume to make the settings
    persistent
  • Moves dashboards from /var/lib/grafana/dashboards to
    /opt/grafana/dashboards as K8s does not allow loading directory
    to PV through configmap

Signed-off-by: Yanjun Zhou zhouya@vmware.com

@yanjunz97 yanjunz97 requested a review from heanlan July 28, 2022 21:05
@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@4b15e06). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #84   +/-   ##
=======================================
  Coverage        ?   38.17%           
=======================================
  Files           ?       13           
  Lines           ?     2174           
  Branches        ?        0           
=======================================
  Hits            ?      830           
  Misses          ?     1322           
  Partials        ?       22           
Flag Coverage Δ
unit-tests 24.72% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b15e06...3f23c73. Read the comment docs.

Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Yanjun. Some comments on the documentation.

docs/network-flow-visibility.md Outdated Show resolved Hide resolved
docs/network-flow-visibility.md Outdated Show resolved Hide resolved
docs/network-flow-visibility.md Outdated Show resolved Hide resolved
docs/network-flow-visibility.md Outdated Show resolved Hide resolved
docs/network-flow-visibility.md Outdated Show resolved Hide resolved
docs/network-flow-visibility.md Outdated Show resolved Hide resolved
@salv-orlando salv-orlando added this to the 0.2 milestone Aug 4, 2022
Copy link
Contributor

@dreamtalen dreamtalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

Deployment restart. Other changes in settings like passwords and preferences will
also be kept.

In Theia 0.1, the dashboards will be lost after restarting the Grafana Deployment.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In Theia 0.1, the dashboards will be lost after restarting the Grafana Deployment.
In Theia 0.1, the changes to dashboards and settings will be lost after restarting the Grafana Deployment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks!

docs/network-flow-visibility.md Outdated Show resolved Hide resolved
Copy link
Contributor

@salv-orlando salv-orlando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

docs/network-flow-visibility.md Show resolved Hide resolved
@yanjunz97 yanjunz97 force-pushed the grafana-pv-settings branch 2 times, most recently from 857aec0 to 634f01b Compare August 9, 2022 01:55
@yanjunz97
Copy link
Contributor Author

/theia-test-e2e

Signed-off-by: Yanjun Zhou <zhouya@vmware.com>
@yanjunz97 yanjunz97 merged commit 964f89c into antrea-io:main Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants