I was doing some experimenting with the operator, ...
# troubleshooting
r
I was doing some experimenting with the operator, specifically for a scenario where a jar may need to be “patched” if a critical bug is found. Currently, only session-job based jars can be remotely retrieved (via a remote jarURI location, e.g. gs://…). When attempting the above on a non-session job, it indicates that only locally based jars can be referenced. I was just curious if this might eventually be something that is supported. The workaround would be to build an entirely new image with the patched jar file (which is doable but somewhat more cumbersome), or update the deployment and explicitly add an initContainer and the appropriate volumes/mounts to download the updated jar from a remote location. It seems like something that could be supported for non-session based jobs assuming the appropriate dependencies and credentials were available.
m
My workaround for this was using an
initContainers
that mount a
jar-cache
directory and use
command
to
curl
the jar file from repo into the mounted dir. Alternatively you can build the docker image with the desired version of the jar already downloaded and added to the classpath
My understanding is that for application-mode deployments only
local
is supported for security reasons in production environments. But I may be wrong. I'm new to flink native k8s operator.
g
I think this is already implement for Flink 1.19 , I can’t dig out the jira / PR now , but I will try to find it on Monday