Open stephen-lazarionok opened 3 years ago
Run in the same issue, try a --dry-run and check the volumes:
[...]
volumes:
- name: config
secret:
secretName: loki
- name: storage
emptyDir: {}
oddly enough if you overwrite it on the cli it works for me, try this:
helm upgrade --install loki-stack grafana/loki-stack -f kube-prom-stack-values.yaml \
--set loki.persistence.enabled=true \
--set loki.persistence.size=30Gi
I have the same problem with grafana installation so not a loki-stack issue only.
E: In helm repo someone proposes following fix: https://github.com/helm/charts/issues/20389#issuecomment-583854511
Can't upgrade the helm release. Getting the following error:
helm upgrade --install loki-stack grafana/loki-stack -f kube-prom-stack-values.yaml
Error: UPGRADE FAILED: cannot patch "loki-stack" with kind StatefulSet: StatefulSet.apps "loki-stack" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
When trying to force it, then having the following issue:
helm upgrade --install loki-stack grafana/loki-stack -f kube-prom-stack-values.yaml --force
Error: UPGRADE FAILED: failed to replace object: PersistentVolumeClaim "loki-stack-grafana" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims && failed to replace object: PersistentVolumeClaim "loki-stack-prometheus-alertmanager" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims && failed to replace object: PersistentVolumeClaim "loki-stack-prometheus-server" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims && failed to replace object: Service "loki-stack-grafana" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "loki-stack" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "loki-stack-kube-state-metrics" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "loki-stack-prometheus-alertmanager" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "loki-stack-prometheus-pushgateway" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: Service "loki-stack-prometheus-server" is invalid: spec.clusterIP: Invalid value: "": field is immutable && failed to replace object: StatefulSet.apps "loki-stack" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden