Skip to content

Commit

Permalink
Merge pull request #350 from mintel/INFRA-37597-reduce-cpu-requests
Browse files Browse the repository at this point in the history
Reduce default CPU requests
  • Loading branch information
jtdoepke authored Oct 7, 2024
2 parents 6c1475c + 28a1a05 commit 5a3958a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
4 changes: 4 additions & 0 deletions charts/standard-application-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v7.5.2] - 2024-10-07
### Changed
- Reduce default CPU requests

## [v7.5.1] - 2024-10-01
### Removed
- Remove default CPU limits for containers
Expand Down
2 changes: 1 addition & 1 deletion charts/standard-application-stack/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: 7.5.1
version: 7.5.2

dependencies:
- name: redis
Expand Down
20 changes: 10 additions & 10 deletions charts/standard-application-stack/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# standard-application-stack

![Version: 7.5.1](https://img.shields.io/badge/Version-7.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 7.5.2](https://img.shields.io/badge/Version-7.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A generic chart to support most common application requirements

Expand Down Expand Up @@ -93,10 +93,10 @@ A generic chart to support most common application requirements
| filebeatSidecar.enabled | bool | `false` | |
| filebeatSidecar.metrics.enabled | bool | `true` | |
| filebeatSidecar.metrics.resources.limits.memory | string | `"200Mi"` | |
| filebeatSidecar.metrics.resources.requests.cpu | string | `"100m"` | |
| filebeatSidecar.metrics.resources.requests.cpu | string | `"10m"` | |
| filebeatSidecar.metrics.resources.requests.memory | string | `"100Mi"` | |
| filebeatSidecar.resources.limits.memory | string | `"200Mi"` | |
| filebeatSidecar.resources.requests.cpu | string | `"100m"` | |
| filebeatSidecar.resources.requests.cpu | string | `"10m"` | |
| filebeatSidecar.resources.requests.memory | string | `"100Mi"` | |
| gitSyncSidecar | object | `{"branch":"main","enabled":false,"resources":{"limits":{"memory":"200Mi"},"requests":{"cpu":"50m","memory":"50Mi"}},"root":"/data/git-sync"}` | Helper to sync a local directory with Git ref: https://github.com/kubernetes/git-sync |
| gitSyncSidecar.branch | string | `"main"` | The git branch to check out |
Expand Down Expand Up @@ -197,13 +197,13 @@ A generic chart to support most common application requirements
| main | object | `{"env":[]}` | Optional environment variables injected into the 'main' container of the app-deployment |
| mariadb.client.enabled | bool | `true` | |
| mariadb.client.resources.limits.memory | string | `"128Mi"` | |
| mariadb.client.resources.requests.cpu | string | `"100m"` | |
| mariadb.client.resources.requests.cpu | string | `"10m"` | |
| mariadb.client.resources.requests.memory | string | `"64Mi"` | |
| mariadb.enabled | bool | `false` | |
| mariadb.extraUsers | object | `{"enabled":false,"job":{"logLevel":"INFO"},"users":[]}` | set up extra users for a database and table that already exist |
| mariadb.metrics.enabled | bool | `false` | |
| mariadb.metrics.resources.limits.memory | string | `"128Mi"` | |
| mariadb.metrics.resources.requests.cpu | string | `"100m"` | |
| mariadb.metrics.resources.requests.cpu | string | `"10m"` | |
| mariadb.metrics.resources.requests.memory | string | `"64Mi"` | |
| mariadb.outputSecret | bool | `true` | set outputSecret to true to allow TF Cloud chart create ExternalSecrets |
| memcached.enabled | bool | `false` | |
Expand Down Expand Up @@ -239,8 +239,8 @@ A generic chart to support most common application requirements
| oauthProxy.skipAuthRegexes | list | `[]` | Optional: list of URL endpoints to bypass oauth-proxy for Health check and readiness urls are skipped automatically |
| oauthProxy.type | string | `"portal"` | Identifies oauth-proxy as auth'ing with a mintel portal instance |
| oauthProxy.userIdClaim | string | `""` | Optional: Claim contains the user ID |
| opensearch | object | `{"awsEsProxy":{"enabled":false,"ingress":{"alb":{"backendProtocol":"HTTP","backendProtocolVersion":"HTTP1","healthcheck":{"healthyThresholdCount":2,"intervalSeconds":15,"path":"/_cluster/health","protocol":"HTTP","timeoutSeconds":5,"unhealthyThresholdCount":2},"okta":{"authOnUnauthenticated":"authenticate","enabled":false,"extraRedirectPaths":[],"groups":"","ingressName":"","redirectPath":"","users":""},"preStopDelay":{"delaySeconds":15,"enabled":true},"scheme":"internet-facing","targetGroupAttributes":{"deregistration_delay.timeout_seconds":5,"load_balancing.algorithm.type":"least_outstanding_requests"}},"enabled":false,"extraAnnotations":{},"path":"/_dashboards"},"port":9200,"resources":{"limits":{"memory":"128Mi"},"requests":{"cpu":"100m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}},"enabled":false,"outputSecret":true,"secretRefreshIntervalOverride":"","secretStoreRefOverride":""}` | Configures AWS Opensearch deployment/connections |
| opensearch.awsEsProxy | object | `{"enabled":false,"ingress":{"alb":{"backendProtocol":"HTTP","backendProtocolVersion":"HTTP1","healthcheck":{"healthyThresholdCount":2,"intervalSeconds":15,"path":"/_cluster/health","protocol":"HTTP","timeoutSeconds":5,"unhealthyThresholdCount":2},"okta":{"authOnUnauthenticated":"authenticate","enabled":false,"extraRedirectPaths":[],"groups":"","ingressName":"","redirectPath":"","users":""},"preStopDelay":{"delaySeconds":15,"enabled":true},"scheme":"internet-facing","targetGroupAttributes":{"deregistration_delay.timeout_seconds":5,"load_balancing.algorithm.type":"least_outstanding_requests"}},"enabled":false,"extraAnnotations":{},"path":"/_dashboards"},"port":9200,"resources":{"limits":{"memory":"128Mi"},"requests":{"cpu":"100m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}}` | Configures aws-es-proxy to enable external access to opensearch |
| opensearch | object | `{"awsEsProxy":{"enabled":false,"ingress":{"alb":{"backendProtocol":"HTTP","backendProtocolVersion":"HTTP1","healthcheck":{"healthyThresholdCount":2,"intervalSeconds":15,"path":"/_cluster/health","protocol":"HTTP","timeoutSeconds":5,"unhealthyThresholdCount":2},"okta":{"authOnUnauthenticated":"authenticate","enabled":false,"extraRedirectPaths":[],"groups":"","ingressName":"","redirectPath":"","users":""},"preStopDelay":{"delaySeconds":15,"enabled":true},"scheme":"internet-facing","targetGroupAttributes":{"deregistration_delay.timeout_seconds":5,"load_balancing.algorithm.type":"least_outstanding_requests"}},"enabled":false,"extraAnnotations":{},"path":"/_dashboards"},"port":9200,"resources":{"limits":{"memory":"128Mi"},"requests":{"cpu":"10m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}},"enabled":false,"outputSecret":true,"secretRefreshIntervalOverride":"","secretStoreRefOverride":""}` | Configures AWS Opensearch deployment/connections |
| opensearch.awsEsProxy | object | `{"enabled":false,"ingress":{"alb":{"backendProtocol":"HTTP","backendProtocolVersion":"HTTP1","healthcheck":{"healthyThresholdCount":2,"intervalSeconds":15,"path":"/_cluster/health","protocol":"HTTP","timeoutSeconds":5,"unhealthyThresholdCount":2},"okta":{"authOnUnauthenticated":"authenticate","enabled":false,"extraRedirectPaths":[],"groups":"","ingressName":"","redirectPath":"","users":""},"preStopDelay":{"delaySeconds":15,"enabled":true},"scheme":"internet-facing","targetGroupAttributes":{"deregistration_delay.timeout_seconds":5,"load_balancing.algorithm.type":"least_outstanding_requests"}},"enabled":false,"extraAnnotations":{},"path":"/_dashboards"},"port":9200,"resources":{"limits":{"memory":"128Mi"},"requests":{"cpu":"10m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}}` | Configures aws-es-proxy to enable external access to opensearch |
| opensearch.awsEsProxy.enabled | bool | `false` | Set to true to add an aws-es-proxy deployment in front of opensearch |
| opensearch.awsEsProxy.ingress.alb.backendProtocol | string | `"HTTP"` | Application Version (HTTP / HTTPS) |
| opensearch.awsEsProxy.ingress.alb.backendProtocolVersion | string | `"HTTP1"` | Application Protocol Version (HTTP1 / HTTP2 / GRPC) |
Expand All @@ -263,7 +263,7 @@ A generic chart to support most common application requirements
| opensearch.awsEsProxy.ingress.alb.targetGroupAttributes | object | `{"deregistration_delay.timeout_seconds":5,"load_balancing.algorithm.type":"least_outstanding_requests"}` | Target group attributes (see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#target-group-attributes) |
| opensearch.awsEsProxy.ingress.path | string | `"/_dashboards"` | Path for the Ingress |
| opensearch.awsEsProxy.port | int | `9200` | Port for aws-es-proxy to listen on |
| opensearch.awsEsProxy.resources | object | `{"limits":{"memory":"128Mi"},"requests":{"cpu":"100m","memory":"64Mi"}}` | Container resource requests and limits for aws-es-proxy sidecar ref: http://kubernetes.io/docs/user-guide/compute-resources |
| opensearch.awsEsProxy.resources | object | `{"limits":{"memory":"128Mi"},"requests":{"cpu":"10m","memory":"64Mi"}}` | Container resource requests and limits for aws-es-proxy sidecar ref: http://kubernetes.io/docs/user-guide/compute-resources |
| opensearch.awsEsProxy.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}` | Ingress for aws-es-proxy |
| opensearch.enabled | bool | `false` | Set to true if deployment makes use of AWS opensearch |
| opensearch.outputSecret | bool | `true` | set outputSecret to true to allow TF Cloud chart create ExternalSecrets |
Expand All @@ -287,7 +287,7 @@ A generic chart to support most common application requirements
| port | int | `8000` | Set port to null to skip adding container Ports |
| postgresql.client.enabled | bool | `true` | |
| postgresql.client.resources.limits.memory | string | `"128Mi"` | |
| postgresql.client.resources.requests.cpu | string | `"100m"` | |
| postgresql.client.resources.requests.cpu | string | `"10m"` | |
| postgresql.client.resources.requests.memory | string | `"64Mi"` | |
| postgresql.enabled | bool | `false` | |
| postgresql.extraUsers.enabled | bool | `false` | |
Expand All @@ -296,7 +296,7 @@ A generic chart to support most common application requirements
| postgresql.image.tag | string | `"13.5.0-debian-10-r52"` | |
| postgresql.metrics.enabled | bool | `false` | |
| postgresql.metrics.resources.limits.memory | string | `"128Mi"` | |
| postgresql.metrics.resources.requests.cpu | string | `"100m"` | |
| postgresql.metrics.resources.requests.cpu | string | `"10m"` | |
| postgresql.metrics.resources.requests.memory | string | `"64M"` | |
| postgresql.outputSecret | bool | `true` | set outputSecret to true to allow TF Cloud chart create ExternalSecrets |
| postgresql.postgresqlDatabase | string | `"postgres"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Check awsEsProxy deployment is created if enabled:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
Expand Down
14 changes: 7 additions & 7 deletions charts/standard-application-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ mariadb:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64Mi
metrics:
enabled: false
Expand All @@ -1033,7 +1033,7 @@ mariadb:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64Mi
# -- set up extra users for a database and table that already exist
extraUsers:
Expand Down Expand Up @@ -1091,7 +1091,7 @@ postgresql:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64Mi
metrics:
enabled: false
Expand All @@ -1100,7 +1100,7 @@ postgresql:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64M
extraUsers:
enabled: false
Expand Down Expand Up @@ -1187,7 +1187,7 @@ filebeatSidecar:
limits:
memory: 200Mi
requests:
cpu: 100m
cpu: 10m
memory: 100Mi
# configmap:
# - name: "filebeat.yml"
Expand All @@ -1204,7 +1204,7 @@ filebeatSidecar:
limits:
memory: 200Mi
requests:
cpu: 100m
cpu: 10m
memory: 100Mi

mailhog:
Expand Down Expand Up @@ -1237,7 +1237,7 @@ opensearch:
limits:
memory: 128Mi
requests:
cpu: 100m
cpu: 10m
memory: 64Mi
# -- Port for aws-es-proxy to listen on
port: 9200
Expand Down

0 comments on commit 5a3958a

Please sign in to comment.