Skip to content

implicit initContainer, added by jkube-volume-permission enricher, could brake deployment #2423

@vantonov1

Description

@vantonov1

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

  1. Create project with dozens of services, referring common resource fragment (deployment.yml)
  2. Add persistentVolumeClaim and volumeMount to deployment.yml
  3. mvn k8s:resource k8s:apply
  4. kubectl get pod

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions