Skip to content

Grafana hostpath persistence not working  #5166

Open
@201508876PMH

Description

@201508876PMH

Describe the bug a clear and concise description of what the bug is.

Hi guys, even with my pods running i cant seem to persist grafana via hostpath. This is my current grafana config:

   grafana:
      deploymentStrategy:
        type: Recreate
      enabled: true
      fullnameOverride: grafana
      forceDeployDatasources: false
      forceDeployDashboards: false
      defaultDashboardsEnabled: true
      defaultDashboardsTimezone: utc+1
      serviceMonitor:
        enabled: true
      admin:
        existingSecret: grafana-admin-credentials
        userKey: admin-user
        passwordKey: admin-password
      persistence:
        disableMountSubPath: true
        enabled: true
        accessModes:
          - ReadWriteOnce
        size: 10Gi
        volumeMounts:
          - mountPath: /var/lib/grafana
            name: grafana-storage
        volumes:
          - name: grafana-storage
            hostPath:
              path: /mnt/volume-hel1-1/grafana
              type: DirectoryOrCreate

What's your helm version?

v3.16.4

What's your kubectl version?

v1.32.0

Which chart?

kube-prometheus-stack

What's the chart version?

67.4.0

What happened?

hostpath isnt working. No folder is created

What you expected to happen?

Data is saved

How to reproduce it?

use my code

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

?

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions