diff --git a/kubernetes/productcatalogue-service.yaml b/kubernetes/productcatalogue-service.yaml index ed4a356..3a4d404 100644 --- a/kubernetes/productcatalogue-service.yaml +++ b/kubernetes/productcatalogue-service.yaml @@ -31,12 +31,12 @@ spec: spec: containers: - name: productcatalogue - image: praveensingam1994/productcatalogue:latest + image: durai54/productcatalogue:latest ports: - containerPort: 8020 livenessProbe: httpGet: path: /healthcheck - port: 8025 + port: 8020 initialDelaySeconds: 30 timeoutSeconds: 1 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: 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 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(); + } + }