apiVersion: "cluster.k8s.io/v1alpha1"
kind: MachineList
items:
  - apiVersion: "cluster.k8s.io/v1alpha1"
    kind: Machine
    metadata:
      name: ${CLUSTER_NAME}-controlplane-0
      labels:
        cluster.k8s.io/cluster-name: ${CLUSTER_NAME}
        set: controlplane
    spec:
      versions:
        kubelet: 1.13.4
        controlPlane: 1.13.4
      providerSpec:
        value:
          apiVersion: azureprovider/v1alpha1
          kind: AzureMachineProviderSpec
          roles:
          - Master
          location: ${LOCATION}
          vmSize: ${CONTROL_PLANE_MACHINE_TYPE}
          image:
            publisher: "Canonical"
            offer: "UbuntuServer"
            sku: "16.04-LTS"
            version: "latest"
          osDisk:
            osType: "Linux"
            managedDisk:
              storageAccountType: "Premium_LRS"
            diskSizeGB: 30
          sshPublicKey: ${SSH_PUBLIC_KEY}
          sshPrivateKey: ${SSH_PRIVATE_KEY}
  - apiVersion: "cluster.k8s.io/v1alpha1"
    kind: Machine
    metadata:
      generateName: ${CLUSTER_NAME}-node-
      labels:
        cluster.k8s.io/cluster-name: ${CLUSTER_NAME}
        set: node
    spec:
      versions:
        kubelet: 1.13.4
      providerSpec:
        value:
          apiVersion: azureprovider/v1alpha1
          kind: AzureMachineProviderSpec
          roles:
          - Node
          location: ${LOCATION}
          vmSize: ${NODE_MACHINE_TYPE}
          image:
            publisher: "Canonical"
            offer: "UbuntuServer"
            sku: "16.04-LTS"
            version: "latest"
          osDisk:
            osType: "Linux"
            managedDisk:
              storageAccountType: "Premium_LRS"
            diskSizeGB: 30
          sshPublicKey: ${SSH_PUBLIC_KEY}
          sshPrivateKey: ${SSH_PRIVATE_KEY}
