Skip to content

Conversation

@sylvainOL
Copy link

@sylvainOL sylvainOL commented Dec 9, 2025

When trying to use sidecars containers as init containers with restartPolicy set to Always (a.k.a. native sidecar), several small issues are occuring:

This PR resolves the three issues by:

  • setting a default health port different for each sidecar
  • removing the not needed u
  • allowing to choose METHOD on alerts and notifier containers when restartPolicy is defined and set to Always

Please note that the behaviour of all 4 sidecar containers is not exactly homogeneous and I just tried to replicate their behavior of what's actually done when started as regular container

closes #4039, #4033, #4045 and possible #4031

@CLAassistant
Copy link

CLAassistant commented Dec 9, 2025

CLA assistant check
All committers have signed the CLA.

@QuentinBisson
Copy link
Collaborator

@sylvainOL hey it looks like your PR has conflicts. Do you think you could double check the port configuration and fix the conflicts so we can get this merged?

@sylvainOL
Copy link
Author

For the port I intentionnally didn't used the default one (8080) in any of the known sidecars.

This way, if someone add another kiwigrid sidecar and forget to set a value, it'll works out of the box.

@QuentinBisson
Copy link
Collaborator

Could you upgrade the chart once last time? Thank you

@sylvainOL sylvainOL changed the title Make sidecar containers working [grafana] Make sidecar containers working Dec 12, 2025
If `METHOD` is set to `LIST` and with ` and with `restartPolicy` set to
`Always`, the pod starts and stops just after retrieving the files and
then is restarted right away.

Thus it prevents actual start of Grafana.

Signed-off-by: Sylvain Desbureaux <[email protected]>
kiwigrid new containers always start an health server. If several
sidecar containers are used, default value is creating collision.

Let's use a different default value for all sidecar containers so they
can start without hassle.

Signed-off-by: Sylvain Desbureaux <[email protected]>
@sylvainOL sylvainOL force-pushed the make-sidecar-containers-working branch from 7aa4439 to 696eee3 Compare December 12, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[grafana] Sidecars use the same health probe port which causes conflicts with more than 1 sidecar enabled

3 participants