This should do the trick:

job:
  upgradeMode: savepoint
  state: suspended

In the CR you should see something similar, after applying the above change.

lastSavepoint:
          formatType: CANONICAL
          location: file:/flink-data/savepoints/savepoint-fc61e1-b9cf089c260e
          timeStamp: 1664872178110
          triggerNonce: 0
          triggerType: UPGRADE


On Tue, Oct 4, 2022 at 7:57 AM Geng Biao <biaoge...@gmail.com> wrote:

> Hi liting,
>
> Maybe you can check codes of deleteClusterDeployment. When savepoint is
> finished, the operator will delete the job. Is the job not deleted as
> expected?
>
> Best,
> Bias Geng
>
> 获取 Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------
> *发件人:* Liting Liu (litiliu) <liti...@cisco.com>
> *发送时间:* Tuesday, October 4, 2022 12:53:45 PM
> *收件人:* user <user@flink.apache.org>
> *主题:* Does kubernetes operator support manually triggering savepoint with
> canceling the job?
>
> Hello Flink community:
> I want to manually trigger the savepoint with the help of kubernetes
> operator. But seems kubernetes operator hasn't provided an option for
> whether cancling the job when triggering savepoint. Because the
> `cancelJob` parameter was hard coded to false in latest code
> AbstractFlinkService.java#L299
> <https://github.com/apache/flink-kubernetes-operator/blob/1f6a75056acae90e9fab182fd076ee6755b35bbb/flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/service/AbstractFlinkService.java#L299>
> .
>       Do i have to watch the savepoint finish myself, then cancel this job
> ASAP?  And do we have a plan to support this option?
>

Reply via email to