File tree 3 files changed +72
-0
lines changed
3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{/*
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ 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, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */}}
17
+
18
+ apiVersion : v1
19
+ kind : ConfigMap
20
+ metadata :
21
+ name : {{ .Release.Name }}-hadoop
22
+ labels :
23
+ {{- include "kyuubi.labels" . | nindent 4 }}
24
+ data :
25
+ {{- with .Values.hadoopConf.files }}
26
+ {{- tpl (toYaml .) $ | nindent 2 }}
27
+ {{- end }}
Original file line number Diff line number Diff line change 39
39
{{- include "kyuubi.selectorLabels" . | nindent 8 }}
40
40
annotations :
41
41
checksum/conf : {{ include (print $.Template.BasePath "/kyuubi-configmap.yaml") . | sha256sum }}
42
+ checksum/conf-hadoop : {{ include (print $.Template.BasePath "/kyuubi-hadoop-configmap.yaml") . | sha256sum }}
42
43
spec :
43
44
{{- with .Values.imagePullSecrets }}
44
45
imagePullSecrets : {{- toYaml . | nindent 8 }}
79
80
env :
80
81
- name : KYUUBI_CONF_DIR
81
82
value : {{ .Values.kyuubiConf.dir }}
83
+ - name : HADOOP_CONF_DIR
84
+ value : {{ .Values.hadoopConf.dir }}
82
85
- name : SPARK_CONF_DIR
83
86
value : {{ .Values.sparkConf.dir }}
84
87
{{- with .Values.env }}
@@ -124,6 +127,8 @@ spec:
124
127
volumeMounts :
125
128
- name : conf
126
129
mountPath : {{ .Values.kyuubiConf.dir }}
130
+ - name : conf-hadoop
131
+ mountPath : {{ .Values.hadoopConf.dir }}
127
132
- name : conf-spark
128
133
mountPath : {{ .Values.sparkConf.dir }}
129
134
{{- with .Values.volumeMounts }}
@@ -141,6 +146,14 @@ spec:
141
146
{{- with .Values.kyuubiConf.filesFrom }}
142
147
{{- tpl (toYaml .) $ | nindent 14 }}
143
148
{{- end }}
149
+ - name : conf-hadoop
150
+ projected :
151
+ sources :
152
+ - configMap :
153
+ name : {{ .Release.Name }}-hadoop
154
+ {{- with .Values.hadoopConf.filesFrom }}
155
+ {{- tpl (toYaml .) $ | nindent 14 }}
156
+ {{- end }}
144
157
- name : conf-spark
145
158
projected :
146
159
sources :
Original file line number Diff line number Diff line change @@ -171,6 +171,38 @@ kyuubiConf:
171
171
# - key: trust-store
172
172
# path: certs/truststore.jks
173
173
174
+ # Hadoop configuration files
175
+ hadoopConf :
176
+ # $HADOOP_CONF_DIR directory
177
+ dir : /opt/hadoop/conf
178
+ # Configuration files from the specified keys (file name) and values (file content)
179
+ files : ~
180
+ # files:
181
+ # 'core-site.xml': |
182
+ # <?xml version="1.0"?>
183
+ # <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
184
+ # <configuration>
185
+ # <property>
186
+ # <name>hadoop.tmp.dir</name>
187
+ # <value>/tmp/hadoop-${user.name}</value>
188
+ # </property>
189
+ # </configuration>
190
+
191
+ # Configuration files from the list of existing ConfigMaps and Secrets
192
+ filesFrom : []
193
+ # filesFrom:
194
+ # - configMap:
195
+ # name: hadoop-configs
196
+ # - secret:
197
+ # name: hadoop-secrets
198
+ # - secret:
199
+ # name: ssl-secrets
200
+ # items:
201
+ # - key: key-store
202
+ # path: certs/keystore.jks
203
+ # - key: trust-store
204
+ # path: certs/truststore.jks
205
+
174
206
# Spark configuration, see https://github.com/apache/spark/tree/master/conf and Spark documentation for more details
175
207
sparkConf :
176
208
# $SPARK_CONF_DIR directory
You can’t perform that action at this time.
0 commit comments