Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP][Addon #579] Add Apache Kyuubi as a experimental addon #647

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
37 changes: 37 additions & 0 deletions experimental/addons/kyuubi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# kyuubi

Apache Kyuubi is a distributed and multi-tenant gateway to provide serverless SQL on data warehouses and lakehouses.

For more information about Apache Kyuubi, please see the Apache Kyuubi documentation: https://kyuubi.readthedocs.io/en/master/.

## Install

Add experimental registry

```
vela addon registry add experimental --type=helm --endpoint=https://addons.kubevela.net/experimental/
```

Enable this addon

```
vela addon enable fluxcd
vela addon enable kyuubi
```

Uninstall

```
vela addon disable kyuubi
```

# To check the kyuubi running status

* Firstly, check the kyuubi(and the fluxcd and we need to deploy by helm) running status:

```
vela addon status kyuubi
vela ls -A | grep kyuubi
```


14 changes: 14 additions & 0 deletions experimental/addons/kyuubi/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: A distributed and multi-tenant gateway to provide serverless SQL on lakehouses.
icon: "https://raw.githubusercontent.com/apache/kyuubi/master/docs/imgs/logo.png"
invisible: false
name: kyuubi
tags:
- apache/kyuubi
version: 1.6
url: https://github.com/apache/kyuubi

dependencies:
- name: fluxcd

system:
vela: ">=1.5.0-beta.3"
16 changes: 16 additions & 0 deletions experimental/addons/kyuubi/parameter.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// parameter.cue is used to store addon parameters.
//
// You can use these parameters in template.cue or in resources/ by 'parameter.myparam'
//
// For example, you can use parameters to allow the user to customize
// container images, ports, and etc.
parameter: {
// +usage=Deploy to specified clusters. Leave empty to deploy to all clusters.
clusters?: [...string]
// +usage=Namespace to deploy to
namespace: *"kyuubi-ns" | string
// +usage=Specify the image repository
"imageRepository": *"apache/kyuubi" | string
// +usage=Specify the image tag
"imageTag": *"" | string
}
40 changes: 40 additions & 0 deletions experimental/addons/kyuubi/template.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package main
output: {
apiVersion: "core.oam.dev/v1beta1"
kind: "Application"
spec: {
components: [{
type: "k8s-objects"
name: "kyuubi-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: parameter.namespace
}]
},
{
name: "kyuubi-helm"
type: "helm"
dependsOn: ["kyuubi-ns"]
properties: {
repoType: "helm"
url: "https://awesome-kyuubi.github.io/kyuubi-helm-chart/"
chart: "kyuubi"
targetNamespace: parameter["namespace"]
version: "0.1.0"
values: {
image: {
repository: parameter["imageRepository"]
tag: parameter["imageTag"]
},
kyuubiConf: {
kyuubiDefaults: """
spark.master=local
"""
}
}
}
}]
policies: []
}
}