apiVersion: batch/v1
kind: Job
metadata:
  name: factorial5
spec:
  template:
    metadata:
      name: factorial5
    spec:
      containers:
      - name: factorial5
        image: python:3.5
        command: ["python",
        "-c",
        "import math; print(math.factorial(5))"]
      restartPolicy: Never