Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/abstract-node/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ spec:
- name: healthcheck
containerPort: {{ .Values.healthcheck.port }}
{{- end }}
{{- with .Values.resources }}
{{- with (default .Values.resources .Values.ha.api.resources) }}
resources:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/abstract-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ spec:
mountPath: /consensus/config.yaml
subPath: config.yaml
{{- end }}
{{- with .Values.resources }}
{{- $resources := ternary (default .Values.resources .Values.ha.core.resources) .Values.resources .Values.ha.enabled }}
{{- with $resources }}
resources:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions charts/abstract-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,20 @@ ha:
##
components: ""
extraArgs: []
## Resource requests and limits for the core StatefulSet pod.
## Falls back to top-level resources when empty.
##
resources: {}
api:
replicaCount: 2
## Components for API replicas. Leave empty to use "api".
##
components: ""
extraArgs: []
## Resource requests and limits for API Deployment pods.
## Falls back to top-level resources when empty.
##
resources: {}
service:
## API service defaults to a normal ClusterIP service for load balancing.
##
Expand Down
Loading