Skip to content

Commit

Permalink
Update vsphere README for machineset (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
karan authored and k8s-ci-robot committed Jun 11, 2018
1 parent a2d8231 commit fbc85d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
17 changes: 7 additions & 10 deletions clusterctl/examples/vsphere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ For convenience, a generation script which populates templates where possible.
```
./generate-yaml.sh
```
2. Copy machines.yaml.template to machines.yaml and
Manually edit ```terraformVariables``` for machines in machines.yaml
```
cp machines.yaml.template machines.yaml
```
2. To define the master machine, copy `machines.yaml.template` to `machines.yaml` and
manually edit `machineVariables`.

3. Copy cluster.yaml.template to cluster.yaml and
Manually edit ```providerConfig``` for the cluster in cluster.yaml
```
cp cluster.yaml.template cluster.yaml
```
3. To define nodes, copy `machineset.yaml.template` to `machineset.yaml` and
manually edit `machineVariables`. If needed, adjust `replicas` as well.

4. Copy `cluster.yaml.template` to `cluster.yaml` and
manually edit `providerConfig`.

## Manual Modification
You may always manually curate files based on the examples provided.
Expand Down
27 changes: 1 addition & 26 deletions clusterctl/examples/vsphere/machines.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ items:
- apiVersion: "cluster.k8s.io/v1alpha1"
kind: Machine
metadata:
generateName: tf-master-
generateName: vs-master-
labels:
set: master
spec:
Expand All @@ -27,28 +27,3 @@ items:
controlPlane: 1.10.1
roles:
- Master
- apiVersion: "cluster.k8s.io/v1alpha1"
kind: Machine
metadata:
generateName: tf-node-
spec:
providerConfig:
value:
apiVersion: "vsphereproviderconfig/v1alpha1"
kind: "VsphereMachineProviderConfig"
vsphereMachine: "standard-node"
machineVariables:
datacenter: ""
datastore: ""
resource_pool: ""
network: ""
num_cpus: "2"
memory: "2048"
vm_template: ""
disk_label: ""
disk_size: ""
virtual_machine_domain: ""
versions:
kubelet: 1.10.1
roles:
- Node

0 comments on commit fbc85d9

Please sign in to comment.