[stable/airflow]: pass through annotations to service-web and service-flower (#14222)

- Added airflow.service.annotations and airflow.service.externalPort

- Added flower.service.{annotations,type,externalPort}

- Above decouples service-web and service-flower configuration

Signed-off-by: Jonathan Miles <jonathan.miles@thetradedesk.com>
This commit is contained in:
Jonathan Miles
2019-05-28 14:59:45 -07:00
committed by Kubernetes Prow Robot
parent 2551d5f3e4
commit a7baff7cde
5 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Airflow is a platform to programmatically author, schedule and monitor workflows
name: airflow
version: 2.8.2
version: 2.8.3
appVersion: 1.10.2
icon: https://airflow.apache.org/_images/pin_large.png
home: https://airflow.apache.org/
+8 -1
View File
@@ -295,7 +295,9 @@ The following table lists the configurable parameters of the Airflow chart and t
| Parameter | Description | Default |
|------------------------------------------|---------------------------------------------------------|---------------------------|
| `airflow.fernetKey` | Ferney key (see `values.yaml` for example) | (auto generated) |
| `airflow.service.type` | services type | `ClusterIP` |
| `airflow.service.type` | service type for Airflow UI | `ClusterIP` |
| `airflow.service.annotations` | (optional) service annotations for Airflow UI | `{}` |
| `airflow.service.externalPort` | (optional) external port for Airflow UI | `8080` |
| `airflow.executor` | the executor to run | `Celery` |
| `airflow.initRetryLoop` | max number of retries during container init | |
| `airflow.image.repository` | Airflow docker image | `puckel/docker-airflow` |
@@ -313,6 +315,9 @@ The following table lists the configurable parameters of the Airflow chart and t
| `airflow.extraVolumeMounts` | additional volumeMounts to the main container in scheduler, worker & web pods | `[]`|
| `airflow.extraVolumes` | additional volumes for the scheduler, worker & web pods | `[]` |
| `flower.resources` | custom resource configuration for flower pod | `{}` |
| `flower.service.type` | service type for Flower UI | `ClusterIP` |
| `flower.service.annotations` | (optional) service annotations for Flower UI | `{}` |
| `flower.service.externalPort` | (optional) external port for Flower UI | `5555` |
| `web.resources` | custom resource configuration for web pod | `{}` |
| `web.initialStartupDelay` | amount of time webserver pod should sleep before initializing webserver | `60` |
| `web.initialDelaySeconds` | initial delay on livenessprobe before checking if webserver is available | `360` |
@@ -392,3 +397,5 @@ Full and up-to-date documentation can be found in the comments of the `values.ya
### To 2.0.0
The parameter `workers.pod.annotations` has been renamed to `workers.podAnnotations`. If using a
custom values file, rename this parameter.
### To 2.8.3+
The parameter `airflow.service.type` no longer applies to the Flower service, but the default of `ClusterIP` has been maintained. If using a custom values file and have changed the service type, also specify `flower.service.type`.
+7 -2
View File
@@ -9,8 +9,12 @@ metadata:
chart: {{ template "airflow.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if .Values.flower.service.annotations }}
{{ toYaml .Values.flower.service.annotations | trim | indent 4 }}
{{- end }}
spec:
type: {{ .Values.airflow.service.type }}
type: {{ .Values.flower.service.type | default "ClusterIP" }}
selector:
app: {{ template "airflow.name" . }}
component: flower
@@ -18,5 +22,6 @@ spec:
ports:
- name: flower
protocol: TCP
port: 5555
port: {{ .Values.flower.service.externalPort | default 5555 }}
targetPort: 5555
{{- end }}
+6 -1
View File
@@ -8,6 +8,10 @@ metadata:
chart: {{ template "airflow.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if .Values.airflow.service.annotations }}
{{ toYaml .Values.airflow.service.annotations | trim | indent 4 }}
{{- end }}
spec:
type: {{ .Values.airflow.service.type }}
selector:
@@ -17,4 +21,5 @@ spec:
ports:
- name: web
protocol: TCP
port: 8080
port: {{ .Values.airflow.service.externalPort | default 8080 }}
targetPort: 8080
+6
View File
@@ -59,7 +59,9 @@ airflow:
## fernetKey: ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD
fernetKey: ""
service:
annotations: {}
type: ClusterIP
externalPort: 8080
##
## The executor to use.
##
@@ -194,6 +196,10 @@ flower:
# requests:
# cpu: "100m"
# memory: "128Mi"
service:
annotations: {}
type: ClusterIP
externalPort: 5555
web:
resources: {}