diff --git a/infrastructure/longhorn/release.yaml b/infrastructure/longhorn/release.yaml index dd1e83c0bbb7d0eaa45c4947b53b550a76d90538..ce640d2df4f20de638e30bb918181526d8cbddbd 100644 --- a/infrastructure/longhorn/release.yaml +++ b/infrastructure/longhorn/release.yaml @@ -17,8 +17,28 @@ spec: persistence: defaultClassReplicaCount: 2 postRenderers: + # Instruct helm-controller to use built-in "kustomize" post renderer. - kustomize: + # Array of inline strategic merge patch definitions as YAML object. + # Note, this is a YAML object and not a string, to avoid syntax + # indention errors. patchesStrategicMerge: + - kind: Deployment + apiVersion: apps/v1 + metadata: + name: longhorn-driver-deployer + spec: + template: + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: plan.upgrade.cattle.io/longhorn-setup + operator: Exists + - key: plan.upgrade.cattle.io/longhorn-lvm + operator: Exists - kind: DaemonSet apiVersion: apps/v1 metadata: