compose-files/paisavara/invoice/pv-invoice-deployment.yaml

51 lines
1.4 KiB
YAML

# Updated section with the new image tag
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yaml
kompose.service.expose: "true"
kompose.service.nodeport: "30001"
kompose.service.type: NodePort
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: pv-invoice
name: pv-invoice
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: pv-invoice
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yaml
kompose.service.expose: "true"
kompose.service.nodeport: "30001"
kompose.service.type: NodePort
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: pv-invoice
spec:
containers:
- args:
- bash
- -c
- python manage.py makemigrations --merge && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
image: 147.79.66.211:3000/docker/paisavara-invoice:V8
name: pv-invoice
ports:
- containerPort: 8000
protocol: TCP
volumeMounts:
- mountPath: /pv-invoice
name: pv-invoice-cm0
restartPolicy: Always
volumes:
- configMap:
name: pv-invoice-cm0
name: pv-invoice-cm0