Skip to content

Commit 66e7382

Browse files
schnieashb
andauthored
Add Production Helm chart support (#8777)
Co-authored-by: Ash Berlin-Taylor <[email protected]>
1 parent 6a9c436 commit 66e7382

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3845
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ metastore_browser/templates/.*\\.html$|.*\\.jinja2"
166166
name: Check yaml files with yamllint
167167
entry: yamllint -c yamllint-config.yml
168168
types: [yaml]
169-
exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$
169+
exclude: ^.*init_git_sync\.template\.yaml$|^.*airflow\.template\.yaml$|^chart/templates/.*\.yaml$
170170
- repo: https://github.com/timothycrosley/isort
171171
rev: 4.3.21-2
172172
hooks:

chart/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# User overrides
2+
config.yaml
3+
config.yml
4+
5+
# Build dir
6+
repository
7+
8+
# Chart dependencies
9+
**/charts/*.tgz

chart/.helmignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Patterns to ignore when building packages.
19+
# This supports shell glob matching, relative path matching, and
20+
# negation (prefixed with !). Only one pattern per line.
21+
.DS_Store
22+
# Common VCS dirs
23+
.git/
24+
.gitignore
25+
.bzr/
26+
.bzrignore
27+
.hg/
28+
.hgignore
29+
.svn/
30+
# Common backup files
31+
*.swp
32+
*.bak
33+
*.tmp
34+
*~
35+
# Various IDEs
36+
.project
37+
.idea/
38+
*.tmproj
39+
bin

chart/Chart.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# apiVersion v1 is Helm 2
19+
apiVersion: v1
20+
name: airflow
21+
version: 1.0.0
22+
description: Helm chart to deploy Apache Airflow
23+
icon: https://www.astronomer.io/static/airflowNewA.png
24+
keywords:
25+
- airflow

chart/README.md

Lines changed: 269 additions & 0 deletions
Large diffs are not rendered by default.

chart/requirements.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: postgresql
3+
repository: https://kubernetes-charts.storage.googleapis.com
4+
version: 6.3.12
5+
digest: sha256:1750ddcc948f15716d157d6a854b59e37571473b2a3390a3673b224b71a56308
6+
generated: "2019-10-24T16:03:26.569269284-04:00"

chart/requirements.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
dependencies:
19+
- name: postgresql
20+
version: 6.3.12
21+
repository: "@stable"
22+
condition: postgresql.enabled

chart/templates/NOTES.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
19+
*/}}Thank you for installing Airflow!
20+
21+
Your release is named {{ .Release.Name }}.
22+
23+
You can now access your dashboard(s) by executing the following command(s) and visiting the corresponding port at localhost in your browser:
24+
25+
Airflow dashboard: kubectl port-forward svc/{{ .Release.Name }}-webserver {{ .Values.ports.airflowUI }}:{{ .Values.ports.airflowUI }}
26+
{{- if eq .Values.executor "CeleryExecutor"}}
27+
Flower dashboard: kubectl port-forward svc/{{ .Release.Name }}-flower {{ .Values.ports.flowerUI }}:{{ .Values.ports.flowerUI }}
28+
29+
{{- end }}

0 commit comments

Comments
 (0)