Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Set resources requests to 200m CPU and 320Mi memory
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed May 30, 2022
1 parent ac121b8 commit 1d0a2a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and monitored by [weave-gitops](https://github.com/weaveworks/weave-gitops).

![](docs/img/weave-gitops-msdemo.png)

The microservices demo is composed of 20 Kubernetes Deployments
with a total request of `200m` CPU and `320Mi` memory.
Each microservice is managed by a dedicated Flux Kustomization, and it contains
a podinfo instance and a redis instance,
the podinfo instance writes to Redis every `30s`.

## Prerequisites

* A Kubernetes cluster [bootstrapped with Flux](https://fluxcd.io/docs/installation/).
Expand Down Expand Up @@ -128,9 +134,6 @@ To test rollout failures use a non existing version such as `99.0.0`.

## List microservices

Each microservice is managed by a dedicated Flux Kustomization, and it contains
a podinfo deployment and a Redis one, podinfo talks constantly with Redis.

The above configuration will deploy the following workloads:

```console
Expand Down
2 changes: 1 addition & 1 deletion microservice/app-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ spec:
memory: 128Mi
requests:
cpu: 10m
memory: 32Mi
memory: 16Mi
4 changes: 2 additions & 2 deletions microservice/redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ spec:
timeoutSeconds: 5
resources:
limits:
cpu: 1000m
cpu: 200m
memory: 128Mi
requests:
cpu: 10m
memory: 32Mi
memory: 16Mi
volumeMounts:
- mountPath: /var/lib/redis
name: data
Expand Down

0 comments on commit 1d0a2a7

Please sign in to comment.