KubeOne cloudinit and Terraform

Following your documentation, I planned to use KubeOne as basis for Kubermatic and… failed.

My environment is:

  • vSphere 7.0.0 (Build 16189207)
  • VMs should run with CentOS 7 (used images from cloud.centos.org)

Following the description at https://github.com/kubermatic/kubeone/tree/master/examples/terraform/vsphere and the “How to prepare a template” (in machine-controller documents)

I’ve taken the latest CentOS 7 cloud image (just added open-vm-tools to the image) and then slightly modified the terraform config (added some cloud-init configuration).

With that I then was able to deploy the control plane VMs on vSphere, but… no cloud-init was done at the VMs!

Checking the template VM (the image) again showed that everything is in place, cloud-init installed and enabled. Checking the deployed VMs also shows that the cloud-init data is present in the VMs configuration and is correct.

But then checking the cloud-init logs showed that it cannot find any customization config files.

Yes, I know that’s not related to Kubermatic and I’m far away from starting with the installation, but maybe you have a hint what might be wrong here? What did I wrong?

Or even better, do you maybe have some more detailed walk-through of the whole installation process, starting with KubeOne?


Unfortunately we never had pleasure to test out terraform configs on vSphere 7, and what we have in repository been tested only on vSphere 6. Plus, even the official vSphere terraform provider wasn’t tested with vCenter7, see: https://github.com/hashicorp/terraform-provider-vsphere#requirements