sguyennet / terraform-vsphere-kubespray

Deploy a Kubernetes HA cluster on VMware vSphere
https://blog.inkubate.io/install-and-manage-automatically-a-kubernetes-cluster-on-vmware-vsphere-with-terraform-and-kubespray/
Apache License 2.0
174 stars 89 forks source link

Use k8s_version as kube_version kubespray_k8s_cluster.tpl #6

Closed Brian-Williams closed 5 years ago

Brian-Williams commented 5 years ago

I believe the kube_version variable should match the version from k8s_version terraform.tfvars.

sguyennet commented 5 years ago

Thanks

sguyennet commented 5 years ago

I just double check, the modification is not mandatory as the version is passed to ansible through an environment variable in the terraform script:

ansible-playbook -i ../config/hosts.ini -b -u ${var.vm_user} -v cluster.yml -e kube_version=${var.k8s_version}