Closed embano1 closed 6 years ago
Followed improved documentation for deployment of k8s 1.9, having trouble understanding datacenters variable in case of whitespace in the name. Example expected vsphere.conf:
EDITED went with, there is still ambiguity though, since VCs are clustered and can manage each others:
[Global]
user = "k8s_service"
password = "xxxx"
port = "443"
insecure-flag = "1"
[VirtualCenter "first.dc.example.com"]
datacenters = "First DataCenter"
[VirtualCenter "second.dc.example.com"]
datacenters = "Second DataCenter"
[Disk]
scsicontrollertype = pvscsi
[Workspace]
server = "first.dc.example.com"
datacenter = "First DataCenter"
folder = "/OpenShift/"
default-datastore = "FIRST-DS"
@alesz whitespaces should be handled correctly, e.g. here's the code for v1.9 VCP:
datacenters := strings.Split(vsi.cfg.Datacenters, ",")
for _, dc := range datacenters {
dc = strings.TrimSpace(dc)
if dc == "" {
continue
}
Thanks, updated to:
[Global]
datacenters = "First DataCenter, Second DataCenter"
and removed entries under VirtualCenter sections
:+1:
Also do we even need vsphere.conf
on worker nodes for kube > 1.9 ?
@MQasimSarfraz just the --cloud-provider
flag for kubelet.
Thanks @embano1. Some installers e.g kubespray are still putting them on worker nodes. So needs to be updated.
Addressed Requested Changes with this PR - https://github.com/vmware/vsphere-storage-for-kubernetes/pull/39
Is this a BUG REPORT or FEATURE REQUEST?:
What happened: Improve VCP documentation (https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/index.html).
What you expected to happen: As discussed with @divyenpatel
--cloud-provider=vsphere
flag (no credentials, reducing attack surface on credentials)kubelet
for VCP to worksecret
to DaemonSet running on workers when using VCP UX deployment script/mechanismHow to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):uname -a
):