This repository has been archived by the owner on Jul 1, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds GCE Alias IP support for flannel. The feature is enabled by setting
FLANNEL_GCE_NETWORK_USE_ALIAS_IP=true
.The code paths between static route support and alias IP support were separated in
RegisterNetwork()
to avoid crossing any lines between the two features. Static routes should still work and remain the default.The bulk of the changes are under
backend/gce
and only a few hundred lines, but the GCP SDK required a large update invendor
to support the alias IP part of the API.As mentioned in the code, the following needs to be set in
/etc/default/instance_configs.cfg
before the installation process:and then run
systemctl restart google-guest-agent.service
. This prevents the google guest agent from installing a conflicting route that will break pod networking.Todos
Release Note