@@ -25,10 +25,14 @@ mkdir -p $GOPATH
25
25
export PATH=$PATH :$GOPATH /bin
26
26
```
27
27
28
- 4 . Install the govc tool to interact with ESXi/vCenter:
28
+ 4 . Install the govc tool to interact with ESXi/vCenter. Head to [ govc Releases ] ( https://github.com/vmware/govmomi/releases ) to download the latest.
29
29
30
30
``` shell
31
- go get github.com/vmware/govmomi/govc
31
+ # Sample commands for v0.8.0 for 64 bit Linux.
32
+ curl -OL https://github.com/vmware/govmomi/releases/download/v0.8.0/govc_linux_amd64.gz
33
+ gzip -d govc_linux_amd64.gz
34
+ chmod +x govc_linux_amd64
35
+ mv govc_linux_amd64 /usr/local/bin/govc
32
36
```
33
37
34
38
5 . Get or build a [ binary release] ( /docs/getting-started-guides/binary_release )
@@ -43,7 +47,7 @@ md5sum -c kube.vmdk.gz.md5
43
47
gzip -d kube.vmdk.gz
44
48
```
45
49
46
- Import this VMDK into your vSphere datastore:
50
+ Configure the environment for govc
47
51
48
52
``` shell
49
53
export GOVC_URL=' hostname' # hostname of the vc
@@ -52,9 +56,30 @@ export GOVC_PASSWORD='password' # password for the above username
52
56
export GOVC_NETWORK=' Network Name' # Name of the network the vms should join. Many times it could be "VM Network"
53
57
export GOVC_INSECURE=1 # If the host above uses a self-signed cert
54
58
export GOVC_DATASTORE=' target datastore'
59
+ # To get resource pool via govc: govc ls -l 'host/*' | grep ResourcePool | awk '{print $1}' | xargs -n1 -t govc pool.info
55
60
export GOVC_RESOURCE_POOL=' resource pool or cluster with access to datastore'
56
61
export GOVC_GUEST_LOGIN=' kube:kube' # Used for logging into kube.vmdk during deployment.
62
+ export GOVC_PORT=443 # The port to be used by vSphere cloud provider plugin
63
+ # To get datacente via govc: govc datacenter.info
64
+ export GOVC_DATACENTER=' ha-datacenter' # The datacenter to be used by vSphere cloud provider plugin
65
+ ```
66
+
67
+ Sample environment
68
+ ``` shell
69
+ export GOVC_URL=' 10.161.236.217'
70
+ export GOVC_USERNAME=' administrator'
71
+ export GOVC_PASSWORD=' MyPassword1'
72
+ export GOVC_NETWORK=' VM Network'
73
+ export GOVC_INSECURE=1
74
+ export GOVC_DATASTORE=' datastore1'
75
+ export GOVC_RESOURCE_POOL=' /Datacenter/host/10.20.104.24/Resources'
76
+ export GOVC_GUEST_LOGIN=' kube:kube'
77
+ export GOVC_PORT=' 443'
78
+ export GOVC_DATACENTER=' Datacenter'
79
+ ```
57
80
81
+ Import this VMDK into your vSphere datastore:
82
+ ``` shell
58
83
govc import.vmdk kube.vmdk ./kube/
59
84
```
60
85
@@ -63,6 +88,7 @@ Verify that the VMDK was correctly uploaded and expanded to ~3GiB:
63
88
``` shell
64
89
govc datastore.ls ./kube/
65
90
```
91
+
66
92
If you need to debug any part of the deployment, the guest login for
67
93
the image that you imported is ` kube:kube ` . It is normally specified
68
94
in the GOVC_GUEST_LOGIN parameter above.
@@ -110,7 +136,7 @@ going on (find yourself authorized with your SSH key, or use the password
110
136
111
137
IaaS Provider | Config. Mgmt | OS | Networking | Docs | Conforms | Support Level
112
138
-------------------- | ------------ | ------ | ---------- | --------------------------------------------- | ---------| ----------------------------
113
- Vmware vSphere | Saltstack | Debian | OVS | [ docs] ( /docs/getting-started-guides/vsphere ) | | Community ([ @imkin ] ( https://github.com/imkin ) )
139
+ Vmware vSphere | Saltstack | Debian | OVS | [ docs] ( /docs/getting-started-guides/vsphere ) | | Community ([ @imkin ] ( https://github.com/imkin ) ), ( [ @ abrarshivani ] ( https://github.com/abrarshivani ) ), ( [ @ kerneltime ] ( https://github.com/kerneltime ) ), ( [ @ kerneltime ] ( https://github.com/luomiao ) )
114
140
115
141
For support level information on all solutions, see the [ Table of solutions] ( /docs/getting-started-guides/#table-of-solutions ) chart.
116
142
0 commit comments