rawfile-localpv/templates/task.yaml

38 lines
791 B
YAML
Raw Normal View History

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
# FIXME: use immutable tag
2020-05-29 14:07:55 +00:00
image: docker.io/hamravesh/rawfile-csi:master
2020-04-24 11:48:09 +00:00
# FIXME: change to IfNotPresent
imagePullPolicy: Always
volumeMounts:
- name: data-dir
mountPath: /data
resources:
requests: &rsc
2020-04-28 13:22:20 +00:00
cpu: 10m
memory: 100Mi
limit:
2020-04-24 11:48:09 +00:00
cpu: 100m
memory: 100Mi
command:
- /bin/sh
- -c
args:
- {cmd}