diff --git a/docs/layouts/shortcodes/generated/deployment_configuration.html b/docs/layouts/shortcodes/generated/deployment_configuration.html
index 551e3c879800c..31ac2999ff635 100644
--- a/docs/layouts/shortcodes/generated/deployment_configuration.html
+++ b/docs/layouts/shortcodes/generated/deployment_configuration.html
@@ -30,7 +30,7 @@
execution.target |
(none) |
String |
- The deployment target for the execution. This can take one of the following values:- remote
- local
- yarn-per-job
- yarn-session
- kubernetes-session
. |
+ The deployment target for the execution. This can take one of the following values when execute bin/flink run:- remote
- local
- yarn-per-job
- yarn-session
- kubernetes-session
, and can take one of the following values when execute bin/flink run-application:- yarn-application
- kubernetes-application
. |
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/DeploymentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/DeploymentOptions.java
index b9f62ebe73c1f..0d6287fb272e0 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/DeploymentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/DeploymentOptions.java
@@ -37,13 +37,17 @@ public class DeploymentOptions {
.withDescription(
Description.builder()
.text(
- "The deployment target for the execution. This can take one of the following values:")
+ "The deployment target for the execution. This can take one of the following values "
+ + "when execute bin/flink run:")
.list(
text("remote"),
text("local"),
text("yarn-per-job"),
text("yarn-session"),
text("kubernetes-session"))
+ .text(
+ ", and can take one of the following values when execute bin/flink run-application:")
+ .list(text("yarn-application"), text("kubernetes-application"))
.text(".")
.build());