-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implicit initContainer, added by jkube-volume-permission enricher, could brake deployment #2423
Comments
@vantonov1 Do you think this is related to #1179 ? |
Yes, it is related. But #1179 was closed with "you could switch it off, if you know." |
To disable the enricher you should configure the plugin as: <plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId>
<version>1.14.0</version>
<configuration>
<enricher>
<excludes>
<exclude>jkube-volume-permission</exclude>
</excludes>
</enricher>
</configuration>
</plugin> The other option would be to switch the permission enricher base image to something else that has the |
@manusa : I think @vantonov1 is requesting to remove this enricher from the default profile as it can cause issues in production. |
Yes, exactly. You could disable the enricher. AFTER you have failed release ) |
Could you please elaborate on this point? |
I have dozens of services and decided to mount a volume to all. Everything was good on stage, but deployed to production we get couple of pod in ImagePullBackOff state - just because busybox could not be downloaded (rate limit, yes) |
As a workaround for this very specific problem, we could consider using something different than |
I believe that this can be closed by #2570 |
Describe the bug
jkube-volume-permission adds init container to deployment with busybox as image, if there is a volume mounted. This is implicit, so really hard to predict.
Problem is that docker hub has rate limit. So, just by adding volume mount to a few deployments you could have broken release - pods not starting because busybox could not be downloaded.
For me, it is quite dangerous behavior, and should be switched off by default.
Eclipse JKube version
1.11.0
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.3
Gradle version
None
Steps to reproduce
Expected behavior
It COULD happens that you get ImagePullBackOff on some pod.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3
Environment
Linux
Eclipse JKube Logs
No response
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: