apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    kompose.cmd: kompose convert -f ../docker-compose.yaml
    kompose.service.expose: "true"
    kompose.service.nodeport: "30004"
    kompose.service.type: NodePort
    kompose.version: 1.34.0 (cbf2835db)
  labels:
    io.kompose.service: dl-utils
  name: dl-utils
spec:
  replicas: 1
  selector:
    matchLabels:
      io.kompose.service: dl-utils
  strategy:
    type: Recreate
  template:
    metadata:
      annotations:
        kompose.cmd: kompose convert -f ../docker-compose.yaml
        kompose.service.expose: "true"
        kompose.service.nodeport: "30004"
        kompose.service.type: NodePort
        kompose.version: 1.34.0 (cbf2835db)
      labels:
        io.kompose.service: dl-utils
    spec:
      containers:
        - args:
            - bash
            - -c
            - python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
          image: git.humbingo.org/docker/dailyledger-utils:V1
          name: dl-utils
          ports:
            - containerPort: 8000
              protocol: TCP
          volumeMounts:
            - mountPath: /dl-utils
              name: dl-utils-cm0
      restartPolicy: Always
      volumes:
        - configMap:
            name: dl-utils-cm0
          name: dl-utils-cm0