-
Notifications
You must be signed in to change notification settings - Fork 40.6k
Remove VCenterPort from vsphere cloud provider. #42024
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
Remove VCenterPort from vsphere cloud provider. #42024
Conversation
The url which is used for communicating with govmomi should not include port number. A port number other than 443 will result in 404 error. VCenterPort stays in VSphereConfig structure for backward compatibility.
@k8s-bot cvm gke e2e test this |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED The following people have approved this PR: jingxu97, luomiao Needs approval from an approver in each of these OWNERS Files: We suggest the following people: |
@k8s-bot gci gce e2e test this |
Automatic merge from submit-queue |
Automatic merge from submit-queue (batch tested with PRs 49665, 49689, 49495, 49146, 48934) Reverting deprecation of vCenter port in vSphere Cloud Provider **What this PR does / why we need it**: This PR reverts back the deprecation of vCenter port made with PR: #42024 We observed an issue when kubernetes cluster is deployed on the vCenter with non-default Port. When VC is configured with non default port govmomi requests were going to default port 443. This is not valid, as confirmed in vmware/govmomi#802 **Which issue this PR fixes** fixes # vmware-archive#220 **Special notes for your reviewer**: Verified with deploying Kubernetes Cluster on the vCenter with port (7443). Used following vsphere.conf file on master and worker nodes ``` # cat vsphere.conf [Global] user = "[email protected]" password = "Admin!23" server = "10.192.87.209" port = "7443" insecure-flag = "1" datacenter = "Datacenter" datastore = "storage1" working-dir = "kubernetes" [Disk] scsicontrollertype = pvscsi ``` Created Storage Class, PV, PVC and Pod. Verified Attach, Detach, Create and Delete Volume Operations are working as expected. Also verified with completely removing port from vsphere.conf file. default 443 is used in this case. ``` # cat vsphere.conf [Global] user = "[email protected]" password = "Admin!23" server = "10.192.66.216" insecure-flag = "1" datacenter = "Datacenter" datastore = "storage1" working-dir = "kubernetes" [Disk] scsicontrollertype = pvscsi ``` **Release note**: ```release-note NONE ``` @luomiao @BaluDontu @tusharnt @rohitjogvmw
What this PR does / why we need it:
Address a bug inside vsphere cloud provider when a port number other than 443 is specified inside the config file.
The url which is used for communicating with govmomi should not include port number.
A port number other than 443 will result in 404 error.
VCenterPort stays in VSphereConfig structure for backward compatibility.
Which issue this PR fixes : fixes kubernetes-retired/kubernetes-anywhere#338