Skip to content

Move slim-cluster registry to host port 5001 - #4119

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
aliok:fix-registry-hostport-5001
Oct 30, 2026
Merged

knative-prow[bot] merged 1 commit into
knative:mainfrom
aliok:fix-registry-hostport-5001

Conversation

@aliok

@aliok aliok commented Oct 30, 2026

Copy link
Copy Markdown
Member

Changes

  • 🐛 Scope the in-cluster registry host-port mapping in hack/cluster.sh to serving-less (slim) clusters only, instead of mapping it for every cluster. Full clusters push to the registry through the Contour ingress and need no host mapping.
  • 🐛 Use host port 5001 (not 5000) for that mapping. On macOS the AirPlay Receiver listens on *:5000, so the previous unconditional :5000 mapping made kind create cluster fail to bind — breaking cluster creation for every macOS developer, not just the Kafka job (CI runs on Linux, so it never caught this). A containerd mirror resolves localhost:5001 to the node's registry so pushed images can still be pulled.
  • 🧹 Point the Python Kafka delivery integration test at localhost:5001/func to match.

/kind bug

Release Note


Docs


The slim Kafka integration cluster skips serving, so it has no Contour
ingress and a host-side `func deploy` build+push cannot reach the
in-cluster registry through registry.localtest.me. knative#4111 exposed the
registry by mapping host port 5000 to the node unconditionally, for
every cluster hack/cluster.sh creates.

On macOS the AirPlay Receiver listens on *:5000, so that unconditional
mapping makes `kind create cluster` fail to bind -- breaking cluster
creation for every developer on a Mac, not just the Kafka job. CI runs
on Linux, so it never caught this.

Map the registry to the host only on serving-less clusters (full
clusters push through the ingress and need no host mapping), and use
host port 5001 to dodge AirPlay. The node still serves the registry on
container port 5000; a containerd mirror resolves localhost:5001 to it
so pushed images -- now tagged localhost:5001 -- can be pulled. Update
the Python delivery test to push to localhost:5001.
@knative-prow knative-prow Bot added kind/bug Bugs approved 🤖 PR has been approved by an approver from all required OWNERS files. labels Oct 30, 2026
@knative-prow knative-prow Bot added the size/M 🤖 PR changes 30-99 lines, ignoring generated files. label Oct 30, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Oct 30, 2026
@knative-prow

knative-prow Bot commented Oct 30, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aliok, lkingland

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot merged commit 6bbfab4 into knative:main Oct 30, 2026
45 checks passed
@aliok
aliok deleted the fix-registry-hostport-5001 branch October 30, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. kind/bug Bugs lgtm 🤖 PR is ready to be merged. size/M 🤖 PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants