-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add usage guide on Kubernetes executors (#373)
- Loading branch information
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ spec: | |
max: "2" | ||
memory: | ||
limit: 512Mi | ||
workers: | ||
celeryExecutors: | ||
config: | ||
resources: | ||
cpu: | ||
|
29 changes: 29 additions & 0 deletions
29
docs/modules/airflow/pages/usage-guide/using-kubernetes-executors.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
= Using Kubernetes executors | ||
|
||
Instead of using the Celery workers you can let Airflow run the tasks using Kubernetes executors, where pods are created dynamically as needed without jobs being routed through a redis queue to the workers. | ||
|
||
To achieve this, swap `spec.celeryExecutors` with `spec.kubernetesExecutors`. | ||
E.g. you would change the following example | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
celeryExecutors: | ||
roleGroups: | ||
default: | ||
replicas: 2 | ||
config: | ||
resources: | ||
# ... | ||
---- | ||
|
||
to | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
kubernetesExecutors: | ||
config: | ||
resources: | ||
# ... | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters