Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
22 changed files
with
540 additions
and
149 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
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Thanks for filing an issue! Before hitting the button, please answer these questions. It's helpful to search the existing GitHub issues first. It's likely that another user has already reported the issue you're facing, or it's a known issue that we're already aware of | ||
Fill in as much of the template below as you can. If you leave out information, we can't help you as well. | ||
Be ready for followup questions, and please respond in a timely manner. If we can't reproduce a bug or think a feature already exists, we might close your issue. If we're wrong, PLEASE feel free to reopen it and explain why. | ||
--> | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Version of Helm and Kubernetes**: | ||
|
||
|
||
**What happened**: | ||
|
||
|
||
**What you expected to happen**: | ||
|
||
|
||
**How to reproduce it** (as minimally and precisely as possible): | ||
|
||
|
||
**Anything else we need to know**: | ||
|
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
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- Thanks for filing an issue! Before hitting the button, please answer these questions. It's helpful to search the existing GitHub issues first. It's likely that another user has already reported the issue you're facing, or it's a known issue that we're already aware of. | ||
Describe *in detail* the feature/behavior/change you'd like to see. | ||
Be ready for followup questions, and please respond in a timely manner. If we can't reproduce a bug or think a feature already exists, we might close your issue. If we're wrong, PLEASE feel free to reopen it and explain why. | ||
--> | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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
@@ -0,0 +1,36 @@ | ||
<!-- | ||
Thank you for contributing to couchdb-helm. Before you submit this PR we'd like to | ||
make sure you are aware of the chart technical requirements and best practices: | ||
* https://github.com/helm/charts/blob/master/CONTRIBUTING.md#technical-requirements | ||
* https://github.com/helm/helm/tree/master/docs/chart_best_practices | ||
For a quick overview across what we will look at reviewing your PR, please read | ||
our review guidelines: | ||
* https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md | ||
Following our best practices right from the start will accelerate the review process and | ||
help get your PR merged quicker. | ||
When updates to your PR are requested, please add new commits and do not squash the | ||
history. This will make it easier to identify new changes. The PR will be squashed | ||
anyways when it is merged. Thanks. | ||
Please make sure you test your changes before you push them. | ||
--> | ||
|
||
#### What this PR does / why we need it: | ||
|
||
#### Which issue this PR fixes | ||
*(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)* | ||
- fixes # | ||
|
||
#### Special notes for your reviewer: | ||
|
||
#### Checklist | ||
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields. | ||
- [ ] Chart Version bumped | ||
- [ ] e2e tests pass | ||
- [ ] Variables are documented in the README.md | ||
- [ ] Chart tgz added to /docs and index updated |
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
@@ -0,0 +1,27 @@ | ||
# Licensed 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. | ||
|
||
SHELL=/bin/bash | ||
|
||
.PHONY: lint | ||
lint: | ||
@helm lint couchdb | ||
|
||
.PHONY: publish | ||
publish: lint | ||
@helm package couchdb -d docs | ||
@helm repo index docs --url https://apache.github.io/couchdb-helm | ||
|
||
# Run end to end tests using KinD | ||
.PHONY: test | ||
test: | ||
./test/e2e-kind.sh |
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
@@ -1,167 +1,33 @@ | ||
# CouchDB | ||
# CouchDB Helm Charts | ||
|
||
Apache CouchDB is a database featuring seamless multi-master sync, that scales | ||
from big data to mobile, with an intuitive HTTP/JSON API and designed for | ||
reliability. | ||
This repository contains assets related to the CouchDB Helm chart. | ||
|
||
This chart deploys a CouchDB cluster as a StatefulSet. It creates a ClusterIP | ||
Service in front of the Deployment for load balancing by default, but can also | ||
be configured to deploy other Service types or an Ingress Controller. The | ||
default persistence mechanism is simply the ephemeral local filesystem, but | ||
production deployments should set `persistentVolume.enabled` to `true` to attach | ||
storage volumes to each Pod in the Deployment. | ||
## Layout | ||
|
||
## TL;DR | ||
* `couchdb`: contains the unbundled Helm chart | ||
* `test`: containes scripts to test the chart locally using [Kind][5] | ||
|
||
```bash | ||
$ helm repo add couchdb https://apache.github.io/couchdb-helm | ||
$ helm install couchdb/couchdb --set allowAdminParty=true | ||
``` | ||
## Testing | ||
|
||
## Prerequisites | ||
`make test` will run an integration test using [Kind][5]. This stands up a Kubernetes cluster locally and ensures the chart will deploy using the default options and Helm. | ||
|
||
- Kubernetes 1.8+ with Beta APIs enabled | ||
## Releasing | ||
|
||
## Installing the Chart | ||
Chart versions are immutable. On every version change, `make publish` should be | ||
run to create a new chart bundle and update the repostory metadata. | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
Add the CouchDB Helm repository: | ||
|
||
```bash | ||
$ helm repo add couchdb https://apache.github.io/couchdb-helm | ||
``` | ||
|
||
|
||
```bash | ||
$ helm install --name my-release couchdb/couchdb | ||
``` | ||
|
||
This will create a Secret containing the admin credentials for the cluster. | ||
Those credentials can be retrieved as follows: | ||
|
||
```bash | ||
$ kubectl get secret my-release-couchdb -o go-template='{{ .data.adminPassword }}' | base64 --decode | ||
``` | ||
|
||
If you prefer to configure the admin credentials directly you can create a | ||
Secret containing `adminUsername`, `adminPassword` and `cookieAuthSecret` keys: | ||
|
||
```bash | ||
$ kubectl create secret generic my-release-couchdb --from-literal=adminUsername=foo --from-literal=adminPassword=bar --from-literal=cookieAuthSecret=baz | ||
``` | ||
|
||
and then install the chart while overriding the `createAdminSecret` setting: | ||
|
||
```bash | ||
$ helm install --name my-release --set createAdminSecret=false couchdb/couchdb | ||
``` | ||
|
||
This Helm chart deploys CouchDB on the Kubernetes cluster in a 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 `my-release` Deployment: | ||
|
||
```bash | ||
$ helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and | ||
deletes the release. | ||
|
||
## Upgrading an existing Release to a new major version | ||
|
||
A major chart version change (like v0.2.3 -> v1.0.0) indicates that there is an | ||
incompatible breaking change needing manual actions. | ||
|
||
## Migrating from stable/couchdb | ||
|
||
This chart replaces the `stable/couchdb` chart previously hosted by Helm and continues the | ||
version semantics. You can upgrade directly from `stable/couchdb` to this chart using: | ||
|
||
```bash | ||
$ helm repo add couchdb https://apache.github.io/couchdb-helm | ||
$ helm upgrade my-release couchdb/couchdb | ||
``` | ||
|
||
## Configuration | ||
|
||
The following table lists the most commonly configured parameters of the | ||
CouchDB chart and their default values: | ||
|
||
| Parameter | Description | Default | | ||
|---------------------------------|-------------------------------------------------------|----------------------------------------| | ||
| `clusterSize` | The initial number of nodes in the CouchDB cluster | 3 | | ||
| `couchdbConfig` | Map allowing override elements of server .ini config | chttpd.bind_address=any | | ||
| `allowAdminParty` | If enabled, start cluster without admin account | false (requires creating a Secret) | | ||
| `createAdminSecret` | If enabled, create an admin account and cookie secret | true | | ||
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` | | ||
| `erlangFlags` | Map of flags supplied to the underlying Erlang VM | name: couchdb, setcookie: monster | ||
| `persistentVolume.enabled` | Boolean determining whether to attach a PV to each node | false | ||
| `persistentVolume.size` | If enabled, the size of the persistent volume to attach | 10Gi | ||
| `enableSearch` | Adds a sidecar for Lucene-powered text search | false | | ||
|
||
A variety of other parameters are also configurable. See the comments in the | ||
`values.yaml` file for further details: | ||
|
||
| Parameter | Default | | ||
|---------------------------------|----------------------------------------| | ||
| `adminUsername` | admin | | ||
| `adminPassword` | auto-generated | | ||
| `cookieAuthSecret` | auto-generated | | ||
| `image.repository` | couchdb | | ||
| `image.tag` | 2.3.1 | | ||
| `image.pullPolicy` | IfNotPresent | | ||
| `searchImage.repository` | kocolosk/couchdb-search | | ||
| `searchImage.tag` | 0.1.0 | | ||
| `searchImage.pullPolicy` | IfNotPresent | | ||
| `initImage.repository` | busybox | | ||
| `initImage.tag` | latest | | ||
| `initImage.pullPolicy` | Always | | ||
| `ingress.enabled` | false | | ||
| `ingress.hosts` | chart-example.local | | ||
| `ingress.annotations` | | | ||
| `ingress.tls` | | | ||
| `persistentVolume.accessModes` | ReadWriteOnce | | ||
| `persistentVolume.storageClass` | Default for the Kube cluster | | ||
| `podManagementPolicy` | Parallel | | ||
| `affinity` | | | ||
| `resources` | | | ||
| `service.annotations` | | | ||
| `service.enabled` | true | | ||
| `service.type` | ClusterIP | | ||
| `service.externalPort` | 5984 | | ||
| `dns.clusterDomainSuffix` | cluster.local | | ||
|
||
|
||
## Feedback, Issues, Contributing | ||
## Feedback / Issues / Contributing | ||
|
||
General feedback is welcome at our [user][1] or [developer][2] mailing lists. | ||
|
||
Apache CouchDB has a [CONTRIBUTING][3] file with details on how to get started | ||
with issue reporting or contributing to the upkeep of this project. In short, | ||
use GitHub Issues, do not report anything on Docker's website. | ||
|
||
## Non-Apache CouchDB Development Team Contributors | ||
use GitHub Issues, do not report anything to the Helm team. | ||
|
||
- [@natarajaya](https://github.com/natarajaya) | ||
- [@satchpx](https://github.com/satchpx) | ||
- [@spanato](https://github.com/spanato) | ||
- [@jpds](https://github.com/jpds) | ||
- [@sebastien-prudhomme](https://github.com/sebastien-prudhomme) | ||
- [@stepanstipl](https://github.com/sebastien-stepanstipl) | ||
- [@amatas](https://github.com/amatas) | ||
- [@Chimney42](https://github.com/Chimney42) | ||
- [@mattjmcnaughton](https://github.com/mattjmcnaughton) | ||
- [@mainephd](https://github.com/mainephd) | ||
- [@AdamDang](https://github.com/AdamDang) | ||
- [@mrtyler](https://github.com/mrtyler) | ||
The chart follows the technical guidelines / best practices [maintained][4] by the Helm team. | ||
|
||
[1]: http://mail-archives.apache.org/mod_mbox/couchdb-user/ | ||
[2]: http://mail-archives.apache.org/mod_mbox/couchdb-dev/ | ||
[3]: https://github.com/apache/couchdb/blob/master/CONTRIBUTING.md | ||
[4]: https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md | ||
[5]: https://github.com/kubernetes-sigs/kind |
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
Oops, something went wrong.