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

kube-state-metrics installation for lens metrics is missing PSP #50

Closed
ambis opened this issue Oct 11, 2019 · 4 comments
Closed

kube-state-metrics installation for lens metrics is missing PSP #50

ambis opened this issue Oct 11, 2019 · 4 comments
Labels
area/metrics All the things related to metrics enhancement New feature or request

Comments

@ambis
Copy link

ambis commented Oct 11, 2019

Describe the bug
Installing kube-state-metrics via Cluster -> Settings -> Features -> Metrics -> Install fails because it does not install Pod Security Policies. I mean, the install in the UI itself succeeds, but the end result of having kube-state-metrics running fails because of PSP.

To Reproduce
Steps to reproduce the behavior:

  1. Have cluster that enforces PSP
  2. Install metrics
  3. Observe how pods are not running because of PSP violations (missing)

Expected behavior
Pods start OK with PSP.

Environment (please complete the following information):

  • Lens Version: 2.1.3
  • OS: Mojave
  • Download from website
@kaceo
Copy link

kaceo commented Jun 2, 2020

Why isn't the Lens Metrics installation done through Helm or provide any way to change the values? It is very confusing. I want to set up the Metrics without persistent volumes, and there is no way to change the variable persistance.enabled to false from the Settings menu?

@nevalla
Copy link
Contributor

nevalla commented Jun 2, 2020

You can install Prometheus through Helm and use that with Lens. Lens should auto-detect the prometheus installation and use it out-of-the box.

@alanbchristie
Copy link

Can we adjust the config (https://github.com/lensapp/lens/tree/master/src/features/metrics) on an installation?

I see where's it's located on the installation, i.e. my local copy of the config, but can I extend it with more files - i.e. does the installer simply list the files and apply each that it finds? i.e. I could juts add 07-me.yml to apply it?

If not I could just edit whats there to add the PSPs I need.

@jakolehm jakolehm added area/metrics All the things related to metrics enhancement New feature or request labels Nov 16, 2020
@Nokel81
Copy link
Collaborator

Nokel81 commented Oct 6, 2021

@alanbchristie Yes if you add in a file to that folder (which has now moved) it will be installed as well. Otherwise I would recommend installing via helm.

@Nokel81 Nokel81 closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics All the things related to metrics enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants