-
What Grafana version and what operating system are you using?
11.3.0 version that is in kube-prometheus-stack helm chart , installed on eks cluster version 1.28 -
What are you trying to achieve?
i want to provision dashboards that are located in an aws s3 bucket -
How are you trying to achieve it?
im trying to mount a s3 backed volume to the grafana pod.
adding some values to review:
grafana:
persistence:
enabled: true
extraVolumeMounts:
- name: s3-dashboards
mountPath: /var/lib/grafana/dashboards/s3-pvc # Path where Grafana expects the dashboards
readOnly: true
extraVolumes:
- name: s3-dashboards
persistentVolumeClaim:
claimName: ${dashboards_pvc_claim_name}
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
type: file
disableDeletion: false
options:
path: /var/lib/grafana/dashboards
foldersFromFilesStructure: true
- name: 's3'
orgId: 2
type: file
disableDeletion: false
options:
path: /var/lib/grafana/dashboards/s3-pvc
foldersFromFilesStructure: true
- What happened?
getting an error on the pod starting:
`
> Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/kubelet/pods/1b95c703-b80b-4936-8d9a-205c39b34ab5/volumes/kubernetes.io~empty-dir/s3-dashboards" to rootfs at "/var/lib/grafana/dashboards/s3-pvc": mkdir /run/containerd/io.containerd.runtime.v2.task/k8s.io/grafana/rootfs/var/lib/grafana/dashboards/s3-pvc: read-only file system: unknown
`
i dont eant grafana to be able to write and change the provisioned dashboards inside the s3 bucket
maybe my logic to this operation is not right,
please let me know if you know a better way to achieve my goals