Skip to content

Commit

Permalink
fix: avg memory syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrrypg committed Jul 12, 2023
1 parent d232949 commit 85136b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions tutorcodejail/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"REQUEST_CPU": "512m",
"REQUEST_MEMORY": "512Mi",
"ENABLE_HPA": False,
"HPA_MIN_REPLICAS": 1,
"HPA_MAX_REPLICAS": 4,
"MIN_REPLICAS": 1,
"MAX_REPLICAS": 4,
"AVG_CPU": 65,
"AVG_MEMORY": 65
"AVG_MEMORY": "500Mi",
},
"overrides": {},
}
Expand Down Expand Up @@ -91,6 +91,7 @@
[
("codejail/build", "plugins"),
("codejail/apps", "plugins"),
("codejail/k8s", "plugins"),
],
)
# Load patches from files
Expand Down
4 changes: 2 additions & 2 deletions tutorcodejail/templates/codejail/k8s/hpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: codejail-hpa
name: codejail
labels:
app.kubernetes.io/name: codejail-hpa
app.kubernetes.io/name: codejail
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down

0 comments on commit 85136b9

Please sign in to comment.