rawfile-localpv/templates/task.yaml
Hanieh Marvi ba7f4c1b7f Remove requests from tasks
So pods do not stay in pending state because of lack of resources.
2021-02-13 02:03:04 +03:30

36 lines
710 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
image: {image_repository}:{image_tag}
imagePullPolicy: IfNotPresent
volumeMounts:
- name: data-dir
mountPath: /data
resources:
requests:
cpu: 0m
memory: 0Mi
limit:
cpu: 100m
memory: 100Mi
command:
- /bin/sh
- -c
args:
- {cmd}