rawfile-localpv/templates/task.yaml
2020-04-28 22:54:38 +04:30

38 lines
803 B
YAML

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
# FIXME: use immutable tag
image: registry.hamdocker.ir/hamravesh/rawfile-csi:master
# FIXME: change to IfNotPresent
imagePullPolicy: Always
volumeMounts:
- name: data-dir
mountPath: /data
resources:
requests: &rsc
cpu: 10m
memory: 100Mi
limit:
cpu: 100m
memory: 100Mi
command:
- /bin/sh
- -c
args:
- {cmd}