-
Notifications
You must be signed in to change notification settings - Fork 231
Conversation
Hi @yanchenko-igor , the chart is nice, but starting from Kubernetes v1.22 the deployment of ingresses fail.
I tried the obvious to rename those to "networking.k8s.io/v1", but that did not work.
Could you please take a look? |
@msumla Does everything work as expected with disabled ingress? |
@msumla Could you maybe provide the value file you are using to reproduce the issue? |
@yanchenko-igor to my understanding the ingresses were already disabled.
|
|
@msumla It looks like you are using the wrong chart. Here is the chart you need https://github.com/cybertec-postgresql/pgwatch2/tree/helmchart/helm-chart please use the value file in the same directory as an example. |
@yanchenko-igor using the new chart and value file.
|
This was using helm v3.4.1, but when using v3.9.0-rc.1 the result was much better.
|
Yes, that looks as expected, does it work as expected for you? |
I have not gotten that far yet.
BTW my end goal is actually adding a ConfigMap which includes LDAP integration configuration to Grafana and then mounting it as a volume to enable user management. |
you can get grafana password using this command:
Feel free to suggest your desired changes, I will make sure that you get what you want. |
My plan is to add ldap.toml to /etc/grafana/ dir and configure /etc/grafana/grafana.ini to use that configuration. What I've used so far follows.
templates/configmaps.yaml:
templates/configmaps.yaml:
|
I am actually having trouble getting the ldap.toml mounted using helm charts. Somehow the default toml is used in the Grafana pod and the configmap is not mounted. I do not understand where the default one comes from. |
@msumla Thank you, I will find a proper way to do it. |
@msumla I added ldap config to the value file, please test the changes. |
@yanchenko-igor good work. I only needed to add the ldap.toml content to the values.yaml and it worked. |
Yes, we can do that, any other requests? |
@msumla I included the dependencies in the chart, so you won't need to run |
@yanchenko-igor Yes, is this pgwatch2-pgadmin supposed to be up as well?
And also could you include pgwatch2-grafana and pgwatch2-webui HTTPS configuration, templates and value placeholders for secure UI access? |
@msumla could you show logs from
|
|
@msumla what storage are you using? can you check?
|
|
@msumla what does this command say:
|
Where are we going with this? |
It's about permissions on /var/lib/pgadmin/ which is the volume pvc/pgwatch2-pgadmin |
Any recommendations how to solve it? |
I will have a look into the provisioner you are using, when I have time. |
Okay, thanks. So with your setup this does not happen? |
no, it works for me, I am actually considering removing it if we don't find a solution, it's a 3 party software that is not required by pgwatch2. |
With the current chart version I get the following error:
I got the chart installed as Also: is the web-ui supposed to display anything when hit by a web browser? |
You need to update the values file: your postgresql section should look like this:
You might need to update other values that have pgwatch2 in them, the default value file is expected to be installed as
Yes it should show login page, and after logging in, it should show the UI to manage databases to monitor. |
@yanchenko-igor Hey, have you thought about adding a cert and key to enable using the Grafana LB over HTTPS? |
@msumla Using a certificate and a key that published on the internet wouldn't be secure, you have to generate your own certificate. |
@yanchenko-igor Let me rephrase: how about adding functionality to the Helm chart that allows adding a cert and key in the values.yaml file and maybe an option or conditional to enable/disable HTTPS? |
@msumla This functionality is already implemented in the grafana chart, just add the certificate the same way as it's done for webui. |
@yanchenko-igor is this expected? To me it seems something might be wrong with the helpers which should provide this value.
|
@yanchenko-igor it seems to me that the ingress template is looking for webui.ingress., but the helpers file is providing pgwatch2.ingress. |
@msumla Thank you for pointing out the mistake, I will fix it in the new PR |
@yanchenko-igor Hi, any news yet? |
Yes, the fix is already in the master branch. |
Grafana ingress TLS works. :) But about WebUI, was this also fixed? If I hard coded the namespace value then I got: |
I merged more fixes into the master branch. Now everything should work. |
@yanchenko-igor hey, I need to use the container images from a local repository, I have set up public -> private repository replication. The reason is that this K8s cluster is air gapped. Also only pgwatch2-daemon, pgwatch2-db-bootstrapper, pgwatch2 and grafana are present in values.yaml. Example:
|
@yanchenko-igor oh, and another question. I managed to get HTTPS running for Grafana fine, but for that I installed an NGINX ingresscontroller. I would like to know if it is mandatory to install the ingresscontroller .. is it namespace scoped or cluster scoped? and can I just get it running with a regular ingress service? I'm a newb in the ingress area. |
Seems like it works with i.e. |
@msumla Sorry, I somehow missed your comments. Is there any question left that I could help you with? |
@yanchenko-igor we are fine now. :) |
Helm chart implemented, for now it only supports influxdb backend