디렉토리 구조 및 각 서비스 추가
This commit is contained in:
74
helm/airflow/templates/configmaps/configmap.yaml
Normal file
74
helm/airflow/templates/configmaps/configmap.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
{{/*
|
||||
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.
|
||||
*/}}
|
||||
|
||||
################################
|
||||
## Airflow ConfigMap
|
||||
#################################
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "airflow_config" . }}
|
||||
labels:
|
||||
tier: airflow
|
||||
component: config
|
||||
release: {{ .Release.Name }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end -}}
|
||||
{{- if .Values.airflowConfigAnnotations }}
|
||||
annotations: {{- toYaml .Values.airflowConfigAnnotations | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- $Global := . }}
|
||||
data:
|
||||
# These are system-specified config overrides.
|
||||
airflow.cfg: |-
|
||||
{{- range $section, $settings := .Values.config }}
|
||||
[{{ $section }}]
|
||||
{{- range $key, $val := $settings }}
|
||||
{{ $key }} = {{ tpl ($val | toString) $Global }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
{{- if .Values.airflowLocalSettings }}
|
||||
airflow_local_settings.py: |-
|
||||
{{- tpl .Values.airflowLocalSettings . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.dags.gitSync.enabled .Values.dags.gitSync.knownHosts }}
|
||||
known_hosts: |-
|
||||
{{- .Values.dags.gitSync.knownHosts | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
{{/* {{- if or (eq $.Values.executor "LocalKubernetesExecutor") (eq $.Values.executor "KubernetesExecutor") (eq $.Values.executor "CeleryKubernetesExecutor") }}*/}}
|
||||
{{/* {{- if semverCompare ">=1.10.12" .Values.airflowVersion }}*/}}
|
||||
pod_template_file.yaml: |-
|
||||
{{- if .Values.podTemplate }}
|
||||
{{- tpl .Values.podTemplate . | nindent 4 }}
|
||||
{{- else }}
|
||||
{{- tpl (.Files.Get "files/pod-template-file.kubernetes-helm-yaml") . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{/* {{- end }}*/}}
|
||||
{{/* {{- end }}*/}}
|
||||
|
||||
{{- if .Values.kerberos.enabled }}
|
||||
krb5.conf: |-
|
||||
{{- tpl .Values.kerberos.config . | nindent 4 }}
|
||||
{{- end }}
|
||||
53
helm/airflow/templates/configmaps/extra-configmaps.yaml
Normal file
53
helm/airflow/templates/configmaps/extra-configmaps.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
{{/*
|
||||
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.
|
||||
*/}}
|
||||
|
||||
####################################################
|
||||
## Extra ConfigMaps provisioned via the chart values
|
||||
####################################################
|
||||
{{- $Global := . }}
|
||||
{{- range $configMapName, $configMapContent := .Values.extraConfigMaps }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ tpl $configMapName $Global | quote }}
|
||||
labels:
|
||||
release: {{ $Global.Release.Name }}
|
||||
chart: "{{ $Global.Chart.Name }}-{{ $Global.Chart.Version }}"
|
||||
heritage: {{ $Global.Release.Service }}
|
||||
{{- with $Global.Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $configMapContent.labels }}
|
||||
{{- toYaml $configMapContent.labels | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||
"helm.sh/hook-delete-policy": "before-hook-creation"
|
||||
"helm.sh/hook-weight": "0"
|
||||
{{- if $configMapContent.annotations }}
|
||||
{{- toYaml $configMapContent.annotations | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $configMapContent.data }}
|
||||
data:
|
||||
{{- with $configMapContent.data }}
|
||||
{{- tpl . $Global | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
52
helm/airflow/templates/configmaps/statsd-configmap.yaml
Normal file
52
helm/airflow/templates/configmaps/statsd-configmap.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
{{/*
|
||||
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.
|
||||
*/}}
|
||||
|
||||
################################
|
||||
## Airflow StatsD ConfigMap
|
||||
#################################
|
||||
{{- if and .Values.statsd.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "airflow.fullname" . }}-statsd
|
||||
labels:
|
||||
tier: airflow
|
||||
component: config
|
||||
release: {{ .Release.Name }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.statsd.configMapAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
mappings.yml: |-
|
||||
{{- if .Values.statsd.overrideMappings }}
|
||||
mappings:
|
||||
{{- toYaml .Values.statsd.overrideMappings | nindent 6 }}
|
||||
{{- else }}
|
||||
{{- .Files.Get "files/statsd-mappings.yml" | nindent 4 }}
|
||||
{{- if .Values.statsd.extraMappings }}
|
||||
{{- toYaml .Values.statsd.extraMappings | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
44
helm/airflow/templates/configmaps/webserver-configmap.yaml
Normal file
44
helm/airflow/templates/configmaps/webserver-configmap.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
{{/*
|
||||
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.
|
||||
*/}}
|
||||
|
||||
################################
|
||||
## Airflow ConfigMap
|
||||
#################################
|
||||
{{- if and .Values.webserver.webserverConfig (not .Values.webserver.webserverConfigConfigMapName) }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "airflow_webserver_config_configmap_name" . }}
|
||||
labels:
|
||||
tier: airflow
|
||||
component: config
|
||||
release: {{ .Release.Name }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
heritage: {{ .Release.Service }}
|
||||
{{- with .Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.webserver.configMapAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
webserver_config.py: |-
|
||||
{{- tpl .Values.webserver.webserverConfig . | nindent 4 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user