spring-boot-healthcheck adds probes to initContainers
See original GitHub issueDescription
With spring-boot-healthcheck enricher enabled, you’ll get an invalid deployment spec because it will add livelinessProbes and readinessProbes to initContainers.
Info
-
f-m-p version : 3.5.34
-
Maven version (
mvn -v
) : 3.5.2 -
Kubernetes / OpenShift setup and version : kubernetes 1.8.6
-
If it’s a bug, how to reproduce : Create a deployment with an init container and using springboot.
initContainers:
- command: "run.sh"
image: someTaskThatRunsOnce:latest
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Init Containers | Kubernetes
Init Containers. This page provides an overview of init containers: specialized containers that run before app containers in a Pod.
Read more >Using Init Containers to perform tasks before a pod is deployed
You can use an Init Container resource to perform tasks before the rest of a pod is deployed. A pod can have Init...
Read more >Liveness and Readiness Probes with Spring Boot
The Liveness state of an application tells whether the internal state is valid. If Liveness is broken, this means that the application ...
Read more >Kubernetes Advanced Topics: Init Containers
Kubernetes provides different kinds of probes that will let the platform know the status of your app. It will help us to tell...
Read more >Implement Health Checks in OpenShift - Baeldung
Kubernetes and, therefore, OpenShift, offers two types of probes: liveness ... So, let's add a new liveness probe to an application deployed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Salaboy it would be awesome if you can work on a PR to change the plugin behavior according to the spring-boot version detected.
I’ve created issue #1206 to track (with info on how to implement it).
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!