Explorar el Código

ajuste en el readme para despliegue kubernetes

Jorge Baquero hace 3 días
padre
commit
66b192b097
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      README.md

+ 16 - 0
README.md Ver fichero

@@ -61,3 +61,19 @@ kubectl apply -f 03-ingress.yaml
61 61
 kubectl apply -f 04-ingress.yaml
62 62
 kubectl delete secret aslanvespot-tls
63 63
 
64
+
65
+RUN SQL 
66
+PGPASSWORD='7qUNs4q5c3U7KTrehv0V'
67
+
68
+kubectl exec -it postgres-5987765959-c7b56 --  psql -h localhost -U factorytrace --password -p 5432 factorytracedb
69
+
70
+\copy (elect concat('UPDATE products set turn_type_id = ', t.turn_type_id, ' where product_id = ', product_id, ';') from products p  inner join turns t on p.turn_id = t.turn_id  inner join sale_orders so  on p.sale_order_id = so.sale_order_id  where barcode like '%ACO%' order by fabrication_date desc) TO '/root/temp2.sql' WITH CSV HEADER
71
+
72
+\i /root/temp2.sql
73
+
74
+cd /root/factorytrace/deployment
75
+kubectl get pods
76
+kubectl delete -f 01-restpod.yaml
77
+kubectl delete -f 02-frontpod.yaml
78
+kubectl apply -f 01-restpod.yaml
79
+kubectl apply -f 02-frontpod.yaml