Skip to content

Commit

Permalink
Fix a bug in deploying worker nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Sep 20, 2022
1 parent 2ed7ce7 commit 4140fc3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions templates/bootstrap/node/ansible/tasks/load_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
ip: "{{ node[1] }}"
access_ip: "{{ node[1] }}"
name: "{{ node[0] }}.control.box.netai-cloud"
kube_override_hostname: "{{ node[0] }}.control.box.netai-cloud"
groups:
- all
- kube_control_plane
5 changes: 0 additions & 5 deletions templates/bootstrap/node/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,5 @@ cp /etc/resolv.conf /tmp/resolv.conf &&
umount /etc/resolv.conf &&
mv /tmp/resolv.conf /etc/resolv.conf

# Append hostname to /etc/hosts
echo -e "\n# Kiss bootstrap hosts BEGIN" >>/etc/hosts
echo -e "127.0.0.94\t$(hostname)" >>/etc/hosts
echo -e "# Kiss bootstrap hosts END\n" >>/etc/hosts

# Execute systemd
exec /usr/sbin/init
1 change: 1 addition & 0 deletions templates/kiss/tasks/common/playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ansible_ipmi_username: "{{ lookup('env', 'ansible_ipmi_username') }}"
ansible_ipmi_password: "{{ lookup('env', 'ansible_ipmi_password') }}"
name: "{{ lookup('env', 'ansible_host') }}"
kube_override_hostname: "{{ lookup('env', 'ansible_host') }}"
groups:
- all
- flatcar
Expand Down

0 comments on commit 4140fc3

Please sign in to comment.