From 4d0743df92aeca0fa8ea7be73941b185e28fe365 Mon Sep 17 00:00:00 2001 From: deepak1067 Date: Tue, 19 Sep 2023 15:48:28 +0530 Subject: [PATCH] azure deployment --- ...deployment.yaml => azure-deploy-service.yaml} | 15 ++++++++++++++- admin-service/azure-manifest/service.yaml | 12 ------------ admin-service/kustomization.yaml | 3 +-- ...deployment.yaml => azure-deploy-service.yaml} | 16 +++++++++++++++- cart-service/azure-manifest/service.yaml | 12 ------------ cart-service/kustomization.yaml | 3 +-- ...deployment.yaml => azure-deploy-service.yaml} | 14 ++++++++++++++ inventory-service/azure-manifest/service.yaml | 12 ------------ inventory-service/kustomization.yaml | 3 +-- ...deployment.yaml => azure-deploy-service.yaml} | 14 ++++++++++++++ order-service/azure-manifest/service.yaml | 12 ------------ order-service/kustomization.yaml | 3 +-- ...deployment.yaml => azure-deploy-service.yaml} | 15 +++++++++++++++ payment-service/azure-manifest/service.yaml | 12 ------------ payment-service/kustomization.yaml | 3 +-- ...deployment.yaml => azure-deploy-service.yaml} | 13 +++++++++++++ shipment-service/azure-manifest/service.yaml | 12 ------------ shipment-service/kustomization.yaml | 3 +-- 18 files changed, 91 insertions(+), 86 deletions(-) rename admin-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (60%) delete mode 100644 admin-service/azure-manifest/service.yaml rename cart-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (59%) delete mode 100644 cart-service/azure-manifest/service.yaml rename inventory-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (65%) delete mode 100644 inventory-service/azure-manifest/service.yaml rename order-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (65%) delete mode 100644 order-service/azure-manifest/service.yaml rename payment-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (65%) delete mode 100644 payment-service/azure-manifest/service.yaml rename shipment-service/azure-manifest/{deployment.yaml => azure-deploy-service.yaml} (66%) delete mode 100644 shipment-service/azure-manifest/service.yaml diff --git a/admin-service/azure-manifest/deployment.yaml b/admin-service/azure-manifest/azure-deploy-service.yaml similarity index 60% rename from admin-service/azure-manifest/deployment.yaml rename to admin-service/azure-manifest/azure-deploy-service.yaml index 2551f49d..77d8eb34 100644 --- a/admin-service/azure-manifest/deployment.yaml +++ b/admin-service/azure-manifest/azure-deploy-service.yaml @@ -17,5 +17,18 @@ spec: image: your-acr-name.azurecr.io/your-image-name ports: - - containerPort: 9091 + - containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: adminservice +spec: + type: LoadBalancer + selector: + app: adminservice + ports: + - protocol: TCP + port: 80 + targetPort: 8080 diff --git a/admin-service/azure-manifest/service.yaml b/admin-service/azure-manifest/service.yaml deleted file mode 100644 index f7cca68a..00000000 --- a/admin-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: adminservice -spec: - type: LoadBalancer - selector: - app: adminservice - ports: - - protocol: TCP - port: 9091 - targetPort: 9091 \ No newline at end of file diff --git a/admin-service/kustomization.yaml b/admin-service/kustomization.yaml index 4c554c9e..4e4a7734 100644 --- a/admin-service/kustomization.yaml +++ b/admin-service/kustomization.yaml @@ -6,5 +6,4 @@ resources: # need to change acc. to select gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml diff --git a/cart-service/azure-manifest/deployment.yaml b/cart-service/azure-manifest/azure-deploy-service.yaml similarity index 59% rename from cart-service/azure-manifest/deployment.yaml rename to cart-service/azure-manifest/azure-deploy-service.yaml index 6651b700..5c5655e6 100644 --- a/cart-service/azure-manifest/deployment.yaml +++ b/cart-service/azure-manifest/azure-deploy-service.yaml @@ -17,5 +17,19 @@ spec: image: your-acr-name.azurecr.io/your-image-name ports: - - containerPort: 9091 + - containerPort: 9096 + +--- +apiVersion: v1 +kind: Service +metadata: + name: cartservice +spec: + type: LoadBalancer + selector: + app: cartservice + ports: + - protocol: TCP + port: 9096 + targetPort: 9096 \ No newline at end of file diff --git a/cart-service/azure-manifest/service.yaml b/cart-service/azure-manifest/service.yaml deleted file mode 100644 index 39866097..00000000 --- a/cart-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: cartservice -spec: - type: LoadBalancer - selector: - app: cartservice - ports: - - protocol: TCP - port: 9091 - targetPort: 9091 \ No newline at end of file diff --git a/cart-service/kustomization.yaml b/cart-service/kustomization.yaml index 0d65476e..3e77af38 100644 --- a/cart-service/kustomization.yaml +++ b/cart-service/kustomization.yaml @@ -6,5 +6,4 @@ resources: # need to change acc to gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml diff --git a/inventory-service/azure-manifest/deployment.yaml b/inventory-service/azure-manifest/azure-deploy-service.yaml similarity index 65% rename from inventory-service/azure-manifest/deployment.yaml rename to inventory-service/azure-manifest/azure-deploy-service.yaml index 459ab7b8..11756eba 100644 --- a/inventory-service/azure-manifest/deployment.yaml +++ b/inventory-service/azure-manifest/azure-deploy-service.yaml @@ -19,3 +19,17 @@ spec: ports: - containerPort: 9091 + +--- +apiVersion: v1 +kind: Service +metadata: + name: inventoryservice +spec: + type: LoadBalancer + selector: + app: inventoryservice + ports: + - protocol: TCP + port: 9091 + targetPort: 9091 diff --git a/inventory-service/azure-manifest/service.yaml b/inventory-service/azure-manifest/service.yaml deleted file mode 100644 index f6d58e46..00000000 --- a/inventory-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: inventoryservice -spec: - type: LoadBalancer - selector: - app: inventoryservice - ports: - - protocol: TCP - port: 9091 - targetPort: 9091 \ No newline at end of file diff --git a/inventory-service/kustomization.yaml b/inventory-service/kustomization.yaml index c54a5e8d..3b031bb1 100644 --- a/inventory-service/kustomization.yaml +++ b/inventory-service/kustomization.yaml @@ -6,5 +6,4 @@ resources: # need to change acc to gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml diff --git a/order-service/azure-manifest/deployment.yaml b/order-service/azure-manifest/azure-deploy-service.yaml similarity index 65% rename from order-service/azure-manifest/deployment.yaml rename to order-service/azure-manifest/azure-deploy-service.yaml index b04ad5be..bcced3e1 100644 --- a/order-service/azure-manifest/deployment.yaml +++ b/order-service/azure-manifest/azure-deploy-service.yaml @@ -19,3 +19,17 @@ spec: ports: - containerPort: 9090 + +--- +apiVersion: v1 +kind: Service +metadata: + name: orderservice +spec: + type: LoadBalancer + selector: + app: orderservice + ports: + - protocol: TCP + port: 9090 + targetPort: 9090 diff --git a/order-service/azure-manifest/service.yaml b/order-service/azure-manifest/service.yaml deleted file mode 100644 index a9abd67c..00000000 --- a/order-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: orderservice -spec: - type: LoadBalancer - selector: - app: orderservice - ports: - - protocol: TCP - port: 9090 - targetPort: 9090 \ No newline at end of file diff --git a/order-service/kustomization.yaml b/order-service/kustomization.yaml index 8d2a6b59..05d7e4a5 100644 --- a/order-service/kustomization.yaml +++ b/order-service/kustomization.yaml @@ -7,5 +7,4 @@ resources: # need to change acc to gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml diff --git a/payment-service/azure-manifest/deployment.yaml b/payment-service/azure-manifest/azure-deploy-service.yaml similarity index 65% rename from payment-service/azure-manifest/deployment.yaml rename to payment-service/azure-manifest/azure-deploy-service.yaml index 6962254d..c416e4e4 100644 --- a/payment-service/azure-manifest/deployment.yaml +++ b/payment-service/azure-manifest/azure-deploy-service.yaml @@ -18,3 +18,18 @@ spec: ports: - containerPort: 9092 + + +--- +apiVersion: v1 +kind: Service +metadata: + name: paymentservice +spec: + type: LoadBalancer + selector: + app: paymentservice + ports: + - protocol: TCP + port: 9092 + targetPort: 9092 \ No newline at end of file diff --git a/payment-service/azure-manifest/service.yaml b/payment-service/azure-manifest/service.yaml deleted file mode 100644 index 4ebd2ebc..00000000 --- a/payment-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: paymentservice -spec: - type: LoadBalancer - selector: - app: paymentservice - ports: - - protocol: TCP - port: 9092 - targetPort: 9092 \ No newline at end of file diff --git a/payment-service/kustomization.yaml b/payment-service/kustomization.yaml index c120b69e..a9b0831e 100644 --- a/payment-service/kustomization.yaml +++ b/payment-service/kustomization.yaml @@ -7,5 +7,4 @@ resources: # need to change acc to gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml diff --git a/shipment-service/azure-manifest/deployment.yaml b/shipment-service/azure-manifest/azure-deploy-service.yaml similarity index 66% rename from shipment-service/azure-manifest/deployment.yaml rename to shipment-service/azure-manifest/azure-deploy-service.yaml index e32517ee..8020da68 100644 --- a/shipment-service/azure-manifest/deployment.yaml +++ b/shipment-service/azure-manifest/azure-deploy-service.yaml @@ -19,3 +19,16 @@ spec: ports: - containerPort: 9093 +--- +apiVersion: v1 +kind: Service +metadata: + name: shipmentservice +spec: + type: LoadBalancer + selector: + app: shipmentservice + ports: + - protocol: TCP + port: 9093 + targetPort: 9093 \ No newline at end of file diff --git a/shipment-service/azure-manifest/service.yaml b/shipment-service/azure-manifest/service.yaml deleted file mode 100644 index f18015db..00000000 --- a/shipment-service/azure-manifest/service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: shipmentservice -spec: - type: LoadBalancer - selector: - app: shipmentservice - ports: - - protocol: TCP - port: 9093 - targetPort: 9093 \ No newline at end of file diff --git a/shipment-service/kustomization.yaml b/shipment-service/kustomization.yaml index c120b69e..a9b0831e 100644 --- a/shipment-service/kustomization.yaml +++ b/shipment-service/kustomization.yaml @@ -7,5 +7,4 @@ resources: # need to change acc to gcp and azure deployment -- azure-manifest/deployment.yaml -- azure-manifest/service.yaml \ No newline at end of file +- azure-manifest/azure-deploy-service.yaml