diff --git a/couchdb/Chart.yaml b/couchdb/Chart.yaml index 206f9c0..c0d545b 100644 --- a/couchdb/Chart.yaml +++ b/couchdb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: couchdb -version: 3.3.3 +version: 3.3.5 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 diff --git a/couchdb/templates/statefulset.yaml b/couchdb/templates/statefulset.yaml index 6225fbe..42547eb 100644 --- a/couchdb/templates/statefulset.yaml +++ b/couchdb/templates/statefulset.yaml @@ -35,6 +35,8 @@ spec: image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}" imagePullPolicy: {{ .Values.initImage.pullPolicy }} command: ['sh','-c','cp /tmp/chart.ini /default.d; cp /tmp/seedlist.ini /default.d; ls -lrt /default.d;'] + resources: +{{ toYaml .Values.init.resources | indent 12 }} volumeMounts: - name: config mountPath: /tmp/ @@ -45,6 +47,8 @@ spec: image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}" imagePullPolicy: {{ .Values.initImage.pullPolicy }} command: ['sh','-c','cp /tmp/password.ini /local.d/ ;'] + resources: +{{ toYaml .Values.init.resources | indent 12 }} volumeMounts: - name: admin-password mountPath: /tmp/password.ini diff --git a/couchdb/values.yaml b/couchdb/values.yaml index 25e26a7..387b287 100644 --- a/couchdb/values.yaml +++ b/couchdb/values.yaml @@ -77,6 +77,18 @@ initImage: tag: latest pullPolicy: Always +## Optional resource requests and limits for all the init containers +## ref: http://kubernetes.io/docs/user-guide/compute-resources/ +init: + resources: + {} + # requests: + # cpu: 100m + # memory: 128Mi + # limits: + # cpu: 56 + # memory: 256Gi + ## CouchDB is happy to spin up cluster nodes in parallel, but if you encounter ## problems you can try setting podManagementPolicy to the StatefulSet default ## `OrderedReady` diff --git a/docs/couchdb-3.3.5.tgz b/docs/couchdb-3.3.5.tgz new file mode 100644 index 0000000..f692706 Binary files /dev/null and b/docs/couchdb-3.3.5.tgz differ