question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spring-boot-healthcheck adds probes to initContainers

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaferrarocommented, Feb 20, 2018

@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).

0reactions
stale[bot]commented, Oct 24, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found