super-jkdevops/k8s-HandsON-lab

2 master nodes redundancy purpose

Closed this issue · 2 comments

Please add 1 additional master node for have redundancy. Be aware about IP addresses and vagrant guet hostname. Please do everything according to below help quote:

lab = {
  "k8s-master1"  => { :osimage => IMAGE_NAME_K8S,  :ip => "172.16.0.2",  :cpus => 2,  :mem =>1500,  :custom_host => "k8s-master1.sh" },
  "k8s-master2"  => { :osimage => IMAGE_NAME_K8S,  :ip => "172.16.0.2",  :cpus => 2,  :mem =>1500,  :custom_host => "k8s-master2.sh" },
  "k8s-worker1"  => { :osimage => IMAGE_NAME_K8S,  :ip => "172.16.0.4",  :cpus => 2,  :mem =>2048,  :custom_host => "k8s-worker1.sh" },
  "k8s-worker2"  => { :osimage => IMAGE_NAME_K8S,  :ip => "172.16.0.5",  :cpus => 2,  :mem =>2048,  :custom_host => "k8s-worker2.sh" },
  "k8s-worker3"  => { :osimage => IMAGE_NAME_K8S,  :ip => "172.16.0.6",  :cpus => 2,  :mem =>2048,  :custom_host => "k8s-worker3.sh" }
  }

Take note to modify also all files correspond to this design.

Split ansible activities into 2 phases:

  • maste-1st
- name: 'Copy Worker join command to local file'
    local_action: copy content="{{ k8s_join_worker_cmd.stdout_lines[0] }}" dest="$HOME/ansible/join.sh" mode=0777
    ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Received following error it seems to me like unnecesary tabs!

  • master-rest (is not addopted yet)

Done