30 lines
649 B
Django/Jinja
30 lines
649 B
Django/Jinja
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: {{ pod_name }}
|
|
labels:
|
|
{% for key, value in labels.items() %}
|
|
{{ key }}: {{ value }}
|
|
{% endfor %}
|
|
spec:
|
|
terminationGracePeriodSeconds: 5
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: {{ pod_name }}
|
|
image: {{ pod_image }}
|
|
imagePullPolicy: IfNotPresent
|
|
{% if input %}
|
|
args:
|
|
{% for item in input %}
|
|
- {{ item }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
restartPolicy: Never
|
|
resources:
|
|
limits:
|
|
cpu: {{ limit_cpu }}m
|
|
memory: {{ limit_memory }}
|
|
requests:
|
|
cpu: {{ req_cpu }}m
|
|
memory: {{ req_memory }}
|