Skip to content
Closed
43 changes: 43 additions & 0 deletions charts/kyuubi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
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.
-->

# Helm Chart for Apache Kyuubi

[Apache Kyuubi](https://airflow.apache.org/) is a distributed and multi-tenant gateway to provide serverless SQL on Data Warehouses and Lakehouses.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@phyyou phyyou Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll submit new PR soon.



## Introduction

This chart will bootstrap an [Kyuubi](https://kyuubi.apache.org) deployment on a [Kubernetes](http://kubernetes.io)
cluster using the [Helm](https://helm.sh) package manager.

## Requirements

- Kubernetes cluster
- Helm 3.0+

<!-- ## Features -->

## Documentation

Configuration guide documentation for Kyuubi lives [on the website](https://kyuubi.readthedocs.io/en/master/deployment/settings.html#kyuubi-configurations). (Not just for Helm Chart)

## Contributing

Want to help build Apache Kyuubi? Check out our [contributing documentation](https://kyuubi.readthedocs.io/en/master/community/CONTRIBUTING.html).
4 changes: 4 additions & 0 deletions charts/kyuubi/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ In order to check the release status, use:
{{ $name | snakecase | upper }}:
- To access {{ $.Release.Name }}-{{ $name | kebabcase }} service within the cluster, use the following URL:
{{ $.Release.Name }}-{{ $name | kebabcase }}.{{ $.Release.Namespace }}.svc.cluster.local
{{- if $.Values.kyuubiConf.kyuubiDefaults }}
{{- if regexMatch "(^|\\s)kyuubi.frontend.bind.host\\s*=?\\s*(localhost|127\\.0\\.0\\.1)($|\\s)" $.Values.kyuubiConf.kyuubiDefaults }}
- To access {{ $.Release.Name }}-{{ $name | kebabcase }} service from outside the cluster for debugging, run the following command:
kubectl port-forward svc/{{ $.Release.Name }}-{{ $name | kebabcase }} {{ tpl $frontend.service.port $ }}:{{ tpl $frontend.service.port $ }} -n {{ $.Release.Namespace }}
and use 127.0.0.1:{{ tpl $frontend.service.port $ }}
{{- end }}
{{- end }}
{{- if eq $frontend.service.type "NodePort" }}
- To access {{ $.Release.Name }}-{{ $name | kebabcase }} service from outside the cluster through configured NodePort, run the following commands:
export NODE_PORT=$(kubectl get service {{ $.Release.Name }}-{{ $name | kebabcase }} -n {{ $.Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}")
Expand Down
25 changes: 22 additions & 3 deletions charts/kyuubi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,34 @@ server:
kyuubiConfDir: /opt/kyuubi/conf
kyuubiConf:
# 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
# Example:
#
# kyuubiEnv: |
# export JAVA_HOME=/usr/jdk64/jdk1.8.0_152
# export SPARK_HOME=/opt/spark
# export FLINK_HOME=/opt/flink
# export HIVE_HOME=/opt/hive
#
# See example at conf/kyuubi-env.sh.template and https://kyuubi.readthedocs.io/en/master/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
# Example:
#
# kyuubiDefaults: |
# kyuubi.authentication=NONE
# kyuubi.frontend.bind.host=10.0.0.1
# kyuubi.engine.type=SPARK_SQL
# kyuubi.engine.share.level=USER
# kyuubi.session.engine.initialize.timeout=PT3M
# kyuubi.ha.addresses=zk1:2181,zk2:2181,zk3:2181
# kyuubi.ha.namespace=kyuubi
#
# See https://kyuubi.readthedocs.io/en/master/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
# See example at conf/log4j2.xml.template https://kyuubi.readthedocs.io/en/master/deployment/settings.html#logging for more details
log4j2: ~

# Environment variables (templated)
Expand Down
2 changes: 1 addition & 1 deletion docker/kyuubi-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ data:
# kyuubi.frontend.bind.port 10009
#

# Details in https://kyuubi.apache.org/docs/latest/deployment/settings.html
# Details in https://kyuubi.readthedocs.io/en/master/deployment/settings.html