Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tamal Saha <tamal@appscode.com>
- Loading branch information
Showing
12 changed files
with
232 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
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
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
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
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
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,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 |
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,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 | ||
``` |
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,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 |
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,3 @@ | ||
Get the KubeDB operator pods by running the following command: | ||
|
||
kubectl --namespace {{ .Release.Namespace }} get pods |
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,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 }} |
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,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: "" |