apiVersion: batch/v1
kind: Job
metadata:
  name: k8s-demo-job
spec:
  template:
    spec:
      containers:
      - name: python-38
        image: python:3.8-alpine
        command: ["python",  "-c", "import socket; print(socket.gethostbyname(socket.gethostname()))"]
      restartPolicy: Never
  backoffLimit: 4
