Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure on IPv6 single stack cluster #1548

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Fix failure on IPv6 single stack cluster #1548

merged 1 commit into from
Dec 18, 2024

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Dec 18, 2024

When FLUENT_FILTER_KUBERNETES_URL is not set, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT are used as a fallback.

When applying such a fallback, it will fail on only IPv6 is available. It causes the following error:

/usr/local/lib/ruby/3.2.0/uri/rfc3986_parser.rb:66:in `split': bad
URI(is not URI?):
"https://IPV6_ADDRESS:443/api" (URI::InvalidURIError)

IPv6 address must be enclosed with square brackets.

Closes: #1546

When FLUENT_FILTER_KUBERNETES_URL is not set, KUBERNETES_SERVICE_HOST
and KUBERNETES_SERVICE_PORT are used as a fallback.

When applying such a fallback, it will fail on only IPv6 is available.
It causes the following error:

  /usr/local/lib/ruby/3.2.0/uri/rfc3986_parser.rb:66:in `split': bad
  URI(is not URI?):
  "https://IPV6_ADDRESS:443/api" (URI::InvalidURIError)

IPv6 address must be enclosed with square brackets.

Closes: #1546
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys kenhys merged commit bb2e69e into master Dec 18, 2024
36 checks passed
@kenhys kenhys deleted the fix-ipv6-only branch December 18, 2024 04:58
@kenhys
Copy link
Contributor Author

kenhys commented Dec 18, 2024

Thanks!

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.

Initialization of kubeclient fails when running in IPv6 single stack cluster
2 participants