Merged
Conversation
The operator was hardcoding `--host 0.0.0.0` when starting Prefect servers, which prevented them from running in IPv6-only Kubernetes clusters. This adds an optional `host` field to the PrefectServerSpec that lets users configure the bind address. Changes: - Added `host` field to PrefectServerSpec (defaults to "0.0.0.0" for backward compatibility) - Fixed typo: EntrypointArugments → EntrypointArguments (kept deprecated wrapper) - Users can now set `host: "::"` for IPv6-only or `host: ""` for dual-stack environments - Added tests and sample configurations for different scenarios - Fixed Makefile generate target to work with macOS BSD sed The implementation follows the pattern used elsewhere in the codebase (like Postgres host configuration) and maintains full backward compatibility. The Prefect Helm chart handles this correctly, and now the operator does too. Closes #224 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
The Makefile sed fix and .mise.toml comment were environment-specific changes not related to IPv6 support. Keeping the PR focused on just the IPv6 feature.
After testing, we found that Prefect rejects '::' as an invalid host value. The working approach is to use an empty string which tells uvicorn to bind to all available interfaces (works for IPv4, IPv6, and dual-stack environments). Changes: - Updated sample files to use host: "" instead of host: "::" - Updated code comments to clarify correct usage - Updated all tests to use empty string - Consolidated duplicate dual-stack test This matches how the Prefect Helm chart works (by not specifying --host at all, letting uvicorn use its defaults).
jamiezieziula
approved these changes
Dec 10, 2025
chrisguidry
approved these changes
Dec 10, 2025
Since this is an internal method (not part of the public API), we don't need backward compatibility. End users only interact with the CRD spec, not Go methods. Just keep the correctly spelled EntrypointArguments.
|
Hi, @mitchnielsen . Thanks for your help! Do you plan to release a new version of the chart with this enhancement? |
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The operator was hardcoding
--host 0.0.0.0when starting Prefect servers, which prevented them from running in IPv6-only Kubernetes clusters. This adds an optionalhostfield to the PrefectServerSpec that lets users configure the bind address.Changes:
hostfield to PrefectServerSpec (defaults to "0.0.0.0" for backward compatibility)host: ""(empty string) for IPv6-only or dual-stack environmentsHow it works
When
hostis set to""(empty string), uvicorn binds to all available interfaces, which works for:Note: Prefect's CLI rejects
::as an invalid host value, so we use empty string instead.The implementation follows the pattern used elsewhere in the codebase (like Postgres host configuration) and maintains full backward compatibility. The Prefect Helm chart handles this by not specifying
--hostat all, and now the operator provides explicit control when needed.Closes #224
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 (1M context) noreply@anthropic.com