apiVersion: apps/v1 kind: Deployment metadata: annotations: kompose.cmd: kompose convert -f ../docker-compose.yaml kompose.service.expose: "true" kompose.service.nodeport: "30002" kompose.service.type: NodePort kompose.version: 1.34.0 (cbf2835db) labels: io.kompose.service: dl-invoice name: dl-invoice spec: replicas: 1 selector: matchLabels: io.kompose.service: dl-invoice strategy: type: Recreate template: metadata: annotations: kompose.cmd: kompose convert -f ../docker-compose.yaml kompose.service.expose: "true" kompose.service.nodeport: "30002" kompose.service.type: NodePort kompose.version: 1.34.0 (cbf2835db) labels: io.kompose.service: dl-invoice 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-invoiceservice:v20 name: dl-invoice ports: - containerPort: 8000 protocol: TCP volumeMounts: - mountPath: /dl-invoice name: dl-invoice-cm0 restartPolicy: Always volumes: - configMap: name: dl-invoice-cm0 name: dl-invoice-cm0