Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Production Helm chart support #8777

Merged
merged 27 commits into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a274a85
Add helm chart
schnie May 8, 2020
6ff4d0b
Remove bin directory
schnie May 22, 2020
2771cd7
Update chart/values.yaml
schnie May 16, 2020
47f2fb0
Remove Ingress in favor of optional webserver service type
schnie Jun 2, 2020
310e756
Remove HPA
schnie Jun 2, 2020
ddb2314
Make flower service type configurable
schnie Jun 2, 2020
b1fe4c1
Fix up README
schnie Jun 3, 2020
d7cd739
Don't try to run yamllint on Helm chart template files
ashb Jun 3, 2020
3fdb5fc
Update chart/values.yaml
ashb Jun 3, 2020
0e76fe4
Update chart/values.yaml
ashb Jun 3, 2020
182b324
Update chart/values.yaml
ashb Jun 3, 2020
5f0c7e0
fixup! Update chart/values.yaml
ashb Jun 3, 2020
16a7fa0
Add license to helm chart files
ashb Jun 3, 2020
0618093
fixup! Add license to helm chart files
ashb Jun 3, 2020
37ad712
Remove old ES configs
schnie Jun 3, 2020
1a190ff
Add helm dep update step to README
schnie Jun 3, 2020
a62fa73
Support running helm chart with 1.10.10 or master branch
ashb Jun 5, 2020
5a25a34
Airflow 1.10.10 doesn't have any `db check-migrations` sub command
ashb Jun 5, 2020
c7fab4b
Update chart/templates/_helpers.yaml
ashb Jun 5, 2020
498ab95
Add step to add helm stable repo to readme
schnie Jun 5, 2020
7e5996e
fixup! Airflow 1.10.10 doesn't have any `db check-migrations` sub com…
ashb Jun 5, 2020
573b367
Switch to use apache/airflow images
ashb Jun 5, 2020
5f49078
Update to latest tag of support images
ashb Jun 15, 2020
f3e2b6b
Update README.md
kaxil Jun 17, 2020
4932aa7
Fixes
kaxil Jun 17, 2020
4f4cf87
Use Python 3.6 image by default
kaxil Jun 17, 2020
e9f106e
Use correct path to /clean-logs
kaxil Jun 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ metastore_browser/templates/.*\\.html$|.*\\.jinja2"
name: Check yaml files with yamllint
entry: yamllint -c yamllint-config.yml
types: [yaml]
exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$
exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$|^chart/templates/.*\.yaml$
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21-2
hooks:
Expand Down
9 changes: 9 additions & 0 deletions chart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# User overrides
config.yaml
config.yml

# Build dir
repository

# Chart dependencies
**/charts/*.tgz
39 changes: 39 additions & 0 deletions chart/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
bin
25 changes: 25 additions & 0 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# apiVersion v1 is Helm 2
apiVersion: v1
name: airflow
version: 1.0.0
description: Helm chart to deploy Apache Airflow
icon: https://www.astronomer.io/static/airflowNewA.png
keywords:
- airflow
269 changes: 269 additions & 0 deletions chart/README.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions chart/requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: postgresql
repository: https://kubernetes-charts.storage.googleapis.com
version: 6.3.12
digest: sha256:1750ddcc948f15716d157d6a854b59e37571473b2a3390a3673b224b71a56308
generated: "2019-10-24T16:03:26.569269284-04:00"
22 changes: 22 additions & 0 deletions chart/requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

dependencies:
- name: postgresql
version: 6.3.12
repository: "@stable"
condition: postgresql.enabled
29 changes: 29 additions & 0 deletions chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

*/}}Thank you for installing Airflow!

Your release is named {{ .Release.Name }}.

You can now access your dashboard(s) by executing the following command(s) and visiting the corresponding port at localhost in your browser:

Airflow dashboard: kubectl port-forward svc/{{ .Release.Name }}-webserver {{ .Values.ports.airflowUI }}:{{ .Values.ports.airflowUI }}
{{- if eq .Values.executor "CeleryExecutor"}}
Flower dashboard: kubectl port-forward svc/{{ .Release.Name }}-flower {{ .Values.ports.flowerUI }}:{{ .Values.ports.flowerUI }}

{{- end }}
Loading