Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 15 additions & 24 deletions docker/helm/templates/kyuubi-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,30 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-kyuubi-defaults
name: {{ .Release.Name }}
labels:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
{{- with .Values.server.conf.kyuubiEnv }}
kyuubi-env.sh: |
#!/usr/bin/env bash
{{- tpl . $ | nindent 4 }}
{{- end }}
kyuubi-defaults.conf: |
#
# 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.
#
## Kyuubi Configurations
#
# kyuubi.authentication NONE
#
## Helm chart provided Kyuubi configurations
kyuubi.frontend.bind.host={{ .Values.server.bind.host }}
kyuubi.frontend.bind.port={{ .Values.server.bind.port }}
kyuubi.kubernetes.namespace={{ .Release.Namespace }}
# Details in https://kyuubi.apache.org/docs/latest/deployment/settings.html
## User provided Kyuubi configurations
{{- with .Values.server.conf.kyuubiDefaults }}
{{- tpl . $ | nindent 4 }}
{{- end }}
{{- with .Values.server.conf.log4j2 }}
log4j2.xml: |
{{- tpl . $ | nindent 4 }}
{{- end }}
10 changes: 6 additions & 4 deletions docker/helm/templates/kyuubi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
labels:
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
checksum/conf: {{ include (print $.Template.BasePath "/kyuubi-configmap.yaml") . | sha256sum }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets: {{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -79,12 +81,12 @@ spec:
resources: {{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: kyuubi-defaults
mountPath: {{ .Values.server.conf.mountPath }}
- name: conf
mountPath: {{ .Values.server.confDir }}
volumes:
- name: kyuubi-defaults
- name: conf
configMap:
name: {{ .Release.Name }}-kyuubi-defaults
name: {{ .Release.Name }}
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
13 changes: 12 additions & 1 deletion docker/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,19 @@ server:
bind:
host: 0.0.0.0
port: 10009
confDir: /opt/kyuubi/conf
conf:
mountPath: /opt/kyuubi/conf
# The value (templated string) is used for kyuubi-env.sh file
# See https://kyuubi.apache.org/docs/latest/deployment/settings.html#environments for more details
kyuubiEnv: ~

# The value (templated string) is used for kyuubi-defaults.conf file
# See https://kyuubi.apache.org/docs/latest/deployment/settings.html#kyuubi-configurations for more details
kyuubiDefaults: ~

# The value (templated string) is used for log4j2.xml file
# See https://kyuubi.apache.org/docs/latest/deployment/settings.html#logging for more details
log4j2: ~

# Environment variables (templated)
env: []
Expand Down