You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fali to create/update placeholder service when k8s open IPv4/IPv6 dual-stack feature #9045
area/APIAPI objects and controllersarea/networkingkind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.triage/acceptedIssues which should be fixed (post-triage)
serving controller can create/update placeholder service without errors
Actual Behavior
If k8s open IPv4/IPv6 dual-stack feature. Knative will return error: "Service is invalid: spec.ipFamily: Required value"
We should a default ipFamily to prevent the error.
We don't set ipFamily for all Knative-generated services. So we probably need to add it to all of those services.
I am thinking about reading ipFamily from a ConfigMap. the ipFamily is empty string by default, which means it will use cluster's primary IP family automatically (see doc). If users explicitly configure their cluster to use the dual-stack, they need to manually set the ipFamily of the ConfigMap, so it can be explicitly added into service spec.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.
area/APIAPI objects and controllersarea/networkingkind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.triage/acceptedIssues which should be fixed (post-triage)
Activity
mattmoor commentedon Aug 20, 2020
/area API
/area networking
cc @tcnghia @nak3 @ZhiminXiang
ZhiminXiang commentedon Aug 26, 2020
We don't set ipFamily for all Knative-generated services. So we probably need to add it to all of those services.
I am thinking about reading
ipFamilyfrom a ConfigMap. theipFamilyis empty string by default, which means it will use cluster's primary IP family automatically (see doc). If users explicitly configure their cluster to use the dual-stack, they need to manually set theipFamilyof the ConfigMap, so it can be explicitly added into service spec.WDYT?
mattmoor commentedon Aug 27, 2020
Is this something that could be defaulted and we could be taught to preserve?
Is there a way for us to start testing this?
MIBc commentedon Aug 27, 2020
The ipFamily config may be a better way.
In our environment, I must set the IPFamily in service spec. Otherwise, the error would happen.
github-actions commentedon Nov 26, 2020
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with
/reopen. Mark the issue asfresh by adding the comment
/remove-lifecycle stale.howardjohn commentedon Jul 28, 2021
Should this be re-opened?
You can test ipv6 and dual stack with the latest versions of
kindnak3 commentedon Jul 29, 2021
Yes, I think this should be opened.
dprotaso commentedon Aug 11, 2021
/lifecycle frozen
nak3 commentedon Aug 23, 2021
kind supports IPv6 but it seems github actions still does not support IPv6 as per actions/runner-images#668
Btw, #11843 will change the placeholder service to
clusterIP: None. And it will setipFamilyPolicy: RequireDualStack.dprotaso commentedon Nov 24, 2021
/triage accepted