mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 22:29:09 +01:00
First hop from 1.7.3 to 1.11.2 (docs/upgrade-k8s-1.33.md). 1.8 drops the backup-target settings in favour of a "default" BackupTarget resource, so the NFS target and poll interval move into defaultBackupStore. Until now they only lived in the cluster. Checked beforehand: no Faulted volumes, no backing images, all volumes on engine v1.7.3, system backup pre-upgrade-v1-7-3-20261022 and Velero backup pre-longhorn-1-8-202610221326 both complete.
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: helm-longhorn
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
project: default
|
|
sources:
|
|
- chart: longhorn
|
|
repoURL: https://charts.longhorn.io/
|
|
# One minor at a time up to 1.11.2, see docs/upgrade-k8s-1.33.md
|
|
targetRevision: 1.8.2
|
|
helm:
|
|
values: |
|
|
persistence:
|
|
defaultClassReplicaCount: 1
|
|
preUpgradeChecker:
|
|
jobEnabled: false
|
|
# Since 1.8 the backup target is a BackupTarget resource instead of
|
|
# the backup-target setting.
|
|
defaultBackupStore:
|
|
backupTarget: nfs://192.168.1.99:/volume1/microk8s-nfs
|
|
pollInterval: 300
|
|
defaultSettings:
|
|
# Move volumes to the new engine image after each Longhorn
|
|
# upgrade, one at a time. At 0 they stayed behind on 1.7.1/1.7.2.
|
|
concurrentAutomaticEngineUpgradePerNodeLimit: 1
|
|
parameters:
|
|
- name: csi.kubeletRootDir
|
|
value: "/var/snap/microk8s/common/var/lib/kubelet"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: longhorn-system |