From 1919878e2cea762508f5aa780f0f1b41b4d006b4 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Thu, 21 May 2020 18:29:19 +0200 Subject: [PATCH] Add resources to docker-hub-exporter --- charts/docker-hub-exporter/Chart.yaml | 2 +- charts/docker-hub-exporter/templates/deployment.yaml | 2 ++ charts/docker-hub-exporter/values.yaml | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/charts/docker-hub-exporter/Chart.yaml b/charts/docker-hub-exporter/Chart.yaml index 319e5b5..6132170 100644 --- a/charts/docker-hub-exporter/Chart.yaml +++ b/charts/docker-hub-exporter/Chart.yaml @@ -4,7 +4,7 @@ description: Docker Hub exporter home: https://github.com/jessestuart/docker-hub-exporter icon: https://helm.wyrihaximus.net/images/charts/docker-hub-exporter.png type: application -version: 0.2.0 +version: 0.2.1 appVersion: d05df48 maintainers: - name: WyriHaximus diff --git a/charts/docker-hub-exporter/templates/deployment.yaml b/charts/docker-hub-exporter/templates/deployment.yaml index 19ed7cd..55e8925 100644 --- a/charts/docker-hub-exporter/templates/deployment.yaml +++ b/charts/docker-hub-exporter/templates/deployment.yaml @@ -39,6 +39,8 @@ spec: httpGet: path: / port: metrics + resources: + {{- toYaml .Values.resources | nindent 12 }} args: - -listen-address=:9170 - -organisations={{ .Values.organisations }} diff --git a/charts/docker-hub-exporter/values.yaml b/charts/docker-hub-exporter/values.yaml index da0190c..201c9df 100644 --- a/charts/docker-hub-exporter/values.yaml +++ b/charts/docker-hub-exporter/values.yaml @@ -8,3 +8,12 @@ organisations: YOUR_USER_OR_ORG grafana: influxdb: false prometheus: false + +resources: + # Setting this pretty low since this is a low resource intensive application, increase when needed + limits: + cpu: 5m + memory: 31Mi + requests: + cpu: 5m + memory: 31Mi