Issues in Adding ExtraContainers in Grafana
dakshrajgoyal opened this issue · comments
Dakshraj Goyal commented
Hello Team,
We want to use extra container in grafana, but it is giving issues while changing yaml files.
Issue: Error: UPGRADE FAILED: cannot patch "loki-grafana" with kind Deployment: invalid patch format of retainKeys
Issue 2: Error: failed to parse grafana-values.yaml: error converting YAML to JSON: yaml: line 336: did not find expected key
We are using the official helm charts values.yaml only for the deployment.
https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
Also we need to add this below container to this yaml file:
- command:
- /bin/sh
- -c
- /usr/bin/sqlite3 /var/lib/grafana/grafana.db '.show'; sleep 999999999
image: keinos/sqlite3
imagePullPolicy: IfNotPresent
name: sqlite-bin
volumeMounts:
- mountPath: /var/lib/grafana
name: storage