arttor/helmify

View on GitHub
examples/app/templates/batch-job.yaml

Summary

Maintainability
Test Coverage
apiVersion: batch/v1
kind: Job
metadata:
  name: {{ include "app.fullname" . }}-batch-job
  labels:
  {{- include "app.labels" . | nindent 4 }}
spec:
  backoffLimit: {{ .Values.batchJob.backoffLimit }}
  template:
    spec:
      containers:
      - command:
        - perl
        - -Mbignum=bpi
        - -wle
        - print bpi(2000)
        env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        image: {{ .Values.batchJob.pi.image.repository }}:{{ .Values.batchJob.pi.image.tag
          | default .Chart.AppVersion }}
        name: pi
        resources: {}
      restartPolicy: Never