Skip to content

Commit

Permalink
Add combined kubedb chart (#238)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Feb 13, 2021
1 parent d3bdf52 commit 25988b0
Show file tree
Hide file tree
Showing 12 changed files with 232 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kubedb-autoscaler/README.md
Expand Up @@ -39,6 +39,7 @@ $ helm delete kubedb-autoscaler -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `kubedb-autoscaler` chart and their default values.
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-catalog/README.md
Expand Up @@ -39,6 +39,7 @@ $ helm delete kubedb-catalog -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `kubedb-catalog` chart and their default values.
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-community/README.md
Expand Up @@ -39,6 +39,7 @@ $ helm delete kubedb-community -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `kubedb-community` chart and their default values.
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedb-crds/README.md
Expand Up @@ -39,3 +39,5 @@ $ helm delete kubedb-crds -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.


1 change: 1 addition & 0 deletions charts/kubedb-enterprise/README.md
Expand Up @@ -39,6 +39,7 @@ $ helm delete kubedb-enterprise -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `kubedb-enterprise` chart and their default values.
Expand Down
23 changes: 23 additions & 0 deletions charts/kubedb/.helmignore
@@ -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/
30 changes: 30 additions & 0 deletions charts/kubedb/Chart.yaml
@@ -0,0 +1,30 @@
apiVersion: v2
name: kubedb
description: 'KubeDB by AppsCode - Production ready databases on Kubernetes'
type: application
version: v0.1.0
appVersion: v0.1.0
home: https://kubedb.com
icon: https://cdn.appscode.com/images/products/kubedb/kubedb-icon.png
sources:
- https://github.com/kubedb
maintainers:
- name: appscode
email: support@appscode.com
dependencies:
- name: kubedb-community
version: v0.16.2
repository: https://charts.appscode.com/stable
condition: kubedb-community.enabled
- name: kubedb-catalog
version: v0.16.2
repository: https://charts.appscode.com/stable
condition: kubedb-catalog.enabled
- name: kubedb-enterprise
version: v0.3.2
repository: https://charts.appscode.com/stable
condition: kubedb-enterprise.enabled
- name: kubedb-autoscaler
version: v0.1.2
repository: https://charts.appscode.com/stable
condition: kubedb-autoscaler.enabled
69 changes: 69 additions & 0 deletions charts/kubedb/README.md
@@ -0,0 +1,69 @@
# KubeDB

[KubeDB by AppsCode](https://github.com/kubedb) - Making running production-grade databases easy on Kubernetes

## TL;DR;

```console
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install kubedb appscode/kubedb -n kube-system
```

## Introduction

This chart deploys a KubeDB operator on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

## Prerequisites

- Kubernetes 1.16+

## Installing the Chart

To install the chart with the release name `kubedb`:

```console
$ helm install kubedb appscode/kubedb -n kube-system
```

The command deploys a KubeDB operator on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.

> **Tip**: List all releases using `helm list`
## Uninstalling the Chart

To uninstall/delete the `kubedb`:

```console
$ helm delete kubedb -n kube-system
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `kubedb` chart and their default values.

| Parameter | Description | Default |
|---------------------------|-------------|---------|
| kubedb-community.enabled | | `true` |
| kubedb-community.license | | `""` |
| kubedb-catalog.enabled | | `false` |
| kubedb-enterprise.enabled | | `true` |
| kubedb-enterprise.license | | `""` |
| kubedb-autoscaler.enabled | | `true` |
| kubedb-autoscaler.license | | `""` |


Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:

```console
$ helm install kubedb appscode/kubedb -n kube-system --set -- generate from values file --
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
installing the chart. For example:

```console
$ helm install kubedb appscode/kubedb -n kube-system --values values.yaml
```
18 changes: 18 additions & 0 deletions charts/kubedb/doc.yaml
@@ -0,0 +1,18 @@
project:
name: KubeDB by AppsCode
shortName: KubeDB
url: https://github.com/kubedb
description: Making running production-grade databases easy on Kubernetes
app: a KubeDB operator
repository:
url: https://charts.appscode.com/stable/
name: appscode
chart:
name: kubedb
values: "-- generate from values file --"
valuesExample: "-- generate from values file --"
prerequisites:
- Kubernetes 1.16+
release:
name: kubedb
namespace: kube-system
3 changes: 3 additions & 0 deletions charts/kubedb/templates/NOTES.txt
@@ -0,0 +1,3 @@
Get the KubeDB operator pods by running the following command:

kubectl --namespace {{ .Release.Namespace }} get pods
62 changes: 62 additions & 0 deletions charts/kubedb/templates/_helpers.tpl
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "kubedb.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 "kubedb.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 "kubedb.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "kubedb.labels" -}}
helm.sh/chart: {{ include "kubedb.chart" . }}
{{ include "kubedb.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "kubedb.selectorLabels" -}}
app.kubernetes.io/name: {{ include "kubedb.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "kubedb.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "kubedb.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
21 changes: 21 additions & 0 deletions charts/kubedb/values.yaml
@@ -0,0 +1,21 @@
# Default values for kubedb.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# Sections:
# - KubeDB community sub-chart parameters
# - KubeDB catalog sub-chart parameters
# - KubeDB enterprise sub-chart parameters
# - KubeDB autoscaler sub-chart parameters

kubedb-community:
enabled: true
license: ""
kubedb-catalog:
enabled: false
kubedb-enterprise:
enabled: true
license: ""
kubedb-autoscaler:
enabled: true
license: ""

0 comments on commit 25988b0

Please sign in to comment.