Skip to content

Fali to create/update placeholder service when k8s open IPv4/IPv6 dual-stack feature #9045

Open

Description

@MIBc

/area API

What version of Knative?

0.15.0

Expected Behavior

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.

Activity

  1. added
    kind/bug
    on Aug 13, 2020
  2. mattmoor commented on Aug 20, 2020

    @mattmoor
    Contributor

    /area API
    /area networking

    cc @tcnghia @nak3 @ZhiminXiang

  3. ZhiminXiang commented on Aug 26, 2020

    @ZhiminXiang

    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.

    WDYT?

  4. mattmoor commented on Aug 27, 2020

    @mattmoor
    Contributor

    Is this something that could be defaulted and we could be taught to preserve?

    Is there a way for us to start testing this?

  5. MIBc commented on Aug 27, 2020

    @MIBc
    ContributorAuthor

    The ipFamily config may be a better way.
    In our environment, I must set the IPFamily in service spec. Otherwise, the error would happen.

  6. github-actions commented on Nov 26, 2020

    @github-actions

    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.

  7. added
    lifecycle/stale
    on Nov 26, 2020
  8. howardjohn commented on Jul 28, 2021

    @howardjohn

    Should this be re-opened?

    You can test ipv6 and dual stack with the latest versions of kind

  9. nak3 commented on Jul 29, 2021

    @nak3
    Contributor

    Yes, I think this should be opened.

  10. reopened this on Jul 29, 2021
  11. removed
    lifecycle/stale
    on Jul 29, 2021
  12. dprotaso commented on Aug 11, 2021

    @dprotaso
    Member

    /lifecycle frozen

  13. added
    lifecycle/frozen
    on Aug 11, 2021
  14. nak3 commented on Aug 23, 2021

    @nak3
    Contributor

    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 set ipFamilyPolicy: RequireDualStack.

  15. dprotaso commented on Nov 24, 2021

    @dprotaso
    Member

    /triage accepted

  16. added
    triage/accepted
    on Nov 24, 2021
  17. added this to the Icebox milestone on Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIarea/networkingkind/buglifecycle/frozentriage/accepted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions