Hi Guys. I am trying to deploy my flink job using ...
# troubleshooting
p
Hi Guys. I am trying to deploy my flink job using flink kuberates operator. In case of stateless job it is working fine but in case of savepoints it is not able to automate the savepoints. How can we schedule a stateful flink job having savepoints using flink kuberates operator? Could anyone provide the yaml file? I want to achieve auto savepoint creation and restoration from savepoint in case of job cancellation.
đź‘€ 1
p
Copy code
---
# Source: bil-enrichment/charts/flink-deployment/templates/flink-deployment.yaml
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
  name: ...
...
spec:
  flinkConfiguration:
    kubernetes.operator.periodic.savepoint.interval: "2h"
    kubernetes.operator.savepoint.history.max.age: "48h"
    kubernetes.operator.savepoint.history.max.count: "40"
    kubernetes.operator.job.savepoint-on-deletion: "true"
...```
p
Should we set savpointrestartnonce as well?
Also I can't find kubernates.operator.job.savepoint-on-deletion option.
p
Should we set savpointrestartnonce as well?
I leave it empty and it works out for me.
Also I can’t find kubernates.operator.job.savepoint-on-deletion option.
I got it from here.
p
Sure let me try this.. thanks
p
Did it work?
p
@Pedro Mázala I Tried this.. it is still not working. I had to run it through command directly. Let me know if any other solution could be done.