From ca3991221e7f8a040f03c24b22e5ca82d6166811 Mon Sep 17 00:00:00 2001 From: abidknashtech Date: Thu, 30 Nov 2023 19:37:42 +0530 Subject: [PATCH] GCP deployment --- deployment/gcpresources/terraform/main.tf | 2 +- inventory-service/gcp-deploy-service.yaml | 4 ++-- order-service/gcp-deploy-services.yaml | 4 ++-- payment-service/gcp-deploy-service.yaml | 4 ++-- projects-changes-deploy.txt | 6 +++++- shipment-service/gcp-deploy-service.yaml | 4 ++-- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/deployment/gcpresources/terraform/main.tf b/deployment/gcpresources/terraform/main.tf index e431a44b..994c2a31 100644 --- a/deployment/gcpresources/terraform/main.tf +++ b/deployment/gcpresources/terraform/main.tf @@ -229,7 +229,7 @@ resource "google_storage_bucket" "function_bucket" { data "archive_file" "source" { type = "zip" output_path = "/tmp/function-source.zip" - source_dir = "[ CLOUD-FUNCTION ABSOLUTE PATH ]" + source_dir = "/home/knoldus/IdeaProjects/car-demo/cloud-function/gcpcarfunction" // ex. "/home/knoldus/IdeaProjects/car-demo/cloud-function/gcpcarfunction" } diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index 1e9ce26f..8da288cc 100644 --- a/inventory-service/gcp-deploy-service.yaml +++ b/inventory-service/gcp-deploy-service.yaml @@ -116,8 +116,8 @@ metadata: name: inventory-configmap data: # Configuration values can be set as key-value properties - MYSQL_HOST: 35.237.157.220 - AXON_HOST: 34.74.53.130:8124 + MYSQL_HOST: 35.196.247.48 + AXON_HOST: 34.23.97.151:8124 SERVICE_NAME: InventoryService GCP_PROJECT_ID: datamesh-2 PRODUCT_SUBSCRIPTION: inventory_subscription diff --git a/order-service/gcp-deploy-services.yaml b/order-service/gcp-deploy-services.yaml index 9eed3929..4355dc8f 100644 --- a/order-service/gcp-deploy-services.yaml +++ b/order-service/gcp-deploy-services.yaml @@ -109,6 +109,6 @@ metadata: name: orderservice-configmap data: # Configuration values can be set as key-value properties - MYSQL_HOST: 35.237.157.220 - AXON_HOST: 34.74.53.130:8124 + MYSQL_HOST: 35.196.247.48 + AXON_HOST: 34.23.97.151:8124 SERVICE_NAME: OrderService diff --git a/payment-service/gcp-deploy-service.yaml b/payment-service/gcp-deploy-service.yaml index a1956fa7..2e434f3b 100644 --- a/payment-service/gcp-deploy-service.yaml +++ b/payment-service/gcp-deploy-service.yaml @@ -106,6 +106,6 @@ metadata: name: payment-configmap data: # Configuration values can be set as key-value properties - MYSQL_HOST: 35.237.157.220 - AXON_HOST: 34.74.53.130:8124 + MYSQL_HOST: 35.196.247.48 + AXON_HOST: 34.23.97.151:8124 SERVICE_NAME: PaymentService diff --git a/projects-changes-deploy.txt b/projects-changes-deploy.txt index 8b137891..c50f1b15 100644 --- a/projects-changes-deploy.txt +++ b/projects-changes-deploy.txt @@ -1 +1,5 @@ - +admin-service +inventory-service +order-service +payment-service +shipment-service \ No newline at end of file diff --git a/shipment-service/gcp-deploy-service.yaml b/shipment-service/gcp-deploy-service.yaml index 9638ef9d..4b34d7ea 100644 --- a/shipment-service/gcp-deploy-service.yaml +++ b/shipment-service/gcp-deploy-service.yaml @@ -116,8 +116,8 @@ metadata: name: shipment-configmap data: # Configuration values can be set as key-value properties - MYSQL_HOST: 35.237.157.220 - AXON_HOST: 34.74.53.130:8124 + MYSQL_HOST: 35.196.247.48 + AXON_HOST: 34.23.97.151:8124 GCP_PROJECT_ID: datamesh-2 PUB_SUB_TOPIC_ID: shipment-notification SERVICE_NAME: ShipmentService