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

Can't install Loki with Helm #3021

Closed
mrgoonie opened this issue Dec 2, 2020 · 1 comment
Closed

Can't install Loki with Helm #3021

mrgoonie opened this issue Dec 2, 2020 · 1 comment

Comments

@mrgoonie
Copy link

mrgoonie commented Dec 2, 2020

Hey there, I can't install Loki with Helm, facing this error:

helm install -f values.yaml loki --namespace=loki loki/loki
Error: rendered manifests contain a resource that already exists. Unable to continue with install: PodSecurityPolicy "loki" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "loki"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "loki"

Have anyone know how to fix it?
Thanks,

@mrgoonie
Copy link
Author

mrgoonie commented Dec 2, 2020

This works: 😅

helm install loki-stack loki/loki-stack \
  --create-namespace \
  --namespace loki-stack \
  --set promtail.enabled=true,loki.persistence.enabled=true,loki.persistence.size=10Gi 

@mrgoonie mrgoonie closed this as completed Dec 2, 2020
cyriltovena pushed a commit to cyriltovena/loki that referenced this issue Jun 11, 2021
* Use custom bucket size for indexEntriesPerChunk

Currently, the variable registers a new Histogram using
default bucket sizes that have floating size as well{0.01, 0.5, 1}.
Since this variable measures quantities which is always a whole number,
the default buckets go unused and are not necessarily required.
This PR uses custom bucket for variable indexEntriesPerChunk with
sizes {1,2,5}.

Signed-off-by: Jay Batra <[email protected]>

* Update CHANGELOG

Signed-off-by: Jay Batra <[email protected]>

Co-authored-by: Peter Štibraný <[email protected]>
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

No branches or pull requests

1 participant