Skip to content

Commit

Permalink
fix: set prometheus authentication variable
Browse files Browse the repository at this point in the history
This variable allows public access without authentication for prometheus metrics.

Part of canonical/bundle-kubeflow#564
  • Loading branch information
DnPlas committed Feb 4, 2024
1 parent dfbde73 commit 10b51c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def main(self, event):
# than an environment variable, but we cannot use that using podspec.
# (see https://stackoverflow.com/questions/37317003/restart-pods-when-configmap-updates-in-kubernetes/51421527#51421527) # noqa E403
"configmap-hash": configmap_hash,
# To allow public access without authentication for prometheus metrics set environment as follows.
"MINIO_PROMETHEUS_AUTH_TYPE": "public"
},
"volumeConfig": [
{
Expand Down

0 comments on commit 10b51c5

Please sign in to comment.