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

49 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: C:\Program Files (x86)\kompose\kompose.exe convert -f docker-compose.yaml
kompose.service.expose: "true"
kompose.service.nodeport: "30050"
kompose.service.type: NodePort
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: pv-gateway
name: pv-gateway
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: pv-gateway
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: C:\Program Files (x86)\kompose\kompose.exe convert -f docker-compose.yaml
kompose.service.expose: "true"
kompose.service.nodeport: "30050"
kompose.service.type: NodePort
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: pv-gateway
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/paisavara-gateway:V29
name: pv-gateway
ports:
- containerPort: 8000
protocol: TCP
volumeMounts:
- mountPath: /pv-gateway
name: pv-gateway-cm0
restartPolicy: Always
volumes:
- configMap:
name: pv-gateway-cm0
name: pv-gateway-cm0