You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content.zh/docs/deployment/resource-providers/standalone/kubernetes.md
+80-1Lines changed: 80 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ You can tear down the cluster using the following commands:
95
95
96
96
### Deploy Application Cluster
97
97
98
-
A *Flink Application cluster* is a dedicated cluster which runs a single application.
98
+
A *Flink Application cluster* is a dedicated cluster which runs a single application, which needs to be available at deployment time.
99
99
100
100
A basic *Flink Application cluster* deployment in Kubernetes has three components:
101
101
@@ -233,6 +233,15 @@ You can access the queryable state of TaskManager if you create a `NodePort` ser
233
233
1. Run `kubectl create -f taskmanager-query-state-service.yaml` to create the `NodePort` service forthe `taskmanager` pod. The example of `taskmanager-query-state-service.yaml` can be foundin [appendix](#common-cluster-resource-definitions).
234
234
2. Run `kubectl get svc flink-taskmanager-query-state` to get the `<node-port>` of this service. Then you can create the [QueryableStateClient(<public-node-ip>, <node-port>]({{< ref "docs/dev/datastream/fault-tolerance/queryable_state">}}#querying-state) to submit state queries.
235
235
236
+
### Using Standalone Kubernetes with Reactive Mode
237
+
238
+
[Reactive Mode]({{< ref "docs/deployment/elastic_scaling">}}#reactive-mode) allows to run Flink in a mode, where the *Application Cluster* is always adjusting the job parallelism to the available resources. In combination with Kubernetes, the replica count of the TaskManager deployment determines the available resources. Increasing the replica count will scale up the job, reducing it will trigger a scale down. This can also be done automatically by using a [Horizontal Pod Autoscaler](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/).
239
+
240
+
To use Reactive Mode on Kubernetes, follow the same steps as for [deploying a job using an Application Cluster](#deploy-application-cluster). But instead of `flink-configuration-configmap.yaml` use this config map: `flink-reactive-mode-configuration-configmap.yaml`. It contains the `scheduler-mode: reactive` setting for Flink.
241
+
242
+
Once you have deployed the *Application Cluster*, you can scale your job up or down by changing the replica count in the `flink-taskmanager` deployment.
Copy file name to clipboardExpand all lines: docs/content/docs/deployment/resource-providers/standalone/kubernetes.md
+80-1Lines changed: 80 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ You can tear down the cluster using the following commands:
95
95
96
96
### Deploy Application Cluster
97
97
98
-
A *Flink Application cluster* is a dedicated cluster which runs a single application.
98
+
A *Flink Application cluster* is a dedicated cluster which runs a single application, which needs to be available at deployment time.
99
99
100
100
A basic *Flink Application cluster* deployment in Kubernetes has three components:
101
101
@@ -233,6 +233,15 @@ You can access the queryable state of TaskManager if you create a `NodePort` ser
233
233
1. Run `kubectl create -f taskmanager-query-state-service.yaml` to create the `NodePort` service forthe `taskmanager` pod. The example of `taskmanager-query-state-service.yaml` can be foundin [appendix](#common-cluster-resource-definitions).
234
234
2. Run `kubectl get svc flink-taskmanager-query-state` to get the `<node-port>` of this service. Then you can create the [QueryableStateClient(<public-node-ip>, <node-port>]({{< ref "docs/dev/datastream/fault-tolerance/queryable_state">}}#querying-state) to submit state queries.
235
235
236
+
### Using Standalone Kubernetes with Reactive Mode
237
+
238
+
[Reactive Mode]({{< ref "docs/deployment/elastic_scaling">}}#reactive-mode) allows to run Flink in a mode, where the *Application Cluster* is always adjusting the job parallelism to the available resources. In combination with Kubernetes, the replica count of the TaskManager deployment determines the available resources. Increasing the replica count will scale up the job, reducing it will trigger a scale down. This can also be done automatically by using a [Horizontal Pod Autoscaler](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/).
239
+
240
+
To use Reactive Mode on Kubernetes, follow the same steps as for [deploying a job using an Application Cluster](#deploy-application-cluster). But instead of `flink-configuration-configmap.yaml` use this config map: `flink-reactive-mode-configuration-configmap.yaml`. It contains the `scheduler-mode: reactive` setting for Flink.
241
+
242
+
Once you have deployed the *Application Cluster*, you can scale your job up or down by changing the replica count in the `flink-taskmanager` deployment.
0 commit comments