It's very easy to run Apache Flink on Kubernetes with YuniKorn. Depending on which mode is used to run Flink on Kubernetes, the configuration is slight different.
Please follow Kubernetes Setup to get details and examples of standalone deploy mode. In this mode, we can directly add required labels (applicationId and queue) in Deployment/Job spec to run flink application with YuniKorn scheduler, as well as Run workloads with YuniKorn Scheduler.
Please follow Native Kubernetes Setup to get details and examples of native deploy mode.
Running flink application with YuniKorn scheduler in native mode is only supported for flink 1.11 or above, we can leverage two flink configurations
kubernetes.taskmanager.labels to set the required labels.
- Start a flink session
- Start a flink application