• Kubernetes Submit Queue's avatar
    Merge pull request #40843 from luomiao/photon-cloud-provider-authentication-update · 9c0e46bd
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41756, 36344, 34259, 40843, 41526)
    
    Update Photon Controller cloud provider for authentication support
    
    Resolve Issue: [#40755](https://github.com/kubernetes/kubernetes/issues/40755)
    1. Update the configuration file for Photon Controller cloud provider
    2. Only master nodes can communicate with Photon Controller endpoint
    3. Enable support for authentication-enabled Photon Controller endpoint
    4. Update NodeAddresses function for query from local node
    
    New format of photon controller config file:
    ```
    [Global]
    target = https://[LOAD_BALANCER_IP]:443
    project = [PROJECT ID]
    overrideIP = true
    vmID = [LOCAL VM ID]
    authentication = true
    ```
    This config file will be automatically created by Photon Controller cluster management.
    
    If authentication file is set to true, then a pc_login_info file should be placed under /etc/kubernetes with username and password.
    This file can be created by user directly.
    Or the user can choose to use kubernetes secret and a handling pod to avoid directly login to master nodes. This usage will be available with Photon Controller 1.2.
    This is a temporary solution before metadata service becomes available in Photon Controller.
    9c0e46bd
Name
Last commit
Last update
..
providers Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
cloud.go Loading commit data...
doc.go Loading commit data...
plugins.go Loading commit data...