Skip to content

Commit

Permalink
feat(k8s): adjust resource limits
Browse files Browse the repository at this point in the history
Adjusted on bookinfo, presidio and prose containers.
  • Loading branch information
qlonik committed Mar 29, 2024
1 parent 36696d6 commit 85b73b4
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ spec:
- name: presidio
image: ghcr.io/dettanym/prose-presidio:main
resources:
requests:
cpu: 10m
memory: 500Mi
limits:
memory: "1Gi"
cpu: "500m"
memory: 3Gi
ports:
- name: http
containerPort: 3000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ spec:
path: /health
port: http
resources:
requests:
cpu: 10m
memory: 500Mi
limits:
memory: 1Gi
cpu: "500m"
memory: 3Gi
volumes:
- name: compiled-bundle
emptyDir:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,107 @@ resources:
- https://raw.githubusercontent.com/istio/istio/1.20.3/samples/bookinfo/platform/kube/bookinfo.yaml
- ./ingress.yaml
# - https://raw.githubusercontent.com/istio/istio/1.20.3/samples/bookinfo/networking/bookinfo-gateway.yaml

patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: details-v1
spec:
template:
spec:
containers:
- name: details
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: ratings-v1
spec:
template:
spec:
containers:
- name: ratings
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v1
spec:
template:
spec:
containers:
- name: reviews
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v2
spec:
template:
spec:
containers:
- name: reviews
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: reviews-v3
spec:
template:
spec:
containers:
- name: reviews
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: productpage-v1
spec:
template:
spec:
containers:
- name: productpage
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: "1"
memory: 2Gi

0 comments on commit 85b73b4

Please sign in to comment.