Skip to content

Commit

Permalink
priorityClassName for awsEcrRegistryCleaner and binderhub-container-r…
Browse files Browse the repository at this point in the history
…egistry-helper
  • Loading branch information
manics committed Nov 3, 2023
1 parent c18ef48 commit 85bf8b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/curvenote.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
projectName: curvenote

binderhub:
# TODO: priorityClassName: binderhub-core
replicas: 1
config:
BinderHub:
Expand Down Expand Up @@ -245,13 +246,15 @@ binderhub:
maxAge: 3600

imageCleaner:
# TODO: priorityClassName: binderhub-core
enabled: true
# Use 40GB as upper limit, size is given in bytes
imageGCThresholdHigh: 40e9
imageGCThresholdLow: 30e9
imageGCThresholdType: "absolute"

cryptnono:
# TODO: priorityClassName: binderhub-core
enabled: true

grafana:
Expand Down Expand Up @@ -308,6 +311,7 @@ analyticsPublisher:
enabled: false

minesweeper:
# TODO: priorityClassName: binderhub-core
enabled: true

priorityClasses:
Expand All @@ -316,6 +320,7 @@ priorityClasses:
binderhub-container-registry-helper:
enabled: true
# auth_token: Autogenerated
priorityClassName: binderhub-core
replicaCount: 1
serviceAccount:
name: binderhub-container-registry-helper
Expand All @@ -324,6 +329,7 @@ binderhub-container-registry-helper:

awsEcrRegistryCleaner:
enabled: true
priorityClassName: binderhub-core
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::166088433508:role/binderhub-IRSA-aws-binderhub-ecr-registry-cleaner"
3 changes: 3 additions & 0 deletions mybinder/templates/aws-ecr-registry-cleaner/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ spec:
value: user
serviceAccountName: binderhub-ecr-registry-cleaner
{{- end }}
{{- with .Values.awsEcrRegistryCleaner.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
1 change: 1 addition & 0 deletions mybinder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -609,3 +609,4 @@ awsEcrRegistryCleaner:
serviceAccount:
name: binderhub-ecr-registry-cleaner
annotations: {}
priorityClassName: ""

0 comments on commit 85bf8b8

Please sign in to comment.