Skip to content

Commit 07afe6d

Browse files
committed
Update Pod Templates, Values for JWT Timeout
1 parent d7f1cd1 commit 07afe6d

File tree

6 files changed

+43
-14
lines changed

6 files changed

+43
-14
lines changed

airflow/pod_templates/okd/heavy_task_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
value: "/opt/airflow/email_templates/content/okd_content.html"
8787
- name: AIRFLOW__API__BASE_URL
8888
value: "http://bcwat.airflow.fspatial"
89+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
90+
value: "21600"
91+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
92+
value: "60"
8993
resources:
9094
requests:
9195
memory: 4096Mi

airflow/pod_templates/okd/largest_task_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
value: "/opt/airflow/email_templates/content/okd_content.html"
8787
- name: AIRFLOW__API__BASE_URL
8888
value: "http://bcwat.airflow.fspatial"
89+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
90+
value: "21600"
91+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
92+
value: "60"
8993
resources:
9094
requests:
9195
memory: 5000Mi

airflow/pod_templates/okd/medium_task_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
value: "/opt/airflow/email_templates/content/okd_content.html"
8787
- name: AIRFLOW__API__BASE_URL
8888
value: "http://bcwat.airflow.fspatial"
89+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
90+
value: "21600"
91+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
92+
value: "60"
8993
resources:
9094
requests:
9195
memory: 2048Mi

airflow/pod_templates/okd/small_task_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
value: "/opt/airflow/email_templates/content/okd_content.html"
8787
- name: AIRFLOW__API__BASE_URL
8888
value: "http://bcwat.airflow.fspatial"
89+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
90+
value: "21600"
91+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
92+
value: "60"
8993
resources:
9094
requests:
9195
memory: 750Mi

airflow/pod_templates/okd/tiny_task_template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
value: "/opt/airflow/email_templates/content/okd_content.html"
8787
- name: AIRFLOW__API__BASE_URL
8888
value: "http://bcwat.airflow.fspatial"
89+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
90+
value: "21600"
91+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
92+
value: "60"
8993
resources:
9094
requests:
9195
memory: 500Mi

charts/okd/airflow/values.yaml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ logs:
6868
enabled: true
6969
storageClassName: airflow
7070

71+
securityContexts:
72+
pod:
73+
runAsNonRoot: true
74+
containers:
75+
seccompProfile:
76+
type: RuntimeDefault
77+
7178
migrateDatabaseJob:
7279
useHelmHooks: false
7380
env:
@@ -98,6 +105,10 @@ apiServer:
98105
value: "False"
99106
- name: ENVIRONMENT
100107
value: OKD
108+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
109+
value: "21600"
110+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
111+
value: "60"
101112
extraInitContainers:
102113
- name: bcwat-api-init
103114
image: "{{ .Values.migrations.image }}"
@@ -122,41 +133,39 @@ apiServer:
122133
requests:
123134
cpu: 50m
124135
memory: 75Mi
125-
waitForMigrations:
126-
enabled: true
127-
securityContext:
128-
runAsNonRoot: true
129-
seccompProfile:
130-
type: RuntimeDefault
131136
dagProcessor:
132137
env:
133138
- name: ENVIRONMENT
134139
value: OKD
140+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
141+
value: "21600"
142+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
143+
value: "60"
135144

136145
scheduler:
137146
env:
138147
- name: AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION
139148
value: "False"
140149
- name: ENVIRONMENT
141150
value: OKD
151+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
152+
value: "21600"
153+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
154+
value: "60"
142155
waitForMigrations:
143156
enabled: true
144-
securityContext:
145-
runAsNonRoot: true
146-
seccompProfile:
147-
type: RuntimeDefault
148157

149158
triggerer:
150159
env:
151160
- name: AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION
152161
value: "False"
153162
- name: ENVIRONMENT
154163
value: OKD
164+
- name: AIRFLOW__EXECUTION_API__JWT_EXPIRATION_TIME
165+
value: "21600"
166+
- name: AIRFLOW__API_AUTH__JWT_LEEWAY
167+
value: "60"
155168
persistence:
156169
enabled: false
157170
waitForMigrations:
158171
enabled: true
159-
securityContext:
160-
runAsNonRoot: true
161-
seccompProfile:
162-
type: RuntimeDefault

0 commit comments

Comments
 (0)