diff --git a/cluster/Vagrantfile b/cluster/Vagrantfile index d5c2574..4677c1d 100755 --- a/cluster/Vagrantfile +++ b/cluster/Vagrantfile @@ -30,7 +30,7 @@ node_os = ENV['CONTIV_NODE_OS'] || CENTOS k8s_ver = ENV['CONTIV_K8S_VERSION'] || DEFAULT_K8S_VERSION orc_path = case k8s_ver when /^v1\.[45]\./ then 'k8s1.4/' - when /^v1\.6\./ then 'k8s1.6/' + when /^v1\.[67]\./ then 'k8s1.6/' else raise "unsupported k8s version: #{k8s_ver}" end @@ -40,7 +40,6 @@ orchestrators = [ORC_LEGACY_SWARM, ORC_SWARM, ORC_KUBEADM] # method to create an etc_hosts file based on the cluster info def create_etc_hosts(node_names, node_ips, o) - master_ip = node_ips[0] hosts = "127.0.0.1 localhost\n" node_names.zip(node_ips).each do |node, ip|