Skip to content

feat: select specific nodes for image builds - #672

Merged
leafty merged 4 commits into
kpack-resourcesfrom
leafty/node-selection
Feb 28, 2025
Merged

leafty merged 4 commits into
kpack-resourcesfrom
leafty/node-selection

Conversation

@leafty

@leafty leafty commented Feb 25, 2025 •

Copy link
Copy Markdown
Member

Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.

Related PR: SwissDataScienceCenter/renku#3920

Note: as tests are not running against k8s for now, there is no test added for this PR.

The values in the deploy string below correspond to:

nodeSelector:
  renku.io/node-purpose: image-build
tolerations:
  - effect: NoSchedule
    key: renku.io/dedicated
    operator: Equal
    value: image-build

/deploy #notest renku=leafty/node-selection renku-notebooks=leafty/shipwright-buildrun-cache renku-ui=build/session-env-builders extra-values=dataService.imageBuilders.enabled=true,dataService.imageBuilders.pushSecretName=flora-docker-secret,dataService.imageBuilders.buildRunRetentionAfterFailedSeconds=86400,dataService.imageBuilders.nodeSelector.renku.io/node-purpose=image-build,dataService.imageBuilders.tolerations[0].key=renku.io/dedicated,dataService.imageBuilders.tolerations[0].operator=Equal,dataService.imageBuilders.tolerations[0].effect=NoSchedule,dataService.imageBuilders.tolerations[0].value=image-build,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/flora-dev/

@leafty
leafty temporarily deployed to renku-ci-ds-672 February 25, 2025 15:15 — with GitHub Actions Inactive
@RenkuBot

Copy link
Copy Markdown
Contributor

@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 06:40 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 08:19 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 08:39 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 08:44 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 08:49 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 08:55 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 26, 2025 12:05 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 27, 2025 09:43 — with GitHub Actions Inactive
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 27, 2025 10:04 — with GitHub Actions Inactive
@leafty
leafty marked this pull request as ready for review February 27, 2025 10:15
@leafty
leafty requested a review from a team as a code owner February 27, 2025 10:15
@leafty
leafty temporarily deployed to renku-ci-ds-672 February 27, 2025 10:15 — with GitHub Actions Inactive
@leafty
leafty merged commit bea9db0 into kpack-resources Feb 28, 2025
@leafty
leafty deleted the leafty/node-selection branch February 28, 2025 10:06
@RenkuBot

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

Panaetius pushed a commit that referenced this pull request Feb 28, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.
Panaetius pushed a commit that referenced this pull request Mar 3, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.
Panaetius pushed a commit that referenced this pull request Mar 5, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.
leafty added a commit that referenced this pull request Mar 5, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.
Panaetius pushed a commit that referenced this pull request Mar 6, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.
leafty added a commit that referenced this pull request Mar 6, 2025
Add support for configuring node selector and tolerations for container image builds.

The node selector and tolerations are added to the Shipwright BuildRun object which in turn are added to the Pod running the image build.

This branch was successfully deployed

1 active deployment
renku-ci-ds-672 — a50d4398 Deployed Feb 28, 2025 by leafty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants