NOTE: IF YOU WISH TO REPORT A NEW BUG, PLEASE POST A NEW QUESTION AND TAG AS "BUG REPORT". THANK YOU.
[Issue] Grafana Yaml is broken (fixed) and the docker image has permissions issues
Nikouy
MemberPosts:22Contributor II
Hello, I have found that the Grafana template provided inhttps://docs.www.turtlecreekpls.com/latest/deployment/templates/prod/multiple.htmlis corrupt, due to some indents in the text. Docker/Kubernetes fail to convert it to json. I'm attaching the yaml file amended.
Also, I'd like to report that there are permissions issue with the image provided by Rapidminer, and therefore the pod/docker won't start.
Normal Created 17s (x3 over 36s) kubelet, ip-1xxxxxxxxx.eu-west-1.compute.internal Created container rm-grafana-svc
Normal Started 17s (x3 over 36s) kubelet, ip-xxxxxxx2.eu-west-1.compute.internal Started container rm-grafana-svc
Warning BackOff 5s (x4 over 34s) kubelet, ip-xxxxxxxxxx.eu-west-1.compute.internal Back-off restarting failed containerec2-user:~/environment $ kubectl logs rm-grafana-svc-78ccdf5bd5-mrrrw rm-grafana-svc
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migration-from-a-previous-version-of-the-docker-container-to-5-1-or-later
mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied
ec2-user:~/environment $It looks like you would need to change the folders permissions and push a new image to the repo.
chown -R root:root /etc/grafana && \ chmod -R a+r /etc/grafana && \ chown -R grafana:grafana /var/lib/grafana && \ chown -R grafana:grafana /usr/share/grafanaIs rapidminer/rapidminer-grafana:9.6.0 a stock grafana image or you made any other changes?Regards,Nicolas
0
Comments
thanky you very much for your feedback, that was absolutely helpful and pointed out a bug in our docker image. The behaviour of the image was different at simple docker delpoyments and at K8S deployments because of the /var/lib/grafana content initialization. Now we fixed the image and released a 9.6.1 tag for it.
We ship a customized Grafana docker image, because we add the plugins to it that are required to connect to Rapidminer Server. Nothing else is changed, but some RapidMiner-specific plugins are added.
Additionally the K8S yaml template indentation is also fixed, thanks again for this comment.
Zoltán