diff --git a/charts/pokertool/Chart.yaml b/charts/pokertool/Chart.yaml index 38aceac..ab7401e 100644 --- a/charts/pokertool/Chart.yaml +++ b/charts/pokertool/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: "v2" name: "pokertool" -version: "0.3.0" +version: "0.4.0" description: "A scrum poker tool made with Angular and Kotlin" keywords: - "angular" diff --git a/charts/pokertool/templates/backend/deploy.yaml b/charts/pokertool/templates/backend/deploy.yaml index 44a2d38..ed5a122 100644 --- a/charts/pokertool/templates/backend/deploy.yaml +++ b/charts/pokertool/templates/backend/deploy.yaml @@ -24,3 +24,12 @@ spec: {{- end }} ports: - containerPort: 8080 + {{- with .Values.backend.resources }} + resources: + requests: + memory: {{ .requests.memory }} + cpu: {{ .requests.memory }} + limits: + memory: {{ .limits.memory }} + cpu: {{ .limits.memory }} + {{- end }} diff --git a/charts/pokertool/templates/frontend/deploy.yaml b/charts/pokertool/templates/frontend/deploy.yaml index acbd7e5..e6b8451 100644 --- a/charts/pokertool/templates/frontend/deploy.yaml +++ b/charts/pokertool/templates/frontend/deploy.yaml @@ -12,15 +12,24 @@ spec: app.kubernetes.io/name: pokertool app.kubernetes.io/component: frontend template: + metadata: + labels: + app.kubernetes.io/name: pokertool + app.kubernetes.io/component: frontend spec: containers: - name: pokertool-frontend - {{- with .Values.frontend.image }} + {{- with .Values.frontend.image }} image: "{{ .registry }}/{{ .name }}:{{ .tag }}" - {{- end }} + {{- end }} ports: - containerPort: 80 - metadata: - labels: - app.kubernetes.io/name: pokertool - app.kubernetes.io/component: frontend + {{- with .Values.frontend.resources }} + resources: + requests: + memory: {{ .requests.memory }} + cpu: {{ .requests.cpu }} + limits: + memory: {{ .limits.memory }} + cpu: {{ .limits.cpu }} + {{- end }} diff --git a/charts/pokertool/values.yaml b/charts/pokertool/values.yaml index 41c6349..cb888f1 100644 --- a/charts/pokertool/values.yaml +++ b/charts/pokertool/values.yaml @@ -1,6 +1,6 @@ ingress: enabled: true - domain: "" + domain: "test" frontend: image: @@ -8,6 +8,13 @@ frontend: name: "pokertool-frontend" tag: "v1.0.1" replicas: 1 + resources: + requests: + cpu: "10m" + memory: "15Mi" + limits: + cpu: "20m" + memory: "30Mi" backend: image: @@ -15,3 +22,10 @@ backend: name: "pokertool-backend" tag: "v1.0.0" replicas: 1 + resources: + requests: + cpu: "10m" + memory: "200Mi" + limits: + cpu: "50m" + memory: "200Mi"