Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
[incubator/couchdb] updates to support an alternate k8s scheduler (he…
Browse files Browse the repository at this point in the history
…lm#14351)

* updates to support an alternate k8s scheduler

Signed-off-by: Sathya Balakrishnan <[email protected]>

* fix Chart version

Signed-off-by: Sathya Balakrishnan <[email protected]>

* Update Chart.yaml

Signed-off-by: Maor Friedman <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
  • Loading branch information
satchpx authored and anasinnyk committed Jun 29, 2019
1 parent 51b807e commit 305c6d3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: couchdb
version: 1.2.0
version: 1.2.1
appVersion: 2.3.1
description: A database featuring seamless multi-master sync, that scales from
big data to mobile, with an intuitive HTTP/JSON API and designed for
Expand Down
1 change: 1 addition & 0 deletions incubator/couchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ CouchDB chart and their default values:
| `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
Expand Down
3 changes: 3 additions & 0 deletions incubator/couchdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
app: {{ template "couchdb.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
initContainers:
- name: init-copy
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
Expand Down
5 changes: 5 additions & 0 deletions incubator/couchdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ adminUsername: admin
# adminPassword: this_is_not_secure
# cookieAuthSecret: neither_is_this

## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName:

## The storage volume used by each Pod in the StatefulSet. If a
## persistentVolume is not enabled, the Pods will use `emptyDir` ephemeral
## local storage. Setting the storageClass attribute to "-" disables dynamic
Expand Down

0 comments on commit 305c6d3

Please sign in to comment.