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

Deploying on IPv6 only clusters fail with defaults #10370

Closed
frederictobiasc opened this issue Sep 6, 2023 · 5 comments
Closed

Deploying on IPv6 only clusters fail with defaults #10370

frederictobiasc opened this issue Sep 6, 2023 · 5 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@frederictobiasc
Copy link

frederictobiasc commented Sep 6, 2023

What happened:

I tried to deploy the chart on a k3s cluster with IP Family = IPv6.

The following error occured:

Error: INSTALLATION FAILED: 1 error occurred:
	* Service "ingress-nginx-controller" is invalid: spec.ipFamilies[0]: Invalid value: "IPv4": not configured on this cluster

What you expected to happen:

I expected the chart to be deployed successfully in standard configuration with only IPv6 IP Family enabled.

The documentation states, that the field controller.service.ipFamilies is assigned automatically.

NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):

Kubernetes version (use kubectl version):

Environment:

  • Cloud provider or hardware configuration: QEMU x86 VM
  • OS (e.g. from /etc/os-release): NixOS 23.11 (Tapir)
  • Kernel (e.g. uname -a): Linux 6.1.37 NixOS SMP PREEMPT_DYNAMIC Sat Jul 1 11:16:27 UTC 2023 x86_64 GNU/Linux
  • Install tools: klipper-helm
  • Basic cluster related info:
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.4+k3s1", GitCommit:"8d0255af07e95b841952563253d27b0d10bd72f0", GitTreeState:"clean", BuildDate:"1970-01-01T01:01:01Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.4+k3s1", GitCommit:"8d0255af07e95b841952563253d27b0d10bd72f0", GitTreeState:"clean", BuildDate:"1970-01-01T01:01:01Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}
  • kubectl get nodes -o wide

  • Others:

How to reproduce this issue:

Create a basic k3s cluster with IpFamily = IPv6.

Anything else we need to know:

This has been reported before, but no fix so far:
Related issue: #8175

Workaround (from issue above)

# Modify the defaults:
controller.service.ipFamilyPolicy=null
controller.service.ipFamilies=null
@frederictobiasc frederictobiasc added the kind/bug Categorizes issue or PR as related to a bug. label Sep 6, 2023
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Sep 6, 2023
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@longwuyuan
Copy link
Contributor

/remove-kind bug

I don't think there is a CI test for SingleStack+ipv6.

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. and removed kind/bug Categorizes issue or PR as related to a bug. labels Sep 11, 2023
@github-actions
Copy link

This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev on Kubernetes Slack.

@github-actions github-actions bot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Oct 12, 2023
@longwuyuan
Copy link
Contributor

There are values file key:value pairs that you can play with a see if its possible to install on ipv6 only cluster.
That is line 518 of the values file of the helm chart.

if you dont use helm then manual set the ipfamilies spec.

/close

@k8s-ci-robot
Copy link
Contributor

@longwuyuan: Closing this issue.

In response to this:

There are values file key:value pairs that you can play with a see if its possible to install on ipv6 only cluster.
That is line 518 of the values file of the helm chart.

if you dont use helm then manual set the ipfamilies spec.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

3 participants