Skip to content

Commit

Permalink
Update limits
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Oct 1, 2021
1 parent bbf3d75 commit d0c3dd1
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 313 deletions.
4 changes: 0 additions & 4 deletions bin/ci-update-deployments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ mkdir -p "$CURRENT_DIR/../updated-kubernetes-configs"
envsubst < "$CURRENT_DIR/../kubernetes/quizzes-ingress.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/quizzes-ingress.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/backend-deployment.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/backend-deployment.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/backendv2-deployment.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/backendv2-deployment.yaml"
# envsubst < "$CURRENT_DIR/../kubernetes/migrate-quiznator-data-cronjob.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/migrate-quiznator-data-cronjob.yaml"
# envsubst < "$CURRENT_DIR/../kubernetes/create-user-quiz-states-cronjob.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/create-user-quiz-states-cronjob.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/dashboard-deployment.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/dashboard-deployment.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/dashboardv2-deployment.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/dashboardv2-deployment.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/kafka-batch-producer-cronjob.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/kafka-batch-producer-cronjob.yaml"
# envsubst < "$CURRENT_DIR/../kubernetes/update-quiz-item-answer-correct-cronjob.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/update-quiz-item-answer-correct-cronjob.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/refresh-reaktor-view-cronjob.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/refresh-reaktor-view-cronjob.yaml"
envsubst < "$CURRENT_DIR/../kubernetes/kafka-background-producer-deployment.yaml" > "$CURRENT_DIR/../updated-kubernetes-configs/kafka-background-producer-deployment.yaml"

Expand Down
10 changes: 5 additions & 5 deletions kubernetes/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
selector:
matchLabels:
app: quizzes-backend
replicas: 5
replicas: 1
template:
metadata:
labels:
Expand All @@ -18,11 +18,11 @@ spec:
imagePullPolicy: Always
resources:
requests:
memory: "200Mi"
cpu: "100m"
memory: "100Mi"
cpu: "10m"
limits:
memory: "1000Mi"
cpu: "500m"
memory: "200Mi"
cpu: "50m"
readinessProbe:
httpGet:
path: /api/healthz
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/backendv2-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ spec:
resources:
requests:
memory: "200Mi"
cpu: "100m"
cpu: "50m"
limits:
memory: "1000Mi"
memory: "500Mi"
cpu: "500m"
# readinessProbe:
# httpGet:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/course-expired-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
command: ["npm", "run", "update-expired-courses"]
resources:
requests:
memory: "1000Mi"
memory: "500Mi"
env:
- name: REDIS_HOST
value: "quizzes-backend-redis-master.default.svc.cluster.local"
Expand Down
80 changes: 0 additions & 80 deletions kubernetes/create-user-quiz-states-cronjob.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions kubernetes/dashboard-deployment.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions kubernetes/dashboard-service.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions kubernetes/dashboardv2-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ spec:
imagePullPolicy: Always
resources:
requests:
memory: "100Mi"
cpu: "50m"
limits:
memory: "200Mi"
cpu: "100m"
limits:
memory: "1000Mi"
cpu: "500m"
ports:
- name: dv2-http
containerPort: 5000
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kafka-background-producer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
imagePullPolicy: Always
resources:
requests:
memory: "200Mi"
memory: "300Mi"
cpu: "100m"
limits:
memory: "500Mi"
Expand Down
80 changes: 0 additions & 80 deletions kubernetes/migrate-quiznator-data-cronjob.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion kubernetes/refresh-reaktor-view-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
command: ["sh", "-c", "cd /app && npm run refresh-reaktor-view"]
resources:
requests:
memory: "1000Mi"
memory: "100Mi"
env:
- name: REDIS_HOST
value: "quizzes-backend-redis-master.default.svc.cluster.local"
Expand Down
95 changes: 0 additions & 95 deletions kubernetes/update-quiz-item-answer-correct-cronjob.yaml

This file was deleted.

0 comments on commit d0c3dd1

Please sign in to comment.