Skip to content

Commit

Permalink
feat(helm): Separate resource section for api and worker (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiWo authored Nov 14, 2023
1 parent c2be01e commit bfeffbd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/v3-oracle/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: v3-oracle
version: 3.2.5
version: 3.3.5
appVersion: v1.0.1
kubeVersion: "^1.14.0-0"
description: The StakeWise application for submitting off-chain data to smart contracts.
Expand Down
4 changes: 2 additions & 2 deletions charts/v3-oracle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
- name: wallet
mountPath: /wallet
{{- end }}
{{- with .Values.resources }}
{{- with .Values.resources.api }}
resources:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
Expand All @@ -95,7 +95,7 @@ spec:
- name: wallet
mountPath: /wallet
{{- end }}
{{- with .Values.resources }}
{{- with .Values.resources.worker }}
resources:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
Expand Down
17 changes: 14 additions & 3 deletions charts/v3-oracle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,20 @@ image:
## http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
requests:
cpu: 500m
memory: 1Gi
api:
requests:
cpu: "1"
memory: "1Gi"
limits:
cpu: "1"
memory: "1Gi"
worker:
requests:
cpu: "2"
memory: "2Gi"
limits:
cpu: "2"
memory: "2Gi"

## Used to assign priority to pod
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
Expand Down

0 comments on commit bfeffbd

Please sign in to comment.