Skip to content

Commit a81c647

Browse files
committed
Networking fix
1 parent bc4f51a commit a81c647

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/example/kolor_spring/Controller/IndexController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ public String getFilename() {
7070
System.out.println("Sending request to Flask API with LUT: " + lut);
7171
System.out.println("Original image size: " + image.getSize() + " bytes");
7272

73-
final String dockerAPIUrl = "http://python-service-service:5000";
73+
final String dockerAPIUrl = "http://python-service:5000";
74+
final String k8sAPIUrl = "http://python-service-service:5000";
7475

7576
// Make request to Flask API
7677
byte[] imageBytes = webClient.post()
77-
.uri(dockerAPIUrl + "/correctAPI")
78+
.uri(k8sAPIUrl + "/correctAPI")
7879
.contentType(MediaType.MULTIPART_FORM_DATA)
7980
.body(BodyInserters.fromMultipartData(bodyBuilder.build()))
8081
.retrieve()

0 commit comments

Comments
 (0)