GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Wait for the CoreDNS rollout in func cluster create by gauron99 · Pull Request #4038 · knative/func

Conversation

@gauron99

@gauron99 gauron99 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Changes

  • 🐛 func cluster create waited for every kube-system pod to be Ready after patching the CoreDNS deployment for Magic DNS. The old CoreDNS pods are terminating after the patch and never become Ready again, so on hosts where they took more than 60s to go the wait timed out and the whole cluster was torn down at its last step. The step now waits for the CoreDNS deployment rollout (kubectl rollout status), which ends when the new pods are available and the old ones are gone.

hack/cluster.sh, from which this was ported, has the same sleep-and-wait pattern with a 15s timeout. It is left as is here.

/kind bug

Seen on a docker host (kind 0.31.0, kindest/node v1.34.0): the first attempt failed with timed out waiting for the condition on pods/coredns-... for the old ReplicaSet's pods while the new ones had already reported condition met. With the rollout wait the same host completes: Waiting for deployment "coredns" rollout to finish: 1 old replicas are pending termination... then successfully rolled out.

Release Note

`func cluster create` no longer fails at the Magic DNS step when the previous CoreDNS pods take a while to terminate.

Docs


Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gauron99
fix: wait for the coredns rollout in func cluster create
dcb4157
Magic DNS patched the coredns deployment, slept, then waited for every
kube-system pod to be Ready. The old coredns pods are terminating after
the patch and never become Ready again, so the wait timed out after 60s
on hosts where they took a while to go, and the whole cluster was torn
down at the very last step. Wait for the deployment rollout instead: the
new pods are available and the old ones are gone. hack/cluster.sh has
the same sleep-and-wait, from which this was ported.
@knative-prow knative-prow Bot added the kind/bug Bugs label Sep 2, 2026
@knative-prow
knative-prow Bot requested review from dsimansk and jrangelramos September 2, 2026 20:41
@knative-prow knative-prow Bot added approved 🤖 PR has been approved by an approver from all required OWNERS files. size/S 🤖 PR changes 10-29 lines, ignoring generated files. labels Sep 2, 2026
@gauron99
gauron99 requested review from lkingland and a balanced review from Copilot and removed request for dsimansk and jrangelramos September 2, 2026 20:41
Copilot started reviewing on behalf of gauron99 September 2, 2026 20:47
View session
Copilot AI reviewed Sep 2, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change correctly avoids waiting on terminating CoreDNS pods.

Pull request overview

Updates Magic DNS setup to reliably wait for the CoreDNS deployment rollout.

Changes:

  • Replaces the pod readiness wait with kubectl rollout status.
  • Extends the timeout to 120 seconds and improves error context.
File summaries
File Description
pkg/cluster/dns.go Waits for the patched CoreDNS deployment rollout.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gauron99 gauron99 mentioned this pull request Sep 2, 2026
feat: Remote git builds need no local checkout and build the commit they read #4039
Closed
@gauron99
gauron99 requested a review from matejvasek September 3, 2026 05:04
lkingland
lkingland approved these changes Sep 3, 2026
View reviewed changes
@knative-prow knative-prow Bot assigned lkingland Sep 3, 2026
@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Sep 3, 2026
@knative-prow

knative-prow Bot commented Sep 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, 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:
  • OWNERS [gauron99,lkingland]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow
knative-prow Bot merged commit f0371e9 into knative:main Sep 3, 2026
44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gauron99
gauron99 deleted the cluster-coredns-rollout branch October 21, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@lkingland lkingland lkingland approved these changes
@matejvasek matejvasek Awaiting requested review from matejvasek

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lkingland lkingland

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/S 🤖 PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@gauron99 @lkingland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.