grafana / helm-charts

Apache License 2.0
1.67k stars 2.29k forks source link

Issues in Attaching pvc for Ingester #3110

Open dakshrajgoyal opened 7 months ago

dakshrajgoyal commented 7 months ago

Hello Team,

Getting below issues while upgrading and attaching pvc to statefulset component "ingester"

"Error: UPGRADE FAILED: cannot patch "loki-loki-distributed-ingester" with kind StatefulSet: StatefulSet.apps "loki-loki-distributed-ingester" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden && cannot patch "loki-loki-distributed-querier" with kind StatefulSet: StatefulSet.apps "loki-loki-distributed-querier" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden"

I have this in my yaml inside loki-values.yaml

ingester: kind: StatefulSet replicas: 1 ordinals: {{ $ingesterCount }} deploymentStrategy: type: RollingUpdate image: registry: null repository: null tag: null priorityClassName: null terminationGracePeriodSeconds: 300 topologySpreadConstraints: |

dakshrajgoyal commented 7 months ago

Hello,

Can someone please help on the above issue ?

HujinoKun commented 6 months ago

Hi,

Delete your ingester's sts by making a backup first and restart your helm deployment

leehosu commented 1 month ago

Maybe try this?

https://serverfault.com/a/997236/319811