Skip to content

Commit

Permalink
port and host changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Nov 30, 2023
1 parent e1e3b30 commit be6e0f1
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cart-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ metadata:
name: cartservice-configmap
data:
# Configuration values can be set as key-value properties
MYSQL_HOST: 35.196.34.197
MYSQL_HOST: 35.237.157.220
SERVICE_NAME: CartService
INVENTORY_HOST: http://34.73.103.83:9091
6 changes: 0 additions & 6 deletions cloud-function/gcpcloudfunction/gcpcarfunction.iml

This file was deleted.

7 changes: 5 additions & 2 deletions deployment/gcpresources/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ resource "google_container_cluster" "car-demo-gke" {
enable_autopilot = true
deletion_protection = false
node_config {
machine_type = "e2-medium"
machine_type = "n2-standard-2"
}
}

Expand Down Expand Up @@ -187,6 +187,7 @@ resource "null_resource" "axon-server-gke" {
}

#GKE Cluster for elasticsearch
/*
resource "google_container_cluster" "elasticsearch-server-gke" {
name = "elasticsearch-server-gke"
location = var.gcp_region_1
Expand All @@ -206,6 +207,7 @@ resource "null_resource" "elasticsearch-server-gke" {
}
depends_on = [google_container_cluster.elasticsearch-server-gke]
}
*/

#----------------------GCP firestore----------------------------
/*
Expand Down Expand Up @@ -233,7 +235,8 @@ resource "google_storage_bucket" "function_bucket" {
data "archive_file" "source" {
type = "zip"
output_path = "/tmp/function-source.zip"
source_dir = "/home/knoldus/IdeaProjects/car-demo/cloud-function/gcpcarfunction"
source_dir = "[ CLOUD-FUNCTION ABSOLUTE PATH ]"
// ex. "/home/knoldus/IdeaProjects/car-demo/cloud-function/gcpcarfunction"
}

resource "google_storage_bucket_object" "zip" {
Expand Down
2 changes: 1 addition & 1 deletion elastic-search/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ data:
SERVICE_NAME: ElasticsearchService
GCP_PROJECT_ID: datamesh-2
PUB_SUB_SUBSCRIPTION: vehicle-subscription
ELASTICSEARCH_HOST: 34.73.12.63
ELASTICSEARCH_HOST: 34.23.97.151
ELASTICSEARCH_PORT: 9200
PUB_SUB_TOPIC_ID: vehicle
4 changes: 2 additions & 2 deletions inventory-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ metadata:
name: inventory-configmap
data:
# Configuration values can be set as key-value properties
MYSQL_HOST: 35.237.239.230
AXON_HOST: 34.139.45.85:8124
MYSQL_HOST: 35.237.157.220
AXON_HOST: 34.74.53.130:8124
SERVICE_NAME: InventoryService
GCP_PROJECT_ID: datamesh-2
PRODUCT_SUBSCRIPTION: inventory_subscription
4 changes: 2 additions & 2 deletions order-service/gcp-deploy-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ metadata:
name: orderservice-configmap
data:
# Configuration values can be set as key-value properties
MYSQL_HOST: 335.237.239.230
AXON_HOST: 34.139.45.85:8124
MYSQL_HOST: 35.237.157.220
AXON_HOST: 34.74.53.130:8124
SERVICE_NAME: OrderService
4 changes: 2 additions & 2 deletions payment-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ metadata:
name: payment-configmap
data:
# Configuration values can be set as key-value properties
MYSQL_HOST: 35.237.239.230
AXON_HOST: 34.139.45.85:8124
MYSQL_HOST: 35.237.157.220
AXON_HOST: 34.74.53.130:8124
SERVICE_NAME: PaymentService
4 changes: 2 additions & 2 deletions shipment-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ metadata:
name: shipment-configmap
data:
# Configuration values can be set as key-value properties
MYSQL_HOST: 35.237.239.230
AXON_HOST: 34.139.45.85:8124
MYSQL_HOST: 35.237.157.220
AXON_HOST: 34.74.53.130:8124
GCP_PROJECT_ID: datamesh-2
PUB_SUB_TOPIC_ID: shipment-notification
SERVICE_NAME: ShipmentService

0 comments on commit be6e0f1

Please sign in to comment.