--

Hi Banthita,

I'm happy that you like it :)

Regarding your question, as I understand resources could be configured in Deployment. I found following sites on it:

* https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/

* https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/

Based on both of them I've extended `app` Helm chart `templates/deployment.yaml` file:

```

apiVersion: apps/v1

kind: Deployment

metadata:

spec:

template:

spec:

containers:

- name: {{ .Values.app.name }}

image: {{ .Values.app.container.image }}

resources:

limits:

cpu: {{ .Values.app.container.resources.limits.cpu }}

memory: {{ .Values.app.container.resources.limits.memory }}

requests:

cpu: {{ .Values.app.container.resources.requests.cpu }}

memory: {{ .Values.app.container.resources.requests.memory }}

.

.

.

```

And then a default values in values.yaml (you can set it up as you want):

```

app:

name: app

group: app

replicaCount: 1

container:

image: add-image-here

port: 8080

resources:

limits:

cpu: 1

memory: 200Mi

requests:

cpu: 0.5

memory: 200Mi

.

.

.

```

--

--

Wojciech Krzywiec
Wojciech Krzywiec

Written by Wojciech Krzywiec

Java Software Developer, DevOps newbie, constant learner, podcast enthusiast.

No responses yet