Skip to content

Commit 28fe265

Browse files
committed
wip
1 parent 0dd7c45 commit 28fe265

4 files changed

Lines changed: 67 additions & 24 deletions

File tree

demos/demos-v2.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ demos:
167167
- s3
168168
manifests: []
169169
supportedNamespaces: []
170-
resourceRequests:
171-
cpu: 6000m # Measured 5600m
172-
memory: 21Gi
173-
pvc: 110Gi # 100Gi for MinIO
174170
trino-taxi-data:
175171
description: Demo loading 2.5 years of New York taxi data into S3 bucket, creating a Trino table and a Superset dashboard
176172
documentation: https://docs.stackable.tech/home/stable/demos/trino-taxi-data/

stacks/stacks-v2.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ stacks:
384384
- hive
385385
- trino
386386
- opa
387+
- airflow
387388
labels:
388389
- trino
389390
- opa
@@ -396,18 +397,22 @@ stacks:
396397
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/stacks/trino-iceberg/s3-connection.yaml
397398
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/stacks/trino-iceberg/hive-metastores.yaml
398399
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/stacks/trino-iceberg/trino.yaml
399-
supportedNamespaces: ["default"] # until namespace can be templates, the minio FQDN hard-codes the namespace
400-
resourceRequests:
401-
cpu: 6000m # Measured 5600m
402-
memory: 21Gi
403-
pvc: 110Gi # 100Gi for MinIO
400+
- plainYaml: https://raw.githubusercontent.com/stackabletech/demos/main/stacks/_templates/postgresql-airflow.yaml
401+
- plainYaml: stacks/trino-iceberg/airflow.yaml
402+
supportedNamespaces: ["default"]
404403
parameters:
405404
- name: trinoAdminPassword
406405
description: Password of the Trino admin user
407406
default: adminadmin
408407
- name: minioAdminPassword
409408
description: Password of the MinIO admin user
410409
default: adminadmin
410+
- name: airflowAdminPassword
411+
description: Password of the MinIO admin user
412+
default: adminadmin
413+
- name: airflowSecretKey
414+
description: Airflow's secret key used to generate e.g. user session tokens
415+
default: airflowSecretKey
411416
jupyterhub-pyspark-hdfs:
412417
description: Jupyterhub with PySpark and HDFS integration
413418
stackableRelease: dev

stacks/trino-iceberg/airflow.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
apiVersion: airflow.stackable.tech/v1alpha1
3+
kind: AirflowCluster
4+
metadata:
5+
name: airflow
6+
spec:
7+
image:
8+
productVersion: 3.0.6
9+
pullPolicy: IfNotPresent
10+
clusterConfig:
11+
loadExamples: false
12+
credentialsSecret: airflow-credentials
13+
webservers:
14+
roleConfig:
15+
listenerClass: external-stable
16+
config:
17+
resources:
18+
cpu:
19+
min: "2"
20+
max: "3"
21+
memory:
22+
limit: 3Gi
23+
configOverrides:
24+
webserver_config.py:
25+
# Allow "POST /login/" without CSRF token
26+
WTF_CSRF_ENABLED: "False"
27+
roleGroups:
28+
default:
29+
replicas: 1
30+
kubernetesExecutors:
31+
config: {}
32+
schedulers:
33+
roleGroups:
34+
default:
35+
replicas: 1
36+
dagProcessors:
37+
roleGroups:
38+
default:
39+
replicas: 1
40+
triggerers:
41+
roleGroups:
42+
default:
43+
replicas: 1
44+
---
45+
apiVersion: v1
46+
kind: Secret
47+
metadata:
48+
name: airflow-credentials
49+
type: Opaque
50+
stringData:
51+
adminUser.username: admin
52+
adminUser.firstname: Airflow
53+
adminUser.lastname: Admin
54+
adminUser.email: airflow@airflow.com
55+
adminUser.password: "adminadmin"
56+
connections.secretKey: "airflowSecretKey"
57+
connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:airflow@postgresql-airflow/airflow

stacks/trino-iceberg/trino.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,12 @@ spec:
1717
configMapName: opa
1818
package: trino
1919
coordinators:
20-
config:
21-
queryMaxMemory: 10TB
22-
resources:
23-
cpu:
24-
min: "500m"
25-
max: "2"
26-
memory:
27-
limit: '4Gi'
2820
roleGroups:
2921
default:
3022
replicas: 1
3123
roleConfig:
3224
listenerClass: external-stable
3325
workers:
34-
config:
35-
resources:
36-
cpu:
37-
min: "1"
38-
max: "4"
39-
memory:
40-
limit: '8Gi'
4126
roleGroups:
4227
default:
4328
replicas: 1

0 commit comments

Comments
 (0)