[정보] kubernetes 사용에 도움되는 ansible playbook
·
기타정보
/etc/hosts 노드 정보 추가 # update-hosts-playbook.yaml - name: Update /etc/hosts hosts: node become: true # Run all tasks with sudo tasks: - name: Add entries to /etc/hosts lineinfile: path: "/etc/hosts" line: "{{ item }}" with_items: - "192.168.0.200 k8s-lb" - "192.168.0.201 master1" - "192.168.0.202 master2" - "192.168.0.203 master3" - "192.168.0.204 worker1" - "192.168.0.205 worker2" - "192.168.0.2..