-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Helm chart for deploying Zeppelin on Kubernetes
Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,185 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v2 | ||
|
||
name: zeppelin | ||
|
||
description: A Helm chart for deploying Apache Zeppelin on Kubernetes. | ||
|
||
type: application | ||
|
||
version: 0.1.0 | ||
|
||
appVersion: 0.11.2 | ||
|
||
maintainers: | ||
- name: ChenYi015 | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# zeppelin | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.11.2](https://img.shields.io/badge/AppVersion-0.11.2-informational?style=flat-square) | ||
|
||
A Helm chart for deploying Apache Zeppelin on Kubernetes. | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| nameOverride | string | `""` | String to partially override release name. | | ||
| fullnameOverride | string | `""` | String to fully override release name. | | ||
| global.image.registry | string | `"docker.io"` | Image registry. | | ||
| global.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. | | ||
| global.image.pullSecrets | list | `[]` | Image pull secrets for private image registry. | | ||
| server.image.registry | string | If not set, `global.image.registry` will be used. | Zeppelin server image registry. | | ||
| server.image.repository | string | `"apache/zeppelin"` | Zeppelin server image repository. | | ||
| server.image.tag | string | If not set, the chart appVersion will be used. | Zeppelin image tag. | | ||
| server.serviceAccount.create | bool | `true` | Specifies whether a service account should be created for the Zeppelin server. | | ||
| server.serviceAccount.name | string | `""` | Optional name for the Zeppelin server service account. | | ||
| server.serviceAccount.annotations | object | `{}` | Extra annotations for the Zeppelin server service account. | | ||
| interpreter.image.registry | string | If not set, `global.image.registry` will be used. | Zeppelin interpreter image registry. | | ||
| interpreter.image.repository | string | `"apache/zeppelin-interpreter"` | Zeppelin interpreter image repository. | | ||
| interpreter.image.tag | string | If not set, the chart appVersion will be used. | Zeppelin interpreter image tag. | | ||
| interpreter.serviceAccount.serviceAccount | string | `nil` | | | ||
| interpreter.serviceAccount.create | bool | `true` | Specifies whether a service account should be created for the Zeppelin interpreter. | | ||
| interpreter.serviceAccount.name | string | `""` | Optional name for the Zeppelin interpreter service account. | | ||
| interpreter.serviceAccount.annotations | object | `{}` | Extra annotations for the Zeppelin interpreter service account. | | ||
| spark.image.registry | string | If not set, `global.image.registry` will be used. | Spark image registry. | | ||
| spark.image.repository | string | `"spark"` | Spark image repository. | | ||
| spark.image.tag | string | `"3.5.3"` | Spark image tag. | | ||
| replicas | int | `1` | | | ||
| labels | object | `{}` | Extra labels for controller pods. | | ||
| annotations | object | `{}` | Extra annotations for controller pods. | | ||
| volumes | list | `[]` | Volumes for controller pods. | | ||
| nodeSelector | object | `{}` | Node selector for controller pods. | | ||
| affinity | object | `{}` | Affinity for controller pods. | | ||
| tolerations | list | `[]` | List of node taints to tolerate for controller pods. | | ||
| priorityClassName | string | `""` | Priority class for controller pods. | | ||
| podSecurityContext | object | `{}` | Security context for controller pods. | | ||
| env | list | `[]` | Environment variables for controller containers. | | ||
| envFrom | list | `[]` | Environment variable sources for controller containers. | | ||
| volumeMounts | list | `[]` | Volume mounts for controller containers. | | ||
| resources | object | `{}` | Pod resource requests and limits for controller containers. | | ||
| securityContext | object | `{}` | Security context for controller containers. | | ||
| service.type | string | `"ClusterIP"` | | | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| ChenYi015 | <[email protected]> | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ template "chart.header" . }} | ||
|
||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.badgesSection" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "zeppelin.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "zeppelin.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "zeppelin.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "zeppelin.labels" -}} | ||
helm.sh/chart: {{ include "zeppelin.chart" . }} | ||
{{ include "zeppelin.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "zeppelin.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "zeppelin.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the configmap to use | ||
*/}} | ||
{{- define "zeppelin.configMapName" -}} | ||
{{- include "zeppelin.fullname" . }}-conf | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the nginx configmap to use | ||
*/}} | ||
{{- define "zeppelin.nginxConfigMapName" -}} | ||
{{- include "zeppelin.fullname" . }}-nginx-conf | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the Zeppelin image to use | ||
*/}} | ||
{{- define "zeppelin.server.image" -}} | ||
{{- $imageRegistry := .Values.server.image.registry | default .Values.global.image.registry | default "docker.io" }} | ||
{{- $imageRepository := .Values.server.image.repository | default "apache/zeppelin" }} | ||
{{- $imageTag := .Values.server.image.tag | default "latest" }} | ||
{{- printf "%s/%s:%s" $imageRegistry $imageRepository $imageTag }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the Zeppelin interpreter image to use | ||
*/}} | ||
{{- define "zeppelin.interpreter.image" -}} | ||
{{- $imageRegistry := .Values.interpreter.image.registry | default .Values.global.image.registry | default "docker.io" }} | ||
{{- $imageRepository := .Values.interpreter.image.repository | default "apache/zeppelin" }} | ||
{{- $imageTag := .Values.interpreter.image.tag | default "latest" }} | ||
{{- printf "%s/%s:%s" $imageRegistry $imageRepository $imageTag }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the Spark image to use | ||
*/}} | ||
{{- define "zeppelin.spark.image" -}} | ||
{{- $imageRegistry := .Values.spark.image.registry | default .Values.global.image.registry | default "docker.io" }} | ||
{{- $imageRepository := .Values.spark.image.repository | default "spark" }} | ||
{{- $imageTag := .Values.spark.image.tag | default "latest" }} | ||
{{- printf "%s/%s:%s" $imageRegistry $imageRepository $imageTag }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{{/* | ||
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. | ||
*/}} | ||
|
||
{{/* | ||
Create the name of Zeppelin interpreter. | ||
*/}} | ||
{{- define "zeppelin.interpreter.name" -}} | ||
{{- include "zeppelin.fullname" . }}-interpreter | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the service account for Zeppelin interpreter. | ||
*/}} | ||
{{- define "zeppelin.interpreter.serviceAccountName" -}} | ||
{{- if .Values.interpreter.serviceAccount.create }} | ||
{{- default (include "zeppelin.interpreter.name" .) .Values.interpreter.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.interpreter.serviceAccount.name }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the role for Zeppelin interpreter. | ||
*/}} | ||
{{- define "zeppelin.interpreter.roleName" -}} | ||
{{- include "zeppelin.interpreter.serviceAccountName" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the role binding for Zeppelin interpreter. | ||
*/}} | ||
{{- define "zeppelin.interpreter.roleBindingName" -}} | ||
{{- include "zeppelin.interpreter.serviceAccountName" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the config map for Zeppelin interpreter. | ||
*/}} | ||
{{- define "zeppelin.interpreter.configMapName" -}} | ||
{{- include "zeppelin.interpreter.name" . }}-conf | ||
{{- end -}} |
Oops, something went wrong.