Skip to content

Commit

Permalink
add support for initContainer resources in statefulset (#128)
Browse files Browse the repository at this point in the history
Enables the ability to specify initContainer resources. Addresses the condition where resources must be specified due to quota enforcement in a given namespace.
  • Loading branch information
joshkwedar authored Aug 9, 2023
1 parent d340b1e commit d76a5c7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: couchdb
version: 4.4.2
version: 4.4.3
appVersion: 3.3.2
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 couchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ A variety of other parameters are also configurable. See the comments in the
| `annotations` | |
| `tolerations` | |
| `resources` | |
| `initResources` | |
| `autoSetup.enabled` | false (if set to true, must have `service.enabled` set to true and a correct `adminPassword` - deploy it with the `--wait` flag to avoid first jobs failure) |
| `autoSetup.image.repository` | curlimages/curl |
| `autoSetup.image.tag` | latest |
Expand Down
2 changes: 2 additions & 0 deletions couchdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ spec:
volumeMounts:
- name: local-config-storage
mountPath: /local.d
resources:
{{ toYaml .Values.initResources | indent 12 }}
{{- end }}
containers:
- name: couchdb
Expand Down
10 changes: 10 additions & 0 deletions couchdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ resources: {}
# cpu: 56
# memory: 256Gi

## Optional resource requests and limits for the CouchDB init container
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
initResources: {}
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 128Mi

# -- erlangFlags is a map that is passed to the Erlang VM as flags using the
# ERL_FLAGS env. The `name` flag is required to establish connectivity
# between cluster nodes.
Expand Down

0 comments on commit d76a5c7

Please sign in to comment.