Skip to content

Commit dcf1243

Browse files
committed
2 parents b190f6c + 566c02a commit dcf1243

4 files changed

Lines changed: 121 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
credential:
2+
{{ if (eq .Values.service.type "LoadBalancer") }}
3+
- name: EXTERNAL_WEB_HOST
4+
valueFrom:
5+
serviceRef:
6+
name: {{ include "common.names.fullname" . }}
7+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
8+
{{- end }}
9+
10+
- name: WEB_HOST
11+
valueFrom:
12+
serviceRef:
13+
name: {{ include "common.names.fullname" . }}
14+
jsonpath: '{ .spec.clusterIP }'
15+
16+
- name: WEB_PORT
17+
valueFrom:
18+
serviceRef:
19+
name: {{ include "common.names.fullname" . }}
20+
jsonpath: '{ .spec.ports[?(@.name=="http")].port }'
21+
22+
- name: USER
23+
value: {{ .Values.auth.username }}
24+
25+
{{- if (not .Values.auth.existingSecret) }}
26+
- name: AIRFLOW_PASSWORD
27+
valueFrom:
28+
secretKeyRef:
29+
name: {{ include "common.names.fullname" . }}
30+
jsonpath: '{ .data.airflow-password }'
31+
32+
- name: AIRFLOW_FERNET_KEY
33+
valueFrom:
34+
secretKeyRef:
35+
name: {{ include "common.names.fullname" . }}
36+
jsonpath: '{ .data.airflow-fernet-key }'
37+
38+
- name: AIRFLOW_SECRET_KEY
39+
valueFrom:
40+
secretKeyRef:
41+
name: {{ include "common.names.fullname" . }}
42+
jsonpath: '{ .data.airflow-secret-key }'
43+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-6w25c64g"
2+
id: 7c2b2252-c405-4bfc-ab48-4b2fa4d5c64f
3+
description: "airflow standard-6w25c64g plan which limit resources 6 workers per worker 25 cores memory size 64Gi."
4+
displayName: "standard-6w25c64g"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: hb-airflow-standard-6w25c64g
4+
5+
## @section Airflow web parameters
6+
7+
web:
8+
## @param web.replicaCount Number of Airflow web replicas
9+
##
10+
replicaCount: 1
11+
## Airflow web resource requests and limits
12+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
13+
## @param web.resources.limits The resources limits for the Airflow web containers
14+
## @param web.resources.requests The requested resources for the Airflow web containers
15+
##
16+
resources:
17+
limits:
18+
cpu: 4
19+
memory: 8Gi
20+
requests:
21+
cpu: 2
22+
memory: 4Gi
23+
24+
## @section Airflow scheduler parameters
25+
26+
scheduler:
27+
## @param scheduler.replicaCount Number of scheduler replicas
28+
##
29+
replicaCount: 1
30+
## Airflow scheduler resource requests and limits
31+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
32+
## @param scheduler.resources.limits The resources limits for the Airflow scheduler containers
33+
## @param scheduler.resources.requests The requested resources for the Airflow scheduler containers
34+
##
35+
resources:
36+
limits:
37+
cpu: 4
38+
memory: 8Gi
39+
requests:
40+
cpu: 2
41+
memory: 4Gi
42+
43+
## @section Airflow worker parameters
44+
45+
worker:
46+
## @param worker.replicaCount Number of Airflow worker replicas
47+
##
48+
replicaCount: 6
49+
## Airflow worker resource requests and limits
50+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
51+
## @param worker.resources.limits The resources limits for the Airflow worker containers
52+
## @param worker.resources.requests The requested resources for the Airflow worker containers
53+
##
54+
resources:
55+
limits:
56+
cpu: 25
57+
memory: 64Gi
58+
requests:
59+
cpu: 12
60+
memory: 32Gi

0 commit comments

Comments
 (0)