Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in Attaching pvc for Ingester #3110

Open
dakshrajgoyal opened this issue May 2, 2024 · 2 comments
Open

Issues in Attaching pvc for Ingester #3110

dakshrajgoyal opened this issue May 2, 2024 · 2 comments

Comments

@dakshrajgoyal
Copy link

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: |
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
{{- include "loki.ingesterSelectorLabels" . | nindent 6 }}
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
{{- include "loki.ingesterSelectorLabels" . | nindent 10 }}
topologyKey: kubernetes.io/hostname
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
{{- include "loki.ingesterSelectorLabels" . | nindent 12 }}
topologyKey: failure-domain.beta.kubernetes.io/zone
nodeSelector: {}
tolerations: []
persistence:
enabled: true
inMemory: false
claims:
- name: data
size: 40Gi
storageClass: gp3
enableStatefulSetAutoDeletePVC: false
persistentVolumeClaimRetentionPolicy:
retain: "Delete"
minReadySeconds: 5
whenDeleted: Retain
whenScaled: Retain

@dakshrajgoyal
Copy link
Author

Hello,

Can someone please help on the above issue ?

@HujinoKun
Copy link

Hi,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants