Open Jyoti492 opened 1 year ago
Hi, don't you have a problem with Duplicate value: "grafana-plugins"?
@Jyoti492 did you get this to work, and do you have an updated example?
@Jyoti492 we would also love to implement this sort of solution, got any updated working solution?
@omri-shilton actually got this to work.
grafana:
securityContext:
runAsNonRoot: false
runAsUser: 0
runAsGroup: 472
fsGroup: 2000
grafana.ini:
plugins:
allow_loading_unsigned_plugins: pluginName
extraInitContainers:
- name: plugin-init
image: quay.io/curl/curl:latest
command: [ "sh", "-c" ]
args:
- |
# Get pluginName zip
curl -L \
-H "Accept: application/octet-stream" \
-H "Authorization: Bearer xxx" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-o /tmp/pluginName.zip \
https://api.github.com/repos/org/pluginName/releases/assets/assetIdNumber --insecure
# Unzip pluginName where grafana read plugins
unzip /tmp/pluginName.zip -d /var/lib/grafana/plugins
volumeMounts:
- name: grafana-plugins
mountPath: /var/lib/grafana/plugins
extraContainerVolumes:
- name: grafana-plugins
emptyDir: { }
extraVolumeMounts:
- name: grafana-plugins
mountPath: /var/lib/grafana/plugins
If you have any chance to get the pluginName assetIdNumber in a more clean way, Id like to hear your take on that.
Hi Team, I am having issues loading the custom plugin at grafana path /var/lib/grafana/plugins I have used an initContainer to download the plugin from internal GitHub using PAT which works fine but can't see the plugin at Using the public helm chart here : https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L315 Any help please ?