Skip to content

Commit

Permalink
feat: resource requests and limits
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Sep 13, 2024
1 parent 1752915 commit 802bc11
Showing 1 changed file with 53 additions and 11 deletions.
64 changes: 53 additions & 11 deletions manifests/blog-app/blog-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ spec:
ports:
- containerPort: 27017
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "5Gi"
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
envFrom:
- secretRef:
name: mongodb-creds
Expand Down Expand Up @@ -101,8 +107,14 @@ spec:
ports:
- containerPort: 5000
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "1Gi"
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
env:
- name: MONGODB_USERNAME
valueFrom:
Expand Down Expand Up @@ -161,8 +173,14 @@ spec:
ports:
- containerPort: 5000
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "1Gi"
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
env:
- name: MONGODB_USERNAME
valueFrom:
Expand Down Expand Up @@ -221,8 +239,14 @@ spec:
ports:
- containerPort: 5000
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "1Gi"
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
env:
- name: MONGODB_USERNAME
valueFrom:
Expand Down Expand Up @@ -274,10 +298,16 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 5000
resources:
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "1Gi"
env:
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
env:
- name: MONGODB_USERNAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -321,8 +351,14 @@ spec:
ports:
- containerPort: 5000
resources:
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
ephemeral-storage: "1Gi"
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"
env:
- name: MONGODB_USERNAME
valueFrom:
Expand Down Expand Up @@ -382,9 +418,15 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 5000
resources:
limits:
ephemeral-storage: "2Gi"
requests:
cpu: "100m"
memory: "150Mi"
ephemeral-storage: "100Mi"
limits:
cpu: "300m"
memory: "500Mi"
ephemeral-storage: "300Mi"

---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 802bc11

Please sign in to comment.