2020-04-24 11:48:09 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: {name}
|
|
|
|
namespace: {namespace}
|
|
|
|
spec:
|
|
|
|
restartPolicy: Never
|
|
|
|
terminationGracePeriodSeconds: 0
|
|
|
|
tolerations:
|
|
|
|
- operator: Exists
|
|
|
|
volumes:
|
|
|
|
- name: data-dir
|
|
|
|
hostPath:
|
|
|
|
path: /var/csi/rawfile
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
nodeSelector: {nodeSelector}
|
|
|
|
containers:
|
|
|
|
- name: task
|
2020-05-29 14:50:03 +00:00
|
|
|
image: {image_repository}:{image_tag}
|
|
|
|
imagePullPolicy: IfNotPresent
|
2020-04-24 11:48:09 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: data-dir
|
|
|
|
mountPath: /data
|
|
|
|
resources:
|
2021-01-30 14:27:57 +00:00
|
|
|
requests:
|
|
|
|
cpu: 0m
|
|
|
|
memory: 0Mi
|
2021-01-30 14:29:44 +00:00
|
|
|
limits:
|
2020-04-24 11:48:09 +00:00
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
|
|
|
args:
|
|
|
|
- {cmd}
|