Skip to content

Commit ec71aba

Browse files
committed
fix hostnames
1 parent bb9cf0f commit ec71aba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.ssh/config

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Host vk8s-master
3737
IdentityFile ~/.ssh/id_rsa
3838
User vagrant
3939

40-
Host vk8s-worker-01
40+
Host vk8s-worker-1
4141
Hostname 192.168.50.11
4242
IdentityFile ~/.ssh/id_rsa
4343
User vagrant
4444

45-
Host vk8s-worker-02
45+
Host vk8s-worker-2
4646
Hostname 192.168.50.12
4747
IdentityFile ~/.ssh/id_rsa
4848
User vagrant

ansible/inventories/vagrant/hosts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ vkvm-host
55
vk8s-master
66

77
[k8s_workers]
8-
vk8s-worker-01
9-
vk8s-worker-02
8+
vk8s-worker-1
9+
vk8s-worker-2
1010

1111
[k8s_nodes:children]
1212
k8s_masters

vagrant/Vagrantfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Vagrant.configure("2") do |config|
3838

3939
(1..nodes).each do |i|
4040
config.vm.define "worker-#{i}" do |node|
41-
node.vm.hostname = "vk8s-worker-01"
41+
node.vm.hostname = "vk8s-worker-#{i}"
4242
node.vm.network "private_network", ip: "#{ip_range}.#{10 + i}"
4343
node.vm.provision "shell", inline: $script
4444
end

0 commit comments

Comments
 (0)