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/modules/airflow/pages/getting_started/first_steps.adoc
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ With the external dependencies required by Airflow (Postgresql and Redis) instal
10
10
11
11
Supported versions for PostgreSQL and Redis can be found in the https://airflow.apache.org/docs/apache-airflow/stable/installation/prerequisites.html#prerequisites[Airflow documentation].
12
12
13
-
== Secret with Airflow credentials
13
+
== Airflow secrets
14
14
15
-
Create a Secret with the necessary credentials, this entails database connection credentials as well as an admin account for Airflow itself.
15
+
Secrets are required for the mandatory metadata database connection and the Airflow admin user.
16
+
When using celery executors it's also required to provide information for the celery database and broker.
`connections.sqlalchemyDatabaseUri` must contain the connection string to the SQL database storing the Airflow metadata.
27
+
`airflow-postgresql-credentials` contains credentials for the SQL database storing the Airflow metadata.
28
+
In this example we will use the same database for both the Airflow job metadata as well as the Celery broker metadata.
27
29
28
-
`connections.celeryResultBackend` must contain the connection string to the SQL database storing the job metadata (the example above uses the same PostgreSQL database for both).
30
+
`airflow-redis-credentials` contains credentials for the the Redis instance used for queuing the jobs submitted to the Airflow executor(s).
29
31
30
-
`connections.celeryBrokerUrl` must contain the connection string to the Redis instance used for queuing the jobs submitted to the airflow executor(s).
32
+
`airflow-admin-credentials`: the `adminUser.*` fields are used to create the initial admin user.
31
33
32
-
The `adminUser` fields are used to create an admin user.
33
-
34
-
NOTE: The admin user is disabled if you use a non-default authentication mechanism like LDAP.
34
+
NOTE: The admin user is disabled if you use a non-default authentication mechanism like LDAP or OIDC.
* `metadata.name` contains the name of the Airflow cluster.
63
+
* `metadata.name`: contains the name of the Airflow cluster.
64
+
* `spec.clusterConfig.metadataDatabase`: specifies one of the supported database types (in this case, `postgresql`) along with references to the host, database and the secret containing the connection credentials.
64
65
* the product version of the Docker image provided by Stackable must be set in `spec.image.productVersion`.
65
66
* `spec.celeryExecutors`: deploy executors managed by Airflow's Celery engine.
66
67
Alternatively you can use `kuberenetesExectors` that use Airflow's Kubernetes engine for executor management.
67
68
For more information see https://airflow.apache.org/docs/apache-airflow/stable/executor/index.html#executor-types).
68
-
* the `spec.clusterConfig.loadExamples` key is optional and defaults to `false`.
69
+
* `spec.celeryExecutors.celeryResultBackend`: specifies one of the supported database types (in this case, `postgresql`) along with references to the host, database and the secret containing the connection credentials.
70
+
* `spec.celeryExecutors.celeryBroker`: specifies one of the supported queue/broker types (in this case, `redis`) along with references to the host and the secret containing the connection credentials.
71
+
* `spec.clusterConfig.loadExamples`: this key is optional and defaults to `false`.
69
72
It is set to `true` here as the example DAGs are used when verifying the installation.
70
-
* the `spec.clusterConfig.exposeConfig` key is optional and defaults to `false`. It is set to `true` only as an aid to verify the configuration and should never be used as such in anything other than test or demo clusters.
71
-
* the previously created secret must be referenced in `spec.clusterConfig.credentialsSecret`.
73
+
* `spec.clusterConfig.exposeConfig`: this key is optional and defaults to `false`.
74
+
It is set to `true` only as an aid to verify the configuration and should never be used as such in anything other than test or demo clusters.
75
+
* `spec.clusterConfig.credentialsSecret`: specifies the secret containing the Airflow admin user information.
72
76
73
77
NOTE: The version you need to specify for `spec.image.productVersion` is the desired version of Apache Airflow.
74
78
You can optionally specify the `spec.image.stackableVersion` to a certain release like `23.11.0` but it is recommended to leave it out and use the default provided by the operator.
75
79
Check our https://oci.stackable.tech/[image registry,window=_blank] for a list of available versions. Information on how to browse the registry can be found xref:contributor:project-overview.adoc#docker-images[here,window=_blank].
76
80
It should generally be safe to simply use the latest version that is available.
77
81
82
+
NOTE: Refer to xref:usage-guide/database-connections.adoc[] for more information about database/broker connections.
83
+
78
84
This creates the actual Airflow cluster.
79
85
80
86
After a while, all the Pods in the StatefulSets should be ready:
0 commit comments