@@ -292,7 +292,7 @@ spec:
292
292
# refer to the Kubeadm Bootstrap Provider documentation.
293
293
initConfiguration :
294
294
nodeRegistration :
295
- name : ' {{ ds.meta_data.hostname }}'
295
+ name : ' {{ ds.meta_data.local_hostname }}'
296
296
kubeletExtraArgs :
297
297
cloud-provider : aws
298
298
clusterConfiguration :
@@ -427,7 +427,7 @@ spec:
427
427
kubeletExtraArgs:
428
428
cloud-config: /etc/kubernetes/azure.json
429
429
cloud-provider: azure
430
- name: '{{ ds.meta_data[" local_hostname"] }}'
430
+ name: '{{ ds.meta_data. local_hostname }}'
431
431
` ` `
432
432
{{#/tab }}
433
433
{{#tab Docker}}
@@ -524,7 +524,7 @@ spec:
524
524
# refer to the Kubeadm Bootstrap Provider documentation.
525
525
initConfiguration:
526
526
nodeRegistration:
527
- name: '{{ ds.meta_data.hostname }}'
527
+ name: '{{ ds.meta_data.local_hostname }}'
528
528
kubeletExtraArgs:
529
529
cloud-provider: gce
530
530
clusterConfiguration:
@@ -615,12 +615,12 @@ spec:
615
615
criSocket: /var/run/containerd/containerd.sock
616
616
kubeletExtraArgs:
617
617
cloud-provider: external
618
- name: '{{ ds.meta_data.hostname }}'
618
+ name: '{{ ds.meta_data.local_hostname }}'
619
619
preKubeadmCommands:
620
- - hostname "{{ ds.meta_data.hostname }}"
620
+ - hostname "{{ ds.meta_data.local_hostname }}"
621
621
- echo "::1 ipv6-localhost ipv6-loopback" >/etc/hosts
622
- - echo "127.0.0.1 localhost {{ ds.meta_data.hostname }}" >>/etc/hosts
623
- - echo "{{ ds.meta_data.hostname }}" >/etc/hostname
622
+ - echo "127.0.0.1 localhost {{ ds.meta_data.local_hostname }}" >>/etc/hosts
623
+ - echo "{{ ds.meta_data.local_hostname }}" >/etc/hostname
624
624
` ` `
625
625
{{#/tab }}
626
626
{{#tab OpenStack}}
@@ -678,7 +678,7 @@ spec:
678
678
advertiseAddress: '{{ ds.ec2_metadata.local_ipv4 }}'
679
679
bindPort: 6443
680
680
nodeRegistration:
681
- name: '{{ local_hostname }}'
681
+ name: '{{ ds.meta_data. local_hostname }}'
682
682
criSocket: "/var/run/containerd/containerd.sock"
683
683
kubeletExtraArgs:
684
684
cloud-provider: openstack
@@ -870,7 +870,7 @@ spec:
870
870
# refer to the Kubeadm Bootstrap Provider documentation.
871
871
joinConfiguration:
872
872
nodeRegistration:
873
- name: '{{ ds.meta_data.hostname }}'
873
+ name: '{{ ds.meta_data.local_hostname }}'
874
874
kubeletExtraArgs:
875
875
cloud-provider: aws
876
876
` ` `
@@ -967,7 +967,7 @@ spec:
967
967
spec:
968
968
joinConfiguration:
969
969
nodeRegistration:
970
- name: '{{ ds.meta_data[" local_hostname"] }}'
970
+ name: '{{ ds.meta_data. local_hostname }}'
971
971
kubeletExtraArgs:
972
972
cloud-provider: azure
973
973
cloud-config: /etc/kubernetes/azure.json
@@ -1127,7 +1127,7 @@ spec:
1127
1127
# refer to the Kubeadm Bootstrap Provider documentation.
1128
1128
joinConfiguration:
1129
1129
nodeRegistration:
1130
- name: '{{ ds.meta_data.hostname }}'
1130
+ name: '{{ ds.meta_data.local_hostname }}'
1131
1131
kubeletExtraArgs:
1132
1132
cloud-provider: gce
1133
1133
` ` `
@@ -1219,12 +1219,12 @@ spec:
1219
1219
criSocket: /var/run/containerd/containerd.sock
1220
1220
kubeletExtraArgs:
1221
1221
cloud-provider: external
1222
- name: '{{ ds.meta_data.hostname }}'
1222
+ name: '{{ ds.meta_data.local_hostname }}'
1223
1223
preKubeadmCommands:
1224
- - hostname "{{ ds.meta_data.hostname }}"
1224
+ - hostname "{{ ds.meta_data.local_hostname }}"
1225
1225
- echo "::1 ipv6-localhost ipv6-loopback" >/etc/hosts
1226
- - echo "127.0.0.1 localhost {{ ds.meta_data.hostname }}" >>/etc/hosts
1227
- - echo "{{ ds.meta_data.hostname }}" >/etc/hostname
1226
+ - echo "127.0.0.1 localhost {{ ds.meta_data.local_hostname }}" >>/etc/hosts
1227
+ - echo "{{ ds.meta_data.local_hostname }}" >/etc/hostname
1228
1228
` ` `
1229
1229
1230
1230
{{#/tab }}
0 commit comments