Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-8676

For IPv6-primary dual-stack cluster, kubelet.service renders only single node-ip

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      When implementing support for IPv6-primary dual-stack clusters, we have extended the available IP families to

      const (
      	IPFamiliesIPv4                 IPFamiliesType = "IPv4"
      	IPFamiliesIPv6                 IPFamiliesType = "IPv6"
      	IPFamiliesDualStack            IPFamiliesType = "DualStack"
      	IPFamiliesDualStackIPv6Primary IPFamiliesType = "DualStackIPv6Primary"
      )
      

      At the same time definitions of kubelet.service systemd unit still contain the code

      {{- if eq .IPFamilies "DualStack"}}
              --node-ip=${KUBELET_NODE_IPS} \
      {{- else}}
              --node-ip=${KUBELET_NODE_IP} \
      {{- end}}
      

      which only matches the "old" dual-stack family. Because of this, an IPv6-primary dual-stack renders node-ip param with only 1 IP address instead of 2 as required in dual-stack.

              mkowalsk@redhat.com Mat Kowalski
              mkowalsk@redhat.com Mat Kowalski
              Rio Liu Rio Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: