Skip to content

Commit

Permalink
chore: enable resources for beekeeper (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Иван Vandot authored Dec 5, 2023
1 parent f1a4ee0 commit ba00101
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/beekeeper/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: latest
name: beekeeper
version: 0.4.3
version: 0.4.4
description: Ethereum Swarm Beekeeper Helm chart for Kubernetes
home: https://www.ethswarm.org
icon: https://docs.ethswarm.org/img/swarm-logo-2.svg
Expand Down
2 changes: 2 additions & 0 deletions charts/beekeeper/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
{{- range .Values.config.command }}
- {{ . }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 16 }}
volumeMounts:
- name: config
mountPath: /home/beekeeper/.beekeeper
Expand Down
4 changes: 3 additions & 1 deletion charts/beekeeper/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,16 @@ spec:
{{- range .Values.config.command }}
- {{ . }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: config
mountPath: /home/beekeeper/.beekeeper
readOnly: true
restartPolicy: Never
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: config
Expand Down
10 changes: 10 additions & 0 deletions charts/beekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ serviceAccount:
createRole: false
createClusterRole: false

resources: {}
## If you do want to specify resources, uncomment the following
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 1
# memory: 1Gi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

config:
Expand Down

0 comments on commit ba00101

Please sign in to comment.