一些更新
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: download-job
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: download
|
||||
image: cr.wetofu.me/debian:sid-slim
|
||||
command:
|
||||
- /bin/bash
|
||||
- /loader/download.sh
|
||||
volumeMounts:
|
||||
- name: download-volume
|
||||
mountPath: /data
|
||||
- name: download-sh
|
||||
mountPath: /loader/download.sh
|
||||
subPath: download.sh
|
||||
resources:
|
||||
limits:
|
||||
cpu: '1'
|
||||
memory: '1Gi'
|
||||
volumes:
|
||||
- name: download-volume
|
||||
hostPath:
|
||||
path: /data/xiarilidechuntian/
|
||||
- name: download-sh
|
||||
configMap:
|
||||
name: download-sh
|
||||
items:
|
||||
- key: download.sh
|
||||
path: download.sh
|
||||
restartPolicy: OnFailure
|
||||
Reference in New Issue
Block a user