Hi everyone, We are managing flink deployements vi...
# troubleshooting
s
Hi everyone, We are managing flink deployements via flink k8s operator. We need to reploy all the FlinkDeployments (from last checkpoint/savepoint) when the operator is upgraded to new version. Is there a way we can achieve this?
g
Why do you need to redeploy everything?
s
We are providing a custom flink jar/image along with each FlinkDeployment by mutating the FlinkDeployment. Whenever new version of custom flink jar is released we will upgrade the operator version and have to redeploy the jobs.
g
you could change the
spec.restartNonce
to trigger a restart maybe?
s
Yes, but will it be possible to list all the flinkdeployments and change the value and deploy it from operator ?
g
I guess you could modify the operator to add your custom logic, or execute the update outside the operator using some script
s
Ok, sure. I will explore the operator implementation then. Thanks
g
It’s not completely clear to me why you would need to put this into the operator. For bumping the restartNonce / changing the image you can do it simply through the kubernets apis
s
The operator will add the custom flink jar path to FlinkDeployment. When the jar path is changed I will have to reinstall the operator. So I was thinking operator will itself redeploy all the flinkdeployments so that new changes are applied.
t
Hey Saransh, Let me drop my 2 cents here maybe it will be more clear The operator is used to deploy clusters within Kubernetes. if the cluster's spec is changed then the cluster is replaced with a new one and continue based on the value defined in the new spec under
upgradeMode
having said that, if you would like to update the clusters what you need to do is to build a new docker image with a new JAR and change the spec to work with that image. When you would like to update the operator itself you should double check whether the new version is backward compatible or not and manage the update process accordingly. As long as the operator is backward compatible you may update it without any impact on the existing clusters.
plusone 1