From 3deae32e75326fcbe2130c99acffe04254ff2289 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Thu, 13 Feb 2025 13:46:59 -0500 Subject: [PATCH] Updated pv-cheque-deployment.yaml with new image tag V1 --- paisavara/cheque/pv-cheque-deployment.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 paisavara/cheque/pv-cheque-deployment.yaml diff --git a/paisavara/cheque/pv-cheque-deployment.yaml b/paisavara/cheque/pv-cheque-deployment.yaml new file mode 100644 index 00000000..bf2a81f4 --- /dev/null +++ b/paisavara/cheque/pv-cheque-deployment.yaml @@ -0,0 +1,50 @@ + +# 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-cheque + name: pv-cheque +spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: pv-cheque + 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-cheque + 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-cheque:V1 + name: pv-cheque + ports: + - containerPort: 8000 + protocol: TCP + volumeMounts: + - mountPath: /pv-cheque + name: pv-cheque-cm0 + restartPolicy: Always + volumes: + - configMap: + name: pv-cheque-cm0 + name: pv-cheque-cm0