Skip to content

Commit 67039fd

Browse files
committed
Resources updates
1 parent df316d9 commit 67039fd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

code/kubernetes/mongo/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ spec:
1919
- containerPort: 27017
2020
resources:
2121
requests:
22-
cpu: 200m
22+
cpu: 300m
2323
memory: 700Mi
2424
limits:
25-
cpu: 800m
25+
cpu: 1000m
2626
memory: 1.2Gi
2727
env:
2828
- name: MONGO_INITDB_DATABASE
@@ -73,4 +73,4 @@ spec:
7373
- ReadWriteOnce
7474
resources:
7575
requests:
76-
storage: 2Gi
76+
storage: 5Gi

code/kubernetes/scripts/create-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gcloud config set project $PROJECT_ID
1111
gcloud container clusters create $CLUSTER_NAME \
1212
--num-nodes=3 \
1313
--enable-autoscaling \
14-
--min-nodes=1 \
14+
--min-nodes=3 \
1515
--max-nodes=5 \
1616
--machine-type=$MACHINE_TYPE \
1717
--zone=$ZONE \

code/kubernetes/traefik/hpa-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
kind: Deployment
99
name: traefik
1010
minReplicas: 1
11-
maxReplicas: 3
11+
maxReplicas: 4
1212
metrics:
1313
- type: Resource
1414
resource:

0 commit comments

Comments
 (0)