From dcfef7a14d274de888b3ef171ff07165055cbc4f Mon Sep 17 00:00:00 2001 From: Julius Tens Date: Fri, 4 Oct 2024 04:18:14 +0200 Subject: [PATCH] remove cpu limits --- kubernetes/.charts/simple-app/values.yaml | 1 - kubernetes/apps/api-direkt-bahn-guru/release.yaml | 3 +-- kubernetes/apps/bahn-guru/release.yaml | 3 +-- kubernetes/apps/chore-score-bot/release.yaml | 7 ------- kubernetes/apps/db-rest/release.yaml | 10 ---------- .../apps/european-transport-feeds-data/release.yaml | 7 ------- .../european-transport-feeds-website/release.yaml | 7 ------- kubernetes/apps/example-app/release.yaml | 13 +++++++------ kubernetes/apps/fptf-badges/release.yaml | 9 --------- kubernetes/apps/fpti-js-badges/release.yaml | 9 --------- kubernetes/apps/link-bahn-guru/release.yaml | 7 ------- kubernetes/apps/lod-codefor-de-api/release.yaml | 7 +++---- .../apps/lod-codefor-de-frontend/release.yaml | 7 ------- .../release.yaml | 7 ------- .../apps/travel-price-map-redirects/release.yaml | 7 ------- kubernetes/apps/umami/release.yaml | 3 +-- kubernetes/apps/vbb-departure-hotline/release.yaml | 9 --------- 17 files changed, 13 insertions(+), 103 deletions(-) diff --git a/kubernetes/.charts/simple-app/values.yaml b/kubernetes/.charts/simple-app/values.yaml index d4c8316..6ed9738 100644 --- a/kubernetes/.charts/simple-app/values.yaml +++ b/kubernetes/.charts/simple-app/values.yaml @@ -17,7 +17,6 @@ replicas: 2 minAvailable: 1 resources: limits: - cpu: 200m memory: 256Mi requests: cpu: 50m diff --git a/kubernetes/apps/api-direkt-bahn-guru/release.yaml b/kubernetes/apps/api-direkt-bahn-guru/release.yaml index 2a0b761..c3b30e4 100644 --- a/kubernetes/apps/api-direkt-bahn-guru/release.yaml +++ b/kubernetes/apps/api-direkt-bahn-guru/release.yaml @@ -25,10 +25,9 @@ spec: - 'api.direkt.bahn.guru' resources: limits: - cpu: 1000m memory: 1024Mi requests: - cpu: 500m + cpu: 250m memory: 256Mi replicas: 4 minAvailable: 2 diff --git a/kubernetes/apps/bahn-guru/release.yaml b/kubernetes/apps/bahn-guru/release.yaml index ea9b133..82e8711 100644 --- a/kubernetes/apps/bahn-guru/release.yaml +++ b/kubernetes/apps/bahn-guru/release.yaml @@ -29,10 +29,9 @@ spec: - 'www.railway.guru' resources: limits: - cpu: 500m memory: 1024Mi requests: - cpu: 250m + cpu: 200m memory: 512Mi replicas: 4 minAvailable: 2 diff --git a/kubernetes/apps/chore-score-bot/release.yaml b/kubernetes/apps/chore-score-bot/release.yaml index 1ac3b09..367dcc2 100644 --- a/kubernetes/apps/chore-score-bot/release.yaml +++ b/kubernetes/apps/chore-score-bot/release.yaml @@ -24,12 +24,5 @@ spec: hosts: - 'chore-score-bot.juliustens.eu' # todo: remove this replicas: 1 - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/db-rest/release.yaml b/kubernetes/apps/db-rest/release.yaml index 7d3e865..41a3ff9 100644 --- a/kubernetes/apps/db-rest/release.yaml +++ b/kubernetes/apps/db-rest/release.yaml @@ -23,16 +23,6 @@ spec: PORT: 3000 hosts: - 'v5.db.api.bahn.guru' - -# resources: -# limits: -# cpu: 200m -# memory: 256Mi -# requests: -# cpu: 100m -# memory: 128Mi - replicas: 3 - livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/european-transport-feeds-data/release.yaml b/kubernetes/apps/european-transport-feeds-data/release.yaml index becdd0b..ac16df9 100644 --- a/kubernetes/apps/european-transport-feeds-data/release.yaml +++ b/kubernetes/apps/european-transport-feeds-data/release.yaml @@ -22,12 +22,5 @@ spec: PORT: 3000 hosts: - 'data.public-transport.earth' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/european-transport-feeds-website/release.yaml b/kubernetes/apps/european-transport-feeds-website/release.yaml index 319512a..45e5371 100644 --- a/kubernetes/apps/european-transport-feeds-website/release.yaml +++ b/kubernetes/apps/european-transport-feeds-website/release.yaml @@ -22,12 +22,5 @@ spec: PORT: 3000 hosts: - 'eu.data.public-transport.earth' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi # livenessProbe: false # startupProbe: false diff --git a/kubernetes/apps/example-app/release.yaml b/kubernetes/apps/example-app/release.yaml index 817136f..b3e868b 100644 --- a/kubernetes/apps/example-app/release.yaml +++ b/kubernetes/apps/example-app/release.yaml @@ -24,14 +24,15 @@ spec: PORT: 3000 hosts: # [MODIFY] list your domain(s) here - 'example.infra.public-transport.earth' - # [MODIFY] optional: comment out some of the settings below to change the default - # values for resource limits and liveness/startup probe HTTP paths there - # are even more options available, these are just not documented here to - # keep this file as short as possible. check - # /kubernetes/.charts/simple-app/values.yaml for a full list + # [MODIFY] optional: comment out some of the settings below to change the + # default values for resource limits and liveness/startup probe HTTP paths. + # there are even more options available, these are just not documented here + # to keep this file as short as possible. check + # /kubernetes/.charts/simple-app/values.yaml for a full list also note that + # setting resource limits for cpu usage is discouraged (just set some + # requests) # resources: # limits: - # cpu: 200m # memory: 256Mi # requests: # cpu: 100m diff --git a/kubernetes/apps/fptf-badges/release.yaml b/kubernetes/apps/fptf-badges/release.yaml index c248e75..950cbcf 100644 --- a/kubernetes/apps/fptf-badges/release.yaml +++ b/kubernetes/apps/fptf-badges/release.yaml @@ -22,14 +22,5 @@ spec: PORT: 3000 hosts: - 'fptf.badges.juliustens.eu' - -# resources: -# limits: -# cpu: 200m -# memory: 256Mi -# requests: -# cpu: 100m -# memory: 128Mi - livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/fpti-js-badges/release.yaml b/kubernetes/apps/fpti-js-badges/release.yaml index 254eaf4..689dca5 100644 --- a/kubernetes/apps/fpti-js-badges/release.yaml +++ b/kubernetes/apps/fpti-js-badges/release.yaml @@ -22,14 +22,5 @@ spec: PORT: 3000 hosts: - 'fpti-js.badges.juliustens.eu' - -# resources: -# limits: -# cpu: 200m -# memory: 256Mi -# requests: -# cpu: 100m -# memory: 128Mi - livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/link-bahn-guru/release.yaml b/kubernetes/apps/link-bahn-guru/release.yaml index 40c99e9..f8d7238 100644 --- a/kubernetes/apps/link-bahn-guru/release.yaml +++ b/kubernetes/apps/link-bahn-guru/release.yaml @@ -22,12 +22,5 @@ spec: PORT: 3000 hosts: - 'link.bahn.guru' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/lod-codefor-de-api/release.yaml b/kubernetes/apps/lod-codefor-de-api/release.yaml index ac14050..218d936 100644 --- a/kubernetes/apps/lod-codefor-de-api/release.yaml +++ b/kubernetes/apps/lod-codefor-de-api/release.yaml @@ -22,10 +22,9 @@ spec: PORT: 8080 resources: limits: - cpu: 1000m - memory: 2048Mi + memory: 1024Mi requests: - cpu: 100m - memory: 512Mi + cpu: 200m + memory: 1024Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/lod-codefor-de-frontend/release.yaml b/kubernetes/apps/lod-codefor-de-frontend/release.yaml index dcf9740..50e1e1e 100644 --- a/kubernetes/apps/lod-codefor-de-frontend/release.yaml +++ b/kubernetes/apps/lod-codefor-de-frontend/release.yaml @@ -23,12 +23,5 @@ spec: SPARQL_ENDPOINT_URL: 'http://lod-codefor-de-api-service.lod-codefor-de-api:80/dataset/sparql' hosts: - 'lod.codefor.de' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/public-transport-data-scraper-legacy-proxy/release.yaml b/kubernetes/apps/public-transport-data-scraper-legacy-proxy/release.yaml index 9e6c514..18d1c90 100644 --- a/kubernetes/apps/public-transport-data-scraper-legacy-proxy/release.yaml +++ b/kubernetes/apps/public-transport-data-scraper-legacy-proxy/release.yaml @@ -22,12 +22,5 @@ spec: PORT: 3000 hosts: - 'de.data.public-transport.earth' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/travel-price-map-redirects/release.yaml b/kubernetes/apps/travel-price-map-redirects/release.yaml index af23113..9a85155 100644 --- a/kubernetes/apps/travel-price-map-redirects/release.yaml +++ b/kubernetes/apps/travel-price-map-redirects/release.yaml @@ -26,12 +26,5 @@ spec: - 'pricemap.eu' - 'www.pricemap.eu' - 'api.pricemap.eu' - # resources: - # limits: - # cpu: 200m - # memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi livenessProbe: false startupProbe: false diff --git a/kubernetes/apps/umami/release.yaml b/kubernetes/apps/umami/release.yaml index 355d62c..7361de5 100644 --- a/kubernetes/apps/umami/release.yaml +++ b/kubernetes/apps/umami/release.yaml @@ -27,8 +27,7 @@ spec: - 'developer.bahn.guru' resources: limits: - cpu: 500m - memory: 512Mi + memory: 256Mi requests: cpu: 100m memory: 128Mi diff --git a/kubernetes/apps/vbb-departure-hotline/release.yaml b/kubernetes/apps/vbb-departure-hotline/release.yaml index 1769e49..9323b8d 100644 --- a/kubernetes/apps/vbb-departure-hotline/release.yaml +++ b/kubernetes/apps/vbb-departure-hotline/release.yaml @@ -22,14 +22,5 @@ spec: PORT: 3000 hosts: - 'vbb-departure-hotline.juliustens.eu' - -# resources: -# limits: -# cpu: 200m -# memory: 256Mi -# requests: -# cpu: 100m -# memory: 128Mi - livenessProbe: false startupProbe: false