# infrastructure/longhorn/core/longhorn-settings-ensure-job.yaml apiVersion: batch/v1 kind: Job metadata: name: longhorn-settings-ensure-2 namespace: longhorn-system spec: backoffLimit: 0 ttlSecondsAfterFinished: 3600 template: spec: serviceAccountName: longhorn-service-account restartPolicy: Never volumes: - name: longhorn-settings-ensure-script configMap: name: longhorn-settings-ensure-script defaultMode: 0555 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/arch operator: In values: ["arm64"] - key: node-role.kubernetes.io/worker operator: Exists containers: - name: apply image: docker.io/alpine:3.20 command: ["/scripts/longhorn_settings_ensure.sh"] volumeMounts: - name: longhorn-settings-ensure-script mountPath: /scripts readOnly: true