You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note:** When creating the OVA template via vSphere using the URL method, please make sure the VM template name is the
89
-
same as the value specified by the `VSPHERE_TEMPLATE`and `VSPHERE_HAPROXY_TEMPLATE`environment variables in the
90
-
`envvars.txt` file, taking care of the `.ova` suffix for the template name.
76
+
same as the value specified by the `VSPHERE_TEMPLATE` environment variable in the
77
+
`~/.cluster-api/clusterctl.yaml` file, taking care of the `.ova` suffix for the template name.
91
78
92
79
**Note:** If you are planning to use CNS/CSI then you will need to ensure that the template is at least at VM Hardware
93
80
Version 13, This is done out-of-the-box for images of K8s version `v1.15.4` and above. For versions lower than this you
@@ -125,17 +112,30 @@ VSPHERE_NETWORK: "VM Network" # The VM network t
125
112
VSPHERE_RESOURCE_POOL: "*/Resources"# The vSphere resource pool for your VMs
126
113
VSPHERE_FOLDER: "vm"# The VM folder for your VMs. Set to "" to use the root vSphere folder
127
114
VSPHERE_TEMPLATE: "ubuntu-1804-kube-v1.17.3"# The VM template to use for your management cluster.
128
-
VSPHERE_HAPROXY_TEMPLATE: "capv-haproxy-v0.6.4"# The VM template to use for the HAProxy load balancer
115
+
CONTROL_PLANE_ENDPOINT_IP: "192.168.9.230"# the IP that kube-vip is going to use as a control plane endpoint
116
+
EXP_CLUSTER_RESOURCE_SET: "true"# This enables the ClusterResourceSet feature that we are using to deploy CSI
129
117
VSPHERE_SSH_AUTHORIZED_KEY: "ssh-rsa AAAAB3N..."# The public ssh authorized key on all machines
130
118
# in this cluster.
131
119
# Set to "" if you don't want to enable SSH,
132
120
# or are using another solution.
133
121
```
134
122
123
+
If you are using the **DEPRECATED**`haproxy` flavour you will need to add the following variable to your `clusterctl.yaml`:
124
+
125
+
```yaml
126
+
VSPHERE_HAPROXY_TEMPLATE: "capv-haproxy-v0.6.4"# The VM template to use for the HAProxy load balancer
127
+
```
128
+
135
129
**NOTE**: Technically, SSH keys and vSphere folders are optional, but optional template variables are not currently
136
130
supported by clusterctl. If you need to not set the vSphere folder or SSH keys, then remove the appropriate fields after
137
131
running `clusterctl config`.
138
132
133
+
the `CONTROL_PLANE_ENDPOINT_IP` is an IP that must be an IP on the same subnet as the control plane machines, it should be also an IP that is not part of your DHCP range
134
+
135
+
`CONTROL_PLANE_ENDPOINT_IP`is mandatory when you are using the default and the `external-loadbalancer` flavour
136
+
137
+
the `EXP_CLUSTER_RESOURCE_SET` is required if you want to deploy CSI using cluster resource sets (mandatory in the default flavor).
138
+
139
139
Once you have access to a management cluster, you can instantiate Cluster API with the following:
140
140
141
141
```shell
@@ -160,6 +160,11 @@ $ vi edit cluster.yaml
160
160
$ kubectl apply -f cluster.yaml
161
161
```
162
162
163
+
aside of the default flavour, CAPV has the following:
164
+
165
+
- an `external-loadbalancer` flavour that enables you to to specify a pre-existing endpoint
166
+
- **DEPRECATED** an `haproxy` flavour to use HAProxy as a control plane endpoint
167
+
163
168
## Accessing the workload cluster
164
169
165
170
The kubeconfig for the workload cluster will be stored in a secret, which can
the provided cluster templates are quickstarts. If you need anything specific that requires a more complex setup, we recommand to use custom templates:
0 commit comments