Skip to content

Commit

Permalink
Merge pull request #2814 from manics/priorityClassName
Browse files Browse the repository at this point in the history
Curvenote: set priorityClassName for awsEcrRegistryCleaner binderhub-container-registry-helper
  • Loading branch information
manics authored Nov 3, 2023
2 parents f461f9e + 85bf8b8 commit 9f6f673
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
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"
2 changes: 1 addition & 1 deletion mybinder/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ dependencies:
# Registry helper, used to create container repositories before pushing and to
# fetch dynamic registry credentials
- name: binderhub-container-registry-helper
version: 0.2.3
version: 0.2.4
repository: https://www.manicstreetpreacher.co.uk/binderhub-container-registry-helper/
condition: binderhub-container-registry-helper.enabled
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 9f6f673

Please sign in to comment.