Changing the default port of the embedded server does not change the K8S probes default port #2826
Unanswered
waynemorphic
asked this question in
Q&A
Replies: 1 comment 4 replies
-
This seems like a bug |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was checking out the Spring Boot Quickstart provided under the Maven package and found something peculiar that I would like a little help with. The default port of the embedded server is 8080. However, I changed it to 8081 under
resources\application.yaml
with the configuration:This follows that, building the Spring Boot application with
mvn spring-boot:run
serves the application on Tomcat's port 8081.However, when running the command that creates K8S resources descriptors, i.e
mvn clean k8s:resource -Pkubernetes
, then there is a discrepancy between the ports:What I have tried so far with the invaluable help of @rohanKanojia was adding the following property in my POM file:
However, the above port discrepancy persists. Guidance on this will be helpful. Thank you
Beta Was this translation helpful? Give feedback.
All reactions