Closed gandharvsuri closed 3 years ago
Hi @gandharvsuri
There is an example in the image's README.md about how to extend the image (please note that it recovers the original user 1001 after applying the modifications) that you can use as a reference:
I am afraid that we (Bitnami maintainers) cannot help you to debug issues with images that have been customized. In any case, let's keep the issue opened for a few days to see if other Bitnami users can help you with your customizations.
Hi @juan131, Thanks for your response. I would be needing to add external jar files later.
But I believe the issue is not with the docker image. I tried a very basic docker image by commenting out everything and that gave an error too.
Other than that I have made changes in the following section of the values.yaml file only.
image:
registry: docker.io
repository: bitnami/spark
tag: 2.4.5-debian-10-r49
Hi @gandharvsuri
So you're telling that using the default values (without modifying any single parameter, including the image.*
ones) you're also able to reproduce the issue, am I right?
Hi @juan131
I meant that having a basic dockerfile with no RUN commands.
FROM bitnami/spark:2.4.5-debian-10-r49
I did change the image:
parameters to use my docker image.
But surprisingly if I use the bitnami/spark:3-debian-10
as the base image, works completely fine.
Any guess why?
That's very weird @gandharvsuri
Did you upload your image to DockerHub (or similar registry) when you rebuilt the image including the single FROM bitnami/spark:2.4.5-debian-10-r49
layer? If so, did you reuse the same tag you had previously used? If so, did you set the imagePullPolicy (setting the image.pullPolicy
parameter) to Always
so you ensure the image is always pulled in your k8s cluster instead of reusing the one in the cache?
Hi @juan131, yes I did push it to DockerHub. I tried using it from both local memory and the docker.io by specifying it in image.registry
. I was using the tag latest
so I believe it by default took the image.pullPolicy
as Always
.
Hi @gandharvsuri
I was using the tag
latest
so I believe it by default took the image.pullPolicy as Always.
That's not automatically done, you need to manually set it to Always
. Otherwise, it'll use the default values which is IfNotPresent
, see https://github.com/bitnami/charts/blob/master/bitnami/spark/values.yaml#L66
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Which chart: The name (and version) of the affected chart bitnami/spark
Describe the bug A clear and concise description of what the bug is. Using custom image, master node not initialising.
To Reproduce Steps to reproduce the behavior:
Follwoing #6661 I wrote a custom Dockerfile
logs for the pod return me this
Version of Helm and Kubernetes:
helm version
:kubectl version
:Additional context Add any other context about the problem here.