From 7628dfd7f029a443382bc01b97e9f64b2337a34d Mon Sep 17 00:00:00 2001 From: awskutty <132982524+awskutty@users.noreply.github.com> Date: Sun, 24 Dec 2023 11:56:47 +0530 Subject: [PATCH 1/5] Update healthcheck.java --- .../djshopping/stockmanager/healthcheck.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/stockmanager/src/main/java/uk/co/danielbryant/djshopping/stockmanager/healthcheck.java b/stockmanager/src/main/java/uk/co/danielbryant/djshopping/stockmanager/healthcheck.java index 6ecdb61..178bcec 100644 --- a/stockmanager/src/main/java/uk/co/danielbryant/djshopping/stockmanager/healthcheck.java +++ b/stockmanager/src/main/java/uk/co/danielbryant/djshopping/stockmanager/healthcheck.java @@ -1,13 +1,13 @@ -// package com.example.springbootmanagementexample; + package uk.co.danielbryant.djshopping.stockmanager; -// import java.util.Date; -// import org.springframework.web.bind.annotation.GetMapping; -// import org.springframework.web.bind.annotation.RestController; + import java.util.Date; + import org.springframework.web.bind.annotation.GetMapping; + import org.springframework.web.bind.annotation.RestController; -// @RestController -// public class SimpleRestController { -// @GetMapping("/example") -// public String example() { -// return "Hello User !! " + new Date(); -// } -// } + @RestController + public class SimpleRestController { + @GetMapping("/example") + public String example() { + return "Hello User !! " + new Date(); + } + } From 447ea7abb917ad4ad851ea697df5cc7bb9504ab8 Mon Sep 17 00:00:00 2001 From: awskutty <132982524+awskutty@users.noreply.github.com> Date: Sun, 24 Dec 2023 11:59:45 +0530 Subject: [PATCH 2/5] Update stockmanager-service.yaml --- kubernetes/stockmanager-service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/stockmanager-service.yaml b/kubernetes/stockmanager-service.yaml index 5849c34..ed6ddd3 100644 --- a/kubernetes/stockmanager-service.yaml +++ b/kubernetes/stockmanager-service.yaml @@ -31,12 +31,12 @@ spec: spec: containers: - name: stockmanager - image: praveensingam1994/stockmanager:latest + image: durai54/stockmanager:latest ports: - containerPort: 8030 livenessProbe: httpGet: - path: /health + path: /actuator/health port: 8030 initialDelaySeconds: 30 timeoutSeconds: 1 From ec635d40a49644267af6fee08d1ffff96d768dcc Mon Sep 17 00:00:00 2001 From: awskutty <132982524+awskutty@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:03:11 +0530 Subject: [PATCH 3/5] Update shopfront-service.yaml --- kubernetes/shopfront-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/shopfront-service.yaml b/kubernetes/shopfront-service.yaml index 1ec7045..57ed109 100644 --- a/kubernetes/shopfront-service.yaml +++ b/kubernetes/shopfront-service.yaml @@ -31,7 +31,7 @@ spec: spec: containers: - name: shopfront - image: praveensingam1994/shopfront:latest + image: durai54/shopfront:latest ports: - containerPort: 8010 livenessProbe: From 68d22a3cf674e88d3d0a9bc632dd1a188fb88a86 Mon Sep 17 00:00:00 2001 From: awskutty <132982524+awskutty@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:04:34 +0530 Subject: [PATCH 4/5] Update productcatalogue-service.yaml --- kubernetes/productcatalogue-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalogue-service.yaml b/kubernetes/productcatalogue-service.yaml index ed4a356..d79a964 100644 --- a/kubernetes/productcatalogue-service.yaml +++ b/kubernetes/productcatalogue-service.yaml @@ -37,6 +37,6 @@ spec: livenessProbe: httpGet: path: /healthcheck - port: 8025 + port: 8020 initialDelaySeconds: 30 timeoutSeconds: 1 From b7a1328847a936509dbf113c2aaa67e43f32dbe5 Mon Sep 17 00:00:00 2001 From: awskutty <132982524+awskutty@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:05:11 +0530 Subject: [PATCH 5/5] Update productcatalogue-service.yaml --- kubernetes/productcatalogue-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/productcatalogue-service.yaml b/kubernetes/productcatalogue-service.yaml index d79a964..3a4d404 100644 --- a/kubernetes/productcatalogue-service.yaml +++ b/kubernetes/productcatalogue-service.yaml @@ -31,7 +31,7 @@ spec: spec: containers: - name: productcatalogue - image: praveensingam1994/productcatalogue:latest + image: durai54/productcatalogue:latest ports: - containerPort: 8020 livenessProbe: