add the configmap with the script in it and the job creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user