Hi, did anyone use Flink-k8s-operator to setup Fli...
# troubleshooting
s
Hi, did anyone use Flink-k8s-operator to setup Flink Session cluster using remote private repository? All the examples, I found are either using application clusters or session cluster that is getting jar from public repository. Is this usecase supported?
m
@Sweta Kalakuntla are you saying you want to download jars from your own private repo(s)?
a
@Sweta Kalakuntla - In my experience of running flink, you should be able to use private repository as well as long as flink-k8s-operator has connectivity to download the jar from the repo.
s
@M C (Mac) yes
@anuj sharma I have flink session cluster and jobs setup using private repos but using flink-k8s-operator I do not see any proper solution.
m
@Sweta Kalakuntla so you’re in full control of the container the session cluster uses. So for example FROM open source Flink container In your Dockerfile and you can figure out how to layer in your needs
Whether that’s wget with tokens pointing at your private repo
Or literally copying the jars into the image
Once you do that, your Flink deployment crd just points to your custom container image
a
Not sure of your use-case here, my understanding is that you will be having a flink-k8s-operator deployed in your k8s cluster. You will then be applying a FlinkDeployment CRD manifest which will run a flink cluster. The jar uri needs to be specified in FlinkSessionJob CRD manifest, the jar uri can point to any jar downloadable endpoint, once you will apply FlinkSessionJob manifest, Flink-k8s-operator will download the jar from the jar uri and will submit it to the session cluster created earlier.
s
the jaruri can't download from private remote repository. That is my prob
m
I don't know how to use JARURI with credentials, but I think my point still stands as far as - you can sort of do it yourself
s
My operator is in diff namespace then my cluster to access the paths where I downloaded the Jar. My operator cannot find the Jar to submit to the cluster.
a
Are you seeing any error in flink-k8-operator pod while trying to download the jar from the specified uri. Also what is your jar uri?
s
yes, it can't find the path.
a
Are you trying local:// or http:// something?
s
for repo https
a
Are you able to curl to that uri from inside of the pod?
s
yes with credentials
a
I am not sure if uri download supports credentials to be passed. Is it possible for you to reference a repo uri which doesn’t require any credentials?
s
uri does not take credentials here. I cannot access without credentials. So I downloaded inside the path but operator cannot access it. 😒
a
Okay, so you can then extend docker image of flink-k8s-operator via FROM and add instructions for jar downloaded via wget with credentials. This will help in making the jar available within flink-k8s-operator container and then you can specify jar uri as some local:// path.
s
yes, I have to make custom image