# infrastructure/longhorn/adopt/longhorn-helm-adopt-job.yaml apiVersion: batch/v1 kind: Job metadata: name: longhorn-helm-adopt-2 namespace: longhorn-system spec: backoffLimit: 1 template: spec: serviceAccountName: longhorn-helm-adopt restartPolicy: Never affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/worker operator: Exists preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 preference: matchExpressions: - key: kubernetes.io/arch operator: In values: ["arm64"] containers: - name: adopt image: bitnami/kubectl@sha256:554ab88b1858e8424c55de37ad417b16f2a0e65d1607aa0f3fe3ce9b9f10b131 command: ["/usr/bin/env", "bash"] args: ["/scripts/longhorn_helm_adopt.sh"] volumeMounts: - name: script mountPath: /scripts readOnly: true volumes: - name: script configMap: name: longhorn-helm-adopt-script defaultMode: 0555