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
gce: when using only ipv6, we don't need a CNI to set up the network. #15930
base: master
Are you sure you want to change the base?
Conversation
IPv6 addresses are "real" addresses, and don't need any further configuration on GCE.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold as @aojea suggested this might be done for us in the latest CCM |
if condition.Type == "NetworkUnavailable" { | ||
if condition.Status == corev1.ConditionTrue { | ||
newCondition := metav1.Condition{ | ||
Message: "Node has IPv6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message: "Node has IPv6", | |
Message: "Node is IPv6-only", |
Unrelated to this PR, but consider updating the GCP node identifier to use the non-legacy interface. |
@@ -139,6 +147,46 @@ func (r *GCEIPAMReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct | |||
} | |||
} | |||
|
|||
if len(node.Spec.PodCIDRs) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can make this simpler , this field is already validated in the apiserver https://github.com/kubernetes/kubernetes/blob/54d42e6a658f84ea66593d3107f41db6931a5fbf/pkg/apis/core/validation/validation.go#L4247-L4281 , so if there are two values , they are ipv4 and ipv6
if len(node.Spec.PodCIDRs) != 0 { | |
netutils "k8s.io/utils/net" | |
if len(node.Spec.PodCIDRs) != 1 { | |
return ctrl.Result{}, nil | |
} | |
if netutils.IsIPv4CIDR(node.Spec.PodCIDRs[0]) { | |
return ctrl.Result{}, nil | |
} | |
... | |
patch condition here to unset NetworkUnavailable | |
... | |
/hold cancel the cloud provider gcp will take some time because the ipam code changes are not straightforward, this ipam here is pretty neat and simple and will allow us to iterate faster |
@justinsb: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
IPv6 addresses are "real" addresses, and don't need any further
configuration on GCE.