• Kubernetes Submit Queue's avatar
    Merge pull request #42147 from bowei/ip-alias-2 · ceccd305
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Add support for IP aliases for pod IPs (GCP alpha feature)
    
    ```release-note
    Adds support for allocation of pod IPs via IP aliases.
    
    # Adds KUBE_GCE_ENABLE_IP_ALIASES flag to the cluster up scripts (`kube-{up,down}.sh`).
    
    KUBE_GCE_ENABLE_IP_ALIASES=true will enable allocation of PodCIDR ips
    using the ip alias mechanism rather than using routes. This feature is currently
    only available on GCE.
    
    ## Usage
    $ CLUSTER_IP_RANGE=10.100.0.0/16 KUBE_GCE_ENABLE_IP_ALIASES=true bash -x cluster/kube-up.sh
    
    # Adds CloudAllocator to the node CIDR allocator (kubernetes-controller manager).
    
    If CIDRAllocatorType is set to `CloudCIDRAllocator`, then allocation
    of CIDR allocation instead is done by the external cloud provider and
    the node controller is only responsible for reflecting the allocation
    into the node spec.
    
    - Splits off the rangeAllocator from the cidr_allocator.go file.
    - Adds cloudCIDRAllocator, which is used when the cloud provider allocates
      the CIDR ranges externally. (GCE support only)
    - Updates RBAC permission for node controller to include PATCH
    ```
    ceccd305
controllermanager.go 20.2 KB