From a13c151bce9677077b67992b3f323fc0e6659e33 Mon Sep 17 00:00:00 2001 From: Karan Goel Date: Mon, 11 Jun 2018 11:04:27 -0700 Subject: [PATCH] Update vsphere README for machineset (#326) --- README.md | 17 +++++++---------- machines.yaml.template | 27 +-------------------------- 2 files changed, 8 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index f0d3e71ccac2..5604946e362d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/machines.yaml.template b/machines.yaml.template index 9a05eddd31c9..3c553ea7003c 100644 --- a/machines.yaml.template +++ b/machines.yaml.template @@ -2,7 +2,7 @@ items: - apiVersion: "cluster.k8s.io/v1alpha1" kind: Machine metadata: - generateName: tf-master- + generateName: vs-master- labels: set: master spec: @@ -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