add the configmap with the script in it and the job creation

This commit is contained in:
2025-02-24 15:08:34 +00:00
parent 21de45e7ea
commit d789d505e3
2 changed files with 66 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
apiVersion: batch/v1
kind: Job
metadata:
name: prowlarr-bulk-add-indexers
namespace: servarr
spec:
template:
spec:
containers:
- name: prowlarr-bulk-add-indexers
image: alpine
imagePullPolicy: Always
volumeMounts:
- mountPath: /config
name: scripts
command:
- /bin/sh
- -c
- /config/prowlarr_add_bulk_indexer.sh
# command: ["chmod","+x","/config/prowlarr_add_bulk_indexer.sh",";","./config/prowlarr_add_bulk_indexer.sh"]
restartPolicy: Never
volumes:
- configMap:
defaultMode: 365
name: prowlarr-add-bulk-indexer
name: scripts
backoffLimit: 4