Skip to content

Commit

Permalink
Merge pull request #728 from pahmadi8740/main
Browse files Browse the repository at this point in the history
feat: resources are added
  • Loading branch information
tokebe authored Sep 20, 2023
2 parents 940b6d3 + f6a0805 commit cb4d7d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions deploy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
serviceAccountName: {{ include "bte.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
Expand Down
7 changes: 7 additions & 0 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,10 @@ affinity:
values:
- bte
topologyKey: "kubernetes.io/hostname"
resources:
requests:
memory: 56Gi
cpu: 13000m
limits:
memory: 58Gi
cpu: 14000m

0 comments on commit cb4d7d5

Please sign in to comment.