Loading README.md +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ Master and nodes must have passwordless SSH access First create a new directory based on the `sample` directory within the `inventory` directory: ```bash pip install -r requirements.txt cp -R inventory/sample inventory/my-cluster ``` Loading requirements.txtdeleted 100644 → 0 +0 −1 Original line number Diff line number Diff line jmespath roles/k3s/master/tasks/main.yml +2 −5 Original line number Diff line number Diff line Loading @@ -27,12 +27,9 @@ block: - name: Verify that all nodes actually joined command: cmd: k3s kubectl get --raw /api/v1/nodes/ creates: "{{ systemd_dir }}/k3s.service" cmd: k3s kubectl get nodes -l "node-role.kubernetes.io/master=true" -o=jsonpath="{.items[*].metadata.name}" register: nodes until: nodes.rc == 0 and ((nodes.stdout | from_json)['items'] | json_query('[*].metadata.labels."node-role.kubernetes.io/master"') | count) == (groups['master'] | length) until: nodes.rc == 0 and (nodes.stdout.split() | length) == (groups['master'] | length) retries: 20 delay: 10 changed_when: false Loading Loading
README.md +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ Master and nodes must have passwordless SSH access First create a new directory based on the `sample` directory within the `inventory` directory: ```bash pip install -r requirements.txt cp -R inventory/sample inventory/my-cluster ``` Loading
roles/k3s/master/tasks/main.yml +2 −5 Original line number Diff line number Diff line Loading @@ -27,12 +27,9 @@ block: - name: Verify that all nodes actually joined command: cmd: k3s kubectl get --raw /api/v1/nodes/ creates: "{{ systemd_dir }}/k3s.service" cmd: k3s kubectl get nodes -l "node-role.kubernetes.io/master=true" -o=jsonpath="{.items[*].metadata.name}" register: nodes until: nodes.rc == 0 and ((nodes.stdout | from_json)['items'] | json_query('[*].metadata.labels."node-role.kubernetes.io/master"') | count) == (groups['master'] | length) until: nodes.rc == 0 and (nodes.stdout.split() | length) == (groups['master'] | length) retries: 20 delay: 10 changed_when: false Loading