APP VERSION=2.4.2がリリースされたのでアップグレード。
helm -n monitoring upgrade loki grafana/loki-stack -f ./loki-stack-values.yaml
でアップグレードしたが、
Error: UPGRADE FAILED: cannot patch "loki-promtail" with kind DaemonSet: DaemonSet.apps "loki-promtail" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"loki", "app.kubernetes.io/name":"promtail"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
とエラーになったので、一旦アンインストールして再インストールしてみた。
helm uninstall loki -n monitoring
W0417 18:12:33.095868 60438 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
release "loki" uninstalled
helm install loki grafana/loki-stack -n monitoring -f loki-stack-values.yaml
W0417 18:13:42.157955 60546 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
W0417 18:13:47.899399 60546 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
NAME: loki
LAST DEPLOYED: Sun Apr 17 18:13:41 2022
NAMESPACE: monitoring
STATUS: deployed
REVISION: 1
NOTES:
The Loki stack has been deployed to your cluster. Loki can now be added as a datasource in Grafana.
See http://docs.grafana.org/features/datasources/loki/ for more detail.
deploy OK
helm ls -n monitoring --selector name=loki
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
loki monitoring 1 2022-04-17 18:13:41.19496 +0900 JST deployed loki-stack-2.6.4 v2.4.2